Click here to Skip to main content
15,921,028 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: problem to detect client after server crash Pin
Luc Pattyn28-Jul-08 16:16
sitebuilderLuc Pattyn28-Jul-08 16:16 
QuestionFlippable 3D List Items in WPF Pin
sumeetneo28-Jul-08 10:16
sumeetneo28-Jul-08 10:16 
AnswerRe: Flippable 3D List Items in WPF Pin
ChandraRam29-Jul-08 1:23
ChandraRam29-Jul-08 1:23 
GeneralRe: Flippable 3D List Items in WPF Pin
sumeetneo29-Jul-08 4:24
sumeetneo29-Jul-08 4:24 
QuestionDon't load .ocx at runtime Pin
cstrader23228-Jul-08 9:44
cstrader23228-Jul-08 9:44 
GeneralRe: Don't load .ocx at runtime Pin
Paul Conrad28-Jul-08 9:54
professionalPaul Conrad28-Jul-08 9:54 
GeneralRe: Don't load .ocx at runtime Pin
cstrader23228-Jul-08 10:07
cstrader23228-Jul-08 10:07 
Questioncreate button programmatically for loop Pin
khm628-Jul-08 9:00
khm628-Jul-08 9:00 
I recalled a greater value than the number of field devices and pagers assigned to the variable ..
Then I've written code design programmatically within a button for ..
I apply fully with me .. But the interface problem .. Come:.
When I click on the button is doing a certain ..
Settled happened button _click and Manf ..

You Code:.

Public WithEvents B As Button


Dim sql_tim As String = "select max(pc_no) from pc "
cmd_pc.Connection = con
cmd_pc.CommandText = sql_tim
n = cmd_pc.ExecuteScalar

====================
Dim x, y,i
x = 269
y = 44
For i = 1 To n
B(i) = New Button
B(i).Location = New System.Drawing.Point(x, y)
B(i).Name = "b" & i
B(i).Size = New System.Drawing.Size(101, 103)
B(i).TabIndex = i
B(i).Text = "open" & i
B(i).UseVisualStyleBackColor = True
B(i).Image = Global.server.My.Resources.Resources.op
B(i).Image = Global.server.My.Resources.Resources.col
B(i).ContextMenuStrip = Me.ContextMenuStrip1

Controls.Add(B(i))
x = x + 130
If i Mod 6 = 0 Then
x = 269
y = y + 120
End If
Next
ــــــــــــــــــــــــــــــــــــــــــــــــــــ
Private Sub B_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles B1.Click
Msgbox("welcom")

End Sub

Required:.
All are doing a certain button for example, show a message ..
AnswerRe: create button programmatically for loop Pin
Steven J Jowett28-Jul-08 10:18
Steven J Jowett28-Jul-08 10:18 
QuestionSearch/Evaluate My.Settings.StringCollection Pin
Member 437233128-Jul-08 8:12
Member 437233128-Jul-08 8:12 
AnswerRe: Search/Evaluate My.Settings.StringCollection Pin
paas29-Jul-08 0:47
paas29-Jul-08 0:47 
GeneralRe: Search/Evaluate My.Settings.StringCollection Pin
Member 437233129-Jul-08 2:41
Member 437233129-Jul-08 2:41 
GeneralRe: Search/Evaluate My.Settings.StringCollection Pin
paas29-Jul-08 3:26
paas29-Jul-08 3:26 
GeneralRe: Search/Evaluate My.Settings.StringCollection Pin
Member 437233129-Jul-08 3:38
Member 437233129-Jul-08 3:38 
QuestionExport to Excel or html [modified] Pin
zzsoulzz28-Jul-08 7:27
zzsoulzz28-Jul-08 7:27 
AnswerRe: Export to Excel or html Pin
Paul Conrad28-Jul-08 10:50
professionalPaul Conrad28-Jul-08 10:50 
GeneralRe: Export to Excel or html Pin
zzsoulzz28-Jul-08 20:19
zzsoulzz28-Jul-08 20:19 
GeneralRe: Export to Excel or html Pin
Paul Conrad28-Jul-08 20:22
professionalPaul Conrad28-Jul-08 20:22 
GeneralRe: Export to Excel or html Pin
zzsoulzz28-Jul-08 20:32
zzsoulzz28-Jul-08 20:32 
QuestionString concat slow despite Stringbuilder Pin
frylord28-Jul-08 4:20
frylord28-Jul-08 4:20 
AnswerRe: String concat slow despite Stringbuilder Pin
Roger Alsing28-Jul-08 4:44
Roger Alsing28-Jul-08 4:44 
AnswerRe: String concat slow despite Stringbuilder Pin
Luc Pattyn28-Jul-08 5:18
sitebuilderLuc Pattyn28-Jul-08 5:18 
GeneralRe: String concat slow despite Stringbuilder Pin
frylord28-Jul-08 5:59
frylord28-Jul-08 5:59 
AnswerRe: String concat slow despite Stringbuilder Pin
Chinners28-Jul-08 5:33
Chinners28-Jul-08 5:33 
GeneralRe: String concat slow despite Stringbuilder Pin
frylord28-Jul-08 6:01
frylord28-Jul-08 6:01 

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.