Click here to Skip to main content
15,892,059 members
Articles / Programming Languages / Visual Basic
Article

ROBO FORM

Rate me:
Please Sign up or sign in to vote.
2.64/5 (14 votes)
7 Jul 2005 50.3K   1.5K   18   6
Using Clipboard

Sample Image - roboform.jpg

Introduction

The robofrom send data to all text fields. You can use roboform for member forms ,notepad , wordpad etc. The forms are filled easily and quickly with robofrom. So you save from the time. I saw similar programme on the internet but it wasn’t free.So I decided to make this programme.

ROBOFORM

Following XML document uses for labels’ texts;

<control name="Label1">Select Profile : </control>
<control name="Label2">NAME : </control>
<control name="Label3">MI NAME : </control>
<control name="Label4">LAST NAME : </control>
<control name="Label5">NICKNAME : </control>
Tags uses for all controls’ text on the form. You can change language if you want.

Functions and Subs for roboform;

Public Function tabcontrol(ByVal tabs As tabcontrol)
  Dim tp As TabPage
  For Each tp In tabs.TabPages
          conttext(tp)
      For Each cont As Control In tp.Controls
          conttext(cont)
      Next
  Next
End Function
Read ‘name’ attribute ,if name is equals to controls’ name then get string from XML.
Public Sub conttext(ByVal c As Control)
      Dim tr As New XmlTextReader("english.xml")
      While tr.Read
          If tr.Name = "control" Then
              If c.Name = tr.GetAttribute("name") Then
                  c.Text = tr.ReadElementString
              End If
          End If
      End While
      tr.Close()
End Sub

Listboxs double click;

Get data from listboxs and keep in the Clipboard then send data to cursor.

Clipboard.SetDataObject(lb1.SelectedItem.ToString)   ’get string
SetActiveWindow(8975651603260375040) ‘set focus to active window
‘ctrl + V = Paste
keybd_event(VK_CONTROL, 0, 0, 0)  ‘send ctrl key to system
keybd_event(VK_V, 0, 0, 0)         ‘send V key to system
keybd_event(VK_V, 0, KEYEVENTF_KEYUP, 0)   ‘release V key
keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0) ‘release ctrl key

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Turkey Turkey
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMy vote of 4 Pin
Global Analyser3-Nov-10 4:55
Global Analyser3-Nov-10 4:55 
_-_-_-_
GeneralMy vote of 2 Pin
Dave Kreskowiak12-Oct-09 10:06
mveDave Kreskowiak12-Oct-09 10:06 
Generalhai hensem help me!!! Pin
freerhyme_21-Aug-07 15:01
freerhyme_21-Aug-07 15:01 
QuestionWhy MessageBox?? Pin
aasim baltee31-May-07 1:55
aasim baltee31-May-07 1:55 
QuestionFile Corrupt Pin
ansoriroma14-Jan-07 0:15
ansoriroma14-Jan-07 0:15 
GeneralKindly Assist Pin
deeef28-Dec-05 23:46
deeef28-Dec-05 23:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.