How Can I Copy Source Code from Book Souces or MS WebSite to My Windows Application Form1.vb

Hi all,

Is it possible to copy the VB Express code from Book Souces or MS WebSite to my Windows Application Form1.vb If possible, please tell me how to do it and how to make the code to be used by the component tray.

Thanks,

Scott Chang




Answer this question

How Can I Copy Source Code from Book Souces or MS WebSite to My Windows Application Form1.vb

  • Oliver Lundt

    hi,

    its like any text editor like you copy text from a word file to another you can copy code(text) from any place to IDE

    actualy microsoft site have a nice option at the top of code snippet you will find copy code you can click it instead if highlighting text and copy

    in the ide right click and select past or press ctrl + v

    hope that helps



  • GreatDane

    hi,

    i don't know what you mean by that but, all the controls that appear in your form are nothing more than code that the designer add to your project

    in your solution explorer at the top select show all file , you will find a "+" appear beside your form name expand it you will find form designer code open it, this is the code that the designer add to your project to represent the controls

    so for example if you added to this age

    dim ta as new tableadapter

    me.controls.add(ta)

    there is a table adapter will appear in your form tray,

    hope that helps



  • arun_84

    Hi shakalama, Thanks for your response.

    Please answer my question of how to connect the copied code with the component tray (like table adapter in the component tray).

    Scott Chang



  • How Can I Copy Source Code from Book Souces or MS WebSite to My Windows Application Form1.vb