Search results

  1. D

    How do I do copy and paste

    Hi ayozzhero, Thank you. It works! Have a great day. dominico
  2. D

    How do I do copy and paste

    Hi Neal, I can use the clipboard class. However, I am having a difficulty in writing the code on how to detecting the textbox that has the focus for pasting the data. I have several textboxes on the main form. So when a user click on the paste button, how do we know which textbox that has the...
  3. D

    How do I do copy and paste

    Hello gentlemen, I have a child form which displays a paragraph. I will have a "Copy" button on the child form so that when I select a string in the paragraph with the mouse and click on the copy button; it will copy my selected string to the windows clipboard. After that, I want to paste that...
  4. D

    How do we set field focus

    Thank you jmcilhinney sir! you're the best! :) dominico
  5. D

    How do we set field focus

    Hi all, I have a combobox and I would like to set input focus to it in form load. However, according to VB, in order for a control to receive input focus, the control must have a handle assigned to it, and the Visible and Enabled properties must both be set to true. All I need is to have a...
  6. D

    How do we access form controls from a module file ?

    We got it! :) I added it first to the declaration section that's why it complained. It is now in the load proc. You are the BEST as always. Thanks again. dominico
  7. D

    How do we access form controls from a module file ?

    Oh okay. no problem :) jmcilhinney, How do add the second line ? "myModifier = me" gives me error. How should I declare it ? When run my app., I got an error below: An unhandled exception of type 'System.NullReferenceException' occurred in NewGen.exe Additional information: Object...
  8. D

    How do we access form controls from a module file ?

    Thanks alot. It is working now. I thought you wanted me to add that second line to the form class. Sorry. I don't understand the above question. Do you use yahoo messenger ? I want to chat with you. dominico
  9. D

    How do we access form controls from a module file ?

    Hi jmcilhinney buddy, :) In my window form class, I have to declare as below in order for it to recognize it, right ? Dim fModifier As Form = Me thanks.
  10. D

    How do we access form controls from a module file ?

    Hi, Someone please tell me how to access a window form from inside a module file ? I tried "inherits mywindowform" and also "imports mywindowsform" but none works. In VB6, all I had to do was using the name of the form and that was it. VB.Net is driving me nuts. Please advise, dominico
  11. D

    What is the best way to display directory folders on a window form?

    Thanks. I took your advice. It works now. I added the combobox textchanged even to the displaybuttonclick even.
  12. D

    What is the best way to display directory folders on a window form?

    Hi jmcilhinney buddy :) Thanks for the reply. I went ahead and did it with using the combobox. It is okay. I am not good with array stuff so I try not to kill myself with them unless I have no choice. I do have another issue now. After I got the combobox to list the files, I created another...
  13. D

    What is the best way to display directory folders on a window form?

    For instance, I have a mapped network drive pointing to directory "A" on the server. Under directory "A", there are 5 different directory folders starting from "B1" to "B5". Under each of these "B" folders, there is a directory folder called "C". What I need to ascomplish is to be able to...
  14. D

    How do we close a modeless form in vb.net ?

    I thought "New" was being used to create a fixed memory space for an object. I sure learned a lot from you. My hat is off to you. You are an exceptional programmer. I can't argue that. Keep up the good work. You shall be rewarded my friend. So do you own this forum ? Do you get paid for being...
  15. D

    How do we close a modeless form in vb.net ?

    hehehe...you got me, bro. It works after I remove the "New." I don't understand why "New" didn't work. My apology, I will be explicit next time. I thought you knew my phrase "nothing happens" because I did mention in my very first post that vb ignored my "Close()" statement (SomeForm.Close() '...
  16. D

    How do we close a modeless form in vb.net ?

    I did declare it the other way too(as frmDisplay) the first time but it went straight into the "Activate" method. That's why I declared it with "as form." I always use breakpoints to debug. I realized both cases did not invoke the "Show" method. Unless I change the IF statement to "NOT" but then...
  17. D

    How do we close a modeless form in vb.net ?

    Okay sir, I fix it like you said but still not happening. I am missing something I guess. Dim DisplayScript As New Form ' I declared this line at the top right under the class' name. Sub DisplayMe(ByVal doThis As String) DisplayScript.WindowState = FormWindowState.Normal If DisplayScript Is...
  18. D

    How do we close a modeless form in vb.net ?

    Sorry bro, I tried it again with the exact same code this time and I didn't get the second form to display at all now. Please advise. Here is my code using yours: Sub DisplayMe(ByVal doThis As String) Dim DisplayScript As New frmDisplay DisplayScript.WindowState = FormWindowState.Normal...
  19. D

    How do we close a modeless form in vb.net ?

    hi jmcilhinney, Below is my code. I did as told but the activate didn't bring back the modeless form. I tested it with vb debug. Sub DisplayMe(ByVal doThis As String) DisplayScript.WindowState = FormWindowState.Normal Select Case doThis Case "showit" If Not DisplayScript Is Nothing...
  20. D

    How do we close a modeless form in vb.net ?

    So true. I have to stop using the old ways. :P jmcilhinney, quick question. I use your code above. The problem is that if I close the modeless form(by clicking on the "X" at the top right hand corner of the form," and then click on the button on my main form to start it up again.. VB complains...
Top Bottom