In a loop readin records using i as a counter
item.UseItemStyleForSubItems = False
If i Mod 2 = 0 Then
item.SubItems(0).BackColor = System.Drawing.SystemColors.Window
Else
item.SubItems(0).BackColor = System.Drawing.Color.LightGreen
End If
i += 1
Try that to start with, I did this a fair...
I was doing the same thing, reading a text file into datasets etc, and then writing them back out to txt files.
As you have probably discovered, there is plenty of code to write and I got to the stage where I stopped it all and put it into an access database figuring I would get the user to get...
My work backgroud is to do with drawing programs, ie Cad, not sure if anyone has heard of programs such as 12D and MapInfo (MapInfo is worldwide application though). That is the reason behind my suggestion.
But as the first post wasn't too clear on what his program was for, paint program or...
If I was doing it I woudn't go with the bitmap...how do u interact with already drawn objects if you want to enable erasing??
Keep all of your lines, rectangles, etc in an array.
Dim myRectangles() as Rectangle
For starters, make you array 100 or something, just to see what it going on...
If your using Access, you can just go to the query, change it to the SQL View, and copy and paste it into your code. You will have to make some small adjustments, but nothing major.
Why not use the mailto process?? Will bring up the default mail client whatever it may be. You can fill in all of the fields by code, and then the user just has to press send and its done.
If your statusbar is on your main form you need to pass the main form into your class
Class myStatusBar
' Assuming frmMain is your form with the statusbar
Shared Sub WriteStatusBarMSG(ByVal Message as String, ByRef f as frmMain)
f.Statusbar1.Text = Message
End Sub
End Class
'...
Yes, but whats the point of using the 24 lines of code. You are doing the same thing 4 times. The way I showed is 7 lines.
And later, if you put more fields in, you just have to name your textbox in an approiate manner, eg txtSuburb, to get Suburb to be displayed in the message box if its not...
Private Sub txtBox_Validated(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtFirstName.Validated, txtLastName.Validated, txtDOB.Validated, txtTime.Validate
Dim t as TextBox
t = DirecCast(sender, TextBox)
If t.Text = "" Then
MessageBox.Show("Please provide " &...
That doesn't seem right. What is your connection string?
And having the database open doesn't affect anything when using it in your program, unless you are modifing a tables structure.
You can't. Not even in Explorer. I think you are meaning the right hand side in explorer with file view. It is a listview, and that has the ability to do mulit-selections.
It doesn't make sense to have multi-select in a treeview, you can only view the contents of one folder at a time, so...
There are too many unknowns to make a progress bar display accuratley. eg, your connection speed, the site's speed, the pages size.
Only way I can think of doing this to get it close is to try and get the websites size, then work out how much you have downloaded then show the progress bar to...
By the look of IE's statusbar, I think you can manage with the statusbar in .NET
If you want to show a progress bar, thats not too hard either. http://www.dotnetforums.net/showthread.php?t=75910&highlight=progress+statusbar
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.