Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. eward1

    How do I pass a structure to a control?

    Thanks Spellman, Your first suggestion worked great.
  2. eward1

    How do I pass a structure to a control?

    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...
  3. eward1

    faking input to a form

    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...
  4. eward1

    faking input to a form

    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...
  5. eward1

    faking input to a form

    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...
  6. eward1

    listview header color

    Thanks! This looks like it will get me what I need. I realy appreciate it.
  7. eward1

    listview header color

    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?
  8. eward1

    listview header color

    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.
  9. eward1

    Databinding problem

    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...
  10. eward1

    DLL in its own Process

    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...
  11. eward1

    share source files between solutions

    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...
  12. eward1

    code a mouse move??

    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.
  13. eward1

    faking input to a form

    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?
  14. eward1

    NumericUpDown Control missing Methods

    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...
  15. eward1

    How do I paint a scrollbar?

    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...
  16. eward1

    create instance of form from string name

    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...
  17. eward1

    Dynamic tab ordering

    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...
  18. eward1

    User Control default

    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?

Part and Inventory Search

Back
Top