Click here to Skip to main content
16,008,183 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Global variable and Sub Main() Pin
Dave Kreskowiak13-Apr-06 12:14
mveDave Kreskowiak13-Apr-06 12:14 
AnswerRe: Global variable and Sub Main() Pin
cosma21715-Apr-06 6:05
cosma21715-Apr-06 6:05 
GeneralRe: Global variable and Sub Main() Pin
percyvimal15-Apr-06 23:11
percyvimal15-Apr-06 23:11 
QuestionDamage variable Pin
Mr kilany13-Apr-06 3:27
Mr kilany13-Apr-06 3:27 
AnswerRe: Damage variable Pin
Dave Kreskowiak13-Apr-06 7:07
mveDave Kreskowiak13-Apr-06 7:07 
GeneralRe: Damage variable Pin
Mr kilany15-Apr-06 3:16
Mr kilany15-Apr-06 3:16 
GeneralRe: Damage variable Pin
Dave Kreskowiak15-Apr-06 4:43
mveDave Kreskowiak15-Apr-06 4:43 
GeneralRe: Damage variable Pin
Mr kilany17-Apr-06 3:17
Mr kilany17-Apr-06 3:17 
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Try


Dim cone As New Conection

Dim ii As Integer = ds.Tables(0).Rows(ComboBox1.SelectedIndex).Item(0)

Dim sh As String = cone.get_Special_data("select Switch_Access_Code from Swiches where Swich_ID=" & ii & "")


b2 = ""
b2 = sh

Me.WindowState = FormWindowState.Minimized
System.Windows.Forms.SendKeys.SendWait(b2)//b2="2494:" come from //database on sql server
Me.WindowState = FormWindowState.Normal
b2 = ""
Catch ex As Exception
MsgBox("الرجاء اختيار القسم")

End Try
End Sub



some times when i click on this button will type on active window 4294: but aslo some time type 44294: and some time 4294:: and some time 4294: and some time 4449942: althought the data which comes from data base is just 4294:
why the variable b2 some time print wrong data not as want ???????

kilany
GeneralRe: Damage variable Pin
Dave Kreskowiak17-Apr-06 12:11
mveDave Kreskowiak17-Apr-06 12:11 
GeneralRe: Damage variable Pin
Mr kilany18-Apr-06 3:26
Mr kilany18-Apr-06 3:26 
GeneralRe: Damage variable Pin
Dave Kreskowiak18-Apr-06 12:16
mveDave Kreskowiak18-Apr-06 12:16 
GeneralRe: Damage variable Pin
Mr kilany19-Apr-06 7:56
Mr kilany19-Apr-06 7:56 
GeneralRe: Damage variable Pin
Dave Kreskowiak19-Apr-06 11:41
mveDave Kreskowiak19-Apr-06 11:41 
Questionvery simple question but no answer Pin
Amit Agarrwal13-Apr-06 3:15
Amit Agarrwal13-Apr-06 3:15 
AnswerRe: very simple question but no answer Pin
Dave Kreskowiak13-Apr-06 7:33
mveDave Kreskowiak13-Apr-06 7:33 
Questionhandling application instances Pin
crosshair13-Apr-06 2:05
crosshair13-Apr-06 2:05 
AnswerRe: handling application instances Pin
Dave Kreskowiak13-Apr-06 7:29
mveDave Kreskowiak13-Apr-06 7:29 
QuestionChange audio device Pin
Castello0712-Apr-06 23:35
Castello0712-Apr-06 23:35 
QuestionProblem in redirecting variable value Pin
Amit Agarrwal12-Apr-06 22:54
Amit Agarrwal12-Apr-06 22:54 
AnswerRe: Problem in redirecting variable value Pin
Guffa13-Apr-06 1:27
Guffa13-Apr-06 1:27 
GeneralRe: Problem in redirecting variable value Pin
Amit Agarrwal13-Apr-06 2:31
Amit Agarrwal13-Apr-06 2:31 
GeneralRe: Problem in redirecting variable value Pin
Dave Kreskowiak13-Apr-06 2:42
mveDave Kreskowiak13-Apr-06 2:42 
GeneralRe: Problem in redirecting variable value Pin
Amit Agarrwal13-Apr-06 2:53
Amit Agarrwal13-Apr-06 2:53 
GeneralRe: Problem in redirecting variable value Pin
Dave Kreskowiak13-Apr-06 4:19
mveDave Kreskowiak13-Apr-06 4:19 
GeneralRe: Problem in redirecting variable value Pin
Amit Agarrwal13-Apr-06 4:38
Amit Agarrwal13-Apr-06 4:38 

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.