Dah !
In previous VB version, there was an argument in most of the MouseDown, MouseMove and MouseUp called button, some kind of wonderful.
Divil, stop answering my post, I am getting a little bit bored of your "You can't do that" kind of answer.
thx
I absolutely need to load some masked edit controls from a class.
It is quite easy to do with common form controls ( textboxes, comboboxes... ) using the inherit sytem.windows.forms.blabla statement.
But because the masked edit control is not a windows form control, I can't use this syntax. Now that the control array method can't be done in .NET, is there any workaround I can use to load masked edit control from a class ?
I hope so
thx
Just a question :
Where did you found the MSFlexGrid control in .Net ?
Did you download it or used the OCX from VB6 ?
I just can't find it in the .net COM collection
Here is my problem :
I am storing the menu mapping of an MDI application in an access database. My table contains menu item names, text and shortcut.
I am trying to figure out a way to directly refer to a control ( menu item ) using the content of a field.
i.e : ctl = OleReader("MenuItemName")
then use the ctl variable to set the menu item properties. I want to do so to avoid huge Select Case structure. Anybody has done something similar before ?
thx
Nevermind
I solved my problem.
ctl will accept the Text property for a datepicker even if it is not in its collection.
One of .Net strong point, I have to admit ;)
...
Here is my code :
For Each ctl in GroupBox1.Controls
If Not TypeOf ctl Is Label Then
ctl.Text = OleReader (ctl.Name.ToString)
End If
Next
All controls update themselves except for the DateTime picker. The reason is simple, it does not have a Text property, it uses the Value property instead. I can't directly refer to the DateTime Picker in the code (i.e OpenTime.Value = "0:00:00 AM" ) because the control is loaded from a class at runtime.
Is there a way to assign to the ctl variable the datatime picker type of control, then cycle throught it. What was supposed to be a dynamic application turns out to be a complete headache.
thx
Here is my problem :
I am storing the menu mapping of an MDI application in an access database. My table contains menu item names, text and shortcut.
I am trying to figure out a way to directly refer to a control ( menu item ) using the content of a field.
i.e : ctl = OleReader("MenuItemName")
then use the ctl variable to set the menu item properties. I want to do so to avoid huge Select Case structure. Anybody has done something similar before ?
thx
This is the expression I used in VB6 to emulate carriage return when setting the text property of a Textbox at runtime.
In .net, it does not seems to be understood by the textbox control.
I set to AllowReturn property to True, but the textbox won't still show the carriage return.
Is there a new syntax or something ?
thx
Was wondering...
Can we set the date time picker a certain way that instead of having a calander that is dropping down, it is a watch or something that will intuitively allow the user to pick a particular TIME of the day ?
thx !
As reference :
If you declare the variable used to contain your form in a module, you will be able to use your form components from a separate class.
Thanx god ! :)