In VB.NET I have created a control. One of its Properties I have defined WriteOnly and it takes a structure. I have created the identical structure in my application. When I try to set that Property from my application I get the following error:
Cannot convert App.Structr to Ctl.Structr
Even...
Maybe I am over-simplifying your problem, but from what I think you are trying to do, here is what you ned:
If your program already knows the AccountNumber before this form comes up, then just put the line
Label2.Text = AccountNumber
in the Load handler (Form1_Load.)
On the other hand, if...
If I understand your question correctly, you would put the name of your control that puts the value in "text-label1" into sNameOfButton. In your application that may be "text-label1" itself or another button on form1.
Hopefully this is helpful. If not, and you can send me a...
I ended up using something very similar. But my form was already up, and I have created my own collection of forms open in this project, so I searched my collection for the proper form and then called the correct Button_Click handler on that form.
For this to work I had to get the correct buton...
Thanks, SHelton for trying, but the link you pointed to sends me to an article on CodeProject.com, and that article does not exist any more. Do you have any other ideas?
Is there a way for me to subclass the listview control and specify the header color in vb.net? I have searched the msdn and the net every way I know how and haven't seen this addressed anywhere.
I have dropped back to a very simple App to check this problem.
I have an App running on 2 computers. Each has a single form. That form has 1 textbox and one Button.
I have one DataTable on each machine. That datatable has only 1 record. I have the textbox bound to one field in my datatable...
I want to create al DLL that runs in its own thread. I have a graphics-intensive part of my program that I need to get data to and from, but I can't let things that happen in my main processing loop interfere with what is happening on this part of the screen. I have created a DLL that shows the...
How can I share a source file between two solutions? As soon as I include a source file in my project, VB copies the file to my current project directory and any changes I make are only on the local copy. If I go back to the other project, my changes do not appear. I want to have one file in a...
How can I move the mouse cursor to a given location on the screen. For instance, When the user presses a function key I want to move the mouse to the center of the current form.
Thanks in advance for an help.
I am trying to simulate someone pressing a button on another form in my program.
When data comes in on the serial port I can read it. Based on what the data is, I need the program to act as if the user pressed a button on a given form which is visible, but does not currently have focus.
Any ideas?
Anybody else notice that the NumericUpDown control doesn't respond to MouseEnter, MouseLeave or MouseHover events?
Also, in my application sometimes when I click on either the up or down spinner, the spinner disappears and will only reappear if I click again.
Please let me know if you have a...
This question has been asked a couple of times on the web, but I can't find a valid answer.
Can someone tell me how to change the color (without changing system colors) of a scrollbar in VB.Net? I'm sure I will have to override the Paint event, but I am not very familiar with the windows...
I have a lot of forms in my project, and several programmers working on it. I have one form which lists all the forms in the project. (I read the .vbproj file and parse the .resx file names.)
What I am looking for is code that will let me create an instance of the form from the string name that...
Microsoft seems to have really set the wheels in motion when they got rid of the controls array. TabIndex no longer works quite like it dod before. It is possible to have multiple controls with the same TabIndex. In that case, the system uses the z-order, which I haven't found a way to...
I have created a new usercontrol and named it RButton. When I place my control on a form, then double-click it, I get an RButton_Load Sub instead of an RButton_Click Sub like a normal command button. How do I make the Click event the default like a normal button?
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.