- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
9 Posted Topics
You have to check at least two things with what you have shown: 1) Do your number and type of variables match your database table? 2) Do you really have values in the txtName, txtUser, and txtPassword fields - remember to declare and initialize variables for use with database query …
It may be VB6, but if that really is his code then he would be getting an error where he sets str=... He is using C language comment delimiters, not VB. VB will try and interpret that and will give an error. JR
First problem is using ON ERROR RESUME NEXT does not clear the error, it just keeps executing the next line of code after the error, which means if the first error is bad enough it will cascade throughout the rest of the forms. If I'm reading your text right it …
Why not just put the code in the btn_click event. That seems the logical place, when you pick a color and click the button (Form1), that will fire the onclick event and there you set the background color of both Form2 and Form3. JR
I don't think there is a .Visible property on listbox items. But for the ones you don't want you can easily execute a Items.Remove or Items.RemoveAt A real way to do it would be to turn it into a data source, then you can create a query based on the …
This may be off base here but this code: [CODE]# For Each copyRows1 In copyRows # dt.Rows.Clear() # Next # [/CODE] is not going to clear the whole cloned table. It will only clear as many rows as the query OrdreID = 1 produces, not all the rows in the …
PsychoCoder is right, that is the easiest method. And I found a thread on this site that already provides the example for this question: [url]http://www.daniweb.com/forums/thread127621.html[/url]
These errors are generated due to the fact that Excel in particular the .DLL's supporting the charting you are using, is not on the new computer that you transferred to. There is a couple of ways to solve it: 1) Copy the .DLL's needed with the application 2) Make sure …
You need to use an image writer. [ Dim format As StringFormat = New StringFormat() Dim g as graphics format.Alignment = StringAlignment.Center format.LineAlignment = StringAlignment.Center imageGraphics.DrawString("Drawing to an image", [font], Brushes.Black, RectangleF.op_Implicit(rect), format) g.DrawImage(img, rect) g.SaveImage(img,filename)] Good luck. JR
The End.
JRitchie777