Does visual basic 2008 have a colorbox like delphi 2007? If not what other choices are there to create a advanced color chooser. I want it so that the user gets to choose the type of color of the text. Thanks
EDIT: Ok I see you got it, but please do some thinking before you post!
Deadly, please do some thinking here, lets look at your code
Code:
1.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
2.
Dim MyDialog As New ColorDialog
3.
' Keeps the user from selecting a custom color.
4.
MyDialog.AllowFullOpen = False
5.
' Allows the user to get help. (The default is false.)
6.
MyDialog.ShowHelp = True
7.
' Sets the initial color select to the current text color,
8.
MyDialog.Color = Label2.ForeColor
9.
If (MyDialog.ShowDialog() = Windows.Forms.DialogResult.OK) Then
10.
Label2.ForeColor = MyDialog.Color
11.
End If
12.
End Sub
Where in the entire thing is Label mentioned? Only one place, here:
Code:
Label2.ForeColor = MyDialog.Color
So if you want for another label to change color then really, what do you think your going to do?
If your problem is solved, click the Thread Tools button at the top and mark your topic as Resolved!
EDIT: Ok I see you got it, but please do some thinking before you post!
Deadly, please do some thinking here, lets look at your code
Code:
1.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
2.
Dim MyDialog As New ColorDialog
3.
' Keeps the user from selecting a custom color.
4.
MyDialog.AllowFullOpen = False
5.
' Allows the user to get help. (The default is false.)
6.
MyDialog.ShowHelp = True
7.
' Sets the initial color select to the current text color,
8.
MyDialog.Color = Label2.ForeColor
9.
If (MyDialog.ShowDialog() = Windows.Forms.DialogResult.OK) Then
10.
Label2.ForeColor = MyDialog.Color
11.
End If
12.
End Sub
Where in the entire thing is Label mentioned? Only one place, here:
Code:
Label2.ForeColor = MyDialog.Color
So if you want for another label to change color then really, what do you think your going to do?
LoL ya i did do a lil thinkin den found out, just posted the post a lil earlier. Thanks guys