Click here to Skip to main content
16,010,553 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Table Control Pin
Dave Kreskowiak27-Jun-05 15:28
mveDave Kreskowiak27-Jun-05 15:28 
GeneralRegular Expressions: Something wrong Pin
Ricalawaba27-Jun-05 11:33
Ricalawaba27-Jun-05 11:33 
GeneralRe: Regular Expressions: Something wrong Pin
Daniel Turini27-Jun-05 12:27
Daniel Turini27-Jun-05 12:27 
GeneralRe: Regular Expressions: Something wrong Pin
Ricalawaba27-Jun-05 13:37
Ricalawaba27-Jun-05 13:37 
GeneralRe: Regular Expressions: Something wrong Pin
Daniel Turini29-Jun-05 22:32
Daniel Turini29-Jun-05 22:32 
Generalload order Pin
btoyer27-Jun-05 9:47
btoyer27-Jun-05 9:47 
GeneralRe: load order Pin
Dave Kreskowiak27-Jun-05 10:28
mveDave Kreskowiak27-Jun-05 10:28 
GeneralRe: load order Pin
btoyer28-Jun-05 4:22
btoyer28-Jun-05 4:22 
I have decided that adding a second web service is probably the way to get two different connections. It seems if I don't I won't be able to change the connection string of the one based on button clicks because it will already be running.

That said, here is a sample from my connect.vb file. It shows a testing (dev) version of a button and the real version of the button. I want them both to bring up the same form with a different db connection. Is there a way to pass a variable that gets set in these subs to the form?

Private Sub MyUpload_dev_Click(ByVal Ctrl As Microsoft.Office.Core.CommandBarButton, ByRef CancelDefault As Boolean) Handles MyUpload_dev.Click
Dim frm As New frmGOUpload
frm.XLA = excelApp
frm.WS = excelApp.Workbooks(1).ActiveSheet
frm.Show()
End Sub

Private Sub MyUpload_Click(ByVal Ctrl As Microsoft.Office.Core.CommandBarButton, ByRef CancelDefault As Boolean) Handles MyUpload.Click
Dim frm As New frmGOUpload
frm.XLA = excelApp
frm.WS = excelApp.Workbooks(1).ActiveSheet
frm.Show()
End Sub


This is kind of what I am thinking of trying to do in the form:
If <variable> = 'dev' then
Dim wsrv As New SEOWS_dev.Service1
else
Dim wsrv As New SEOWS.Service1
end if
Generalerror Pin
fatidarya27-Jun-05 8:54
fatidarya27-Jun-05 8:54 
GeneralRe: error Pin
Dave Kreskowiak27-Jun-05 9:09
mveDave Kreskowiak27-Jun-05 9:09 
GeneralRe: error Pin
StylezHouse27-Jun-05 9:11
StylezHouse27-Jun-05 9:11 
Generalcomplex mapping printers Pin
fozz7527-Jun-05 5:51
fozz7527-Jun-05 5:51 
GeneralRe: complex mapping printers Pin
Dave Kreskowiak27-Jun-05 8:59
mveDave Kreskowiak27-Jun-05 8:59 
GeneralExporting Images From Word Pin
ironclads27-Jun-05 5:30
ironclads27-Jun-05 5:30 
GeneralRe: Exporting Images From Word Pin
Dave Kreskowiak27-Jun-05 9:03
mveDave Kreskowiak27-Jun-05 9:03 
GeneralRe: Exporting Images From Word Pin
ironclads27-Jun-05 13:11
ironclads27-Jun-05 13:11 
GeneralPictureBox: Open Image in default viewer Pin
Brad Fackrell27-Jun-05 4:14
Brad Fackrell27-Jun-05 4:14 
GeneralRe: PictureBox: Open Image in default viewer Pin
Dave Kreskowiak27-Jun-05 9:15
mveDave Kreskowiak27-Jun-05 9:15 
GeneralRe: PictureBox: Open Image in default viewer Pin
Brad Fackrell27-Jun-05 10:32
Brad Fackrell27-Jun-05 10:32 
GeneralRe: PictureBox: Open Image in default viewer Pin
Dave Kreskowiak27-Jun-05 11:57
mveDave Kreskowiak27-Jun-05 11:57 
GeneralRe: PictureBox: Open Image in default viewer Pin
Brad Fackrell27-Jun-05 11:58
Brad Fackrell27-Jun-05 11:58 
Generali want add combobox.item Pin
Attawat27-Jun-05 2:39
Attawat27-Jun-05 2:39 
GeneralRe: i want add combobox.item Pin
WillemM27-Jun-05 8:45
WillemM27-Jun-05 8:45 
GeneralDATA REPORT Pin
rngoyal27-Jun-05 1:17
rngoyal27-Jun-05 1:17 
GeneralSoapMapper:Restoring data into SoapMapper USR_RECORDING failed HRESULT=0x80070057: The parameter is incorrect. Pin
Nasir_mna27-Jun-05 0:39
Nasir_mna27-Jun-05 0:39 

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.