|
I may well be being incredibly dense, but I don't know the string; I only know the ID of the Client. So I wouldn't have a String to pass the function, right?
Thanks for your help so far!
Tom
|
|
|
|
|
Maybe you could loop through each of the elements in the combobox and set the Item with the client id selected.
Something like this...
Pseudocode
for each item in combobox.items<br />
if item.value = clientid then<br />
item.selected = true<br />
end if
|
|
|
|
|
Thanks Dinuj... Your pseudocode got me there in the end....
Dim dl As DataLoader
For Each dl In cboClients.Items
If dl.ID = ClientID Then
cboClients.SelectedItem = dl
End If
Next Nice one! Give this man a cigar!!
Regards,
Tom
|
|
|
|
|
mincefish wrote: Nice one! Give this man a cigar!!
Glad to be of your help.
|
|
|
|
|
hi i new on this forums and one of beginner in visual basic programming
i need some help 4 my project:
1.what should i do to crop a part of image/picture in picture box
2.how make a color filter in picture?
3.what color in pixel(x,y) and mark it?
thanx a lot
ndox
yahikjsaklfjsdakldxznvc,xznvklsdjfksdcklsdjfklsdjfklsdjfkljsdlkfjsdlk
|
|
|
|
|
1 - use DrawImage on the graphics class to make a cropped copy. Or better yet, ditch the picture box and draw it yourself.
2 and 3 - read my image processing for dummies articles, they are on this site.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
what about automatically crop/copy,while we run the program there are some part of my picture
if u could give me some related program i really apreciate it
thanx
ndox
|
|
|
|
|
Hi,
I wanted to get the Title of MSI file..
For eg. For every MSI file in C:\Windows\Installer\ , I want to check title of every MSI.. like xyz.msi->right click on it->select properties ->select 'summary' -> get title/subject.
can anybody help ?
thanks in advance.
Supriya
|
|
|
|
|
hi guys
I have an access database password protected
what should I change on this code
to pass the password on runtime
Dim crReportDocument As CC
crReportDocument = New CC
Dim ss As String = Application.StartupPath()
Dim logOnInfo As New CrystalDecisions.Shared.TableLogOnInfo
'logOnInfo.ConnectionInfo.ServerName = ss & "\\dbb.mdb"
logOnInfo.ConnectionInfo.ServerName = ss & "\\db.mdb"
crReportDocument.Database.Tables("fmTab").ApplyLogOnInfo(logOnInfo)
CrystalReportViewer1.ReportSource = crReportDocument
thanks alot
Marina f. maayah
MffM
maayah2000@yahoo.com
|
|
|
|
|
|
Hi,
i am doinge a project in vb 6.0 in which i call a exe which is in vb.net.it works fine at developing machine but when i made set up and installed on other machine it,application gives error in calling this vb.net exe. the error is
Application has generated an exception that could not be handled
Process id=0x324(804),Thread id=0x360(864).
click OK to terminate the application
click CANCEL to debug the application
when i click cancel it debug and gfives error
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in HyDwV410AutoCost.exe
Thanks
|
|
|
|
|
In your first .EXE, you probably did not specify the full path to the .EXE you wanted to launch. You probably just specified the filename without any path information, didn't you?
Always, always, always, build and specify full paths to any files you want to use. Never assume that the "current directory" is what you think its supposed to be, because chances are, it's not. Just like you've just found out with the error that your getting.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I think path is not the problem because after installing on client computer its not working then i copied the wanted exe file to the folder in program files where this application installed then its working. I don't why its not workinf when installed.
Thank You
Thanks
|
|
|
|
|
Because you didn't include the .EXE as an extra file in the Setup properly, look for something that says "Additional files". You either didn't add it at all or you added it, but its destination is the wrong folder.
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 7:29 Thursday 15th June, 2006
|
|
|
|
|
i think you are right! this thing may solve my problem.
Thanks very much
Thanks
|
|
|
|
|
using a button in vb.net 2003, how do i open a webform name wbpTest from another form by clicking the button?
(the equivalent to frmForm.show)
|
|
|
|
|
write this line in click event of button
Server.Transfer("wbpTest.aspx")
Thanks
-- modified at 5:58 Wednesday 14th June, 2006
|
|
|
|
|
Buenas, antes que nada les comento que es la primer pregunta que vierto en este espacio que tan gentilmente se nos ofrece para seguir progresando en este apasionante mundo de la programacion que nos compete. Gracias por todo, y ahora "a la pregunta se ha dicho".
Se me ha encomendado en mi empleo que desarrolle una winaplication (winform) que lo unico que haga sea detectar si esta instlado el framework (cualquiera de sus versiones) y en caso de que no este instale vamos a decir por ejemplo el frame 2.
Problemas:
1- primero no sabria como hacer que mi aplicacion detecte de manera confiable si esta el frame instalado, supongo que el asunto debe estar por explorar la registry o el GAC a la busqueda de las entradas de regustro pertinentes para la primera opcion a una .dll en la segunda.
2- Tampoco se como podira mi aplicacion instalar el frame, supongo que deben exisitr clases que ejecuten ejecutables, en esta direccion se me ocurre que puedo tener como parte del deploued de mi aplicacion el instalador del frame.
Bueno de antemando gracias y cualquiera que piense que puede ayudarme se lo agradezco enormemente. Hasta pronto!!
Lucas
|
|
|
|
|
Lucas,
This is an English language forum. I cannot read Spanish nor does www.freetranslation.com[^] or babelfish.altavista.com[^] make any sense of your post.
I think you are asking how to detect the presence or non-presence of the NET framework at installation time? If you can re-post in English we'll see what we can do to help.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
<br />
Private Sub Image1_Click()<br />
Dim SMTP As Object<br />
Set SMTP = CreateObject("ANSMTP.Mail") <br />
SMTP.ServerAddr = "pophm.sympatico.ca" <br />
SMTP.FromAddr = "email@email.com" 'sender' email address<br />
SMTP.AddRecipient "Me", "email@email.com", 0 <br />
SMTP.BodyFormat = 1 <br />
SMTP.Subject = Text1.Text & Text2.Text <br />
SMTP.BodyText = Text1.Caption & Text2.Caption<br />
<br />
If SMTP.SendMail() = 0 Then 'send email<br />
MsgBox "Email delivered", vbOKOnly, "ANSMTP COM Object"<br />
Else<br />
MsgBox SMTP.GetLastErrDescription, vbOKOnly, "ANSMTP COM Object"<br />
End If<br />
<br />
End Sub<br />
When I try and run it it gives me a run-time error #429. I debug it and it highlights the third line. (Set SMTP = CreateObject...)
Hengy
I like Pie
|
|
|
|
|
Have you installed the component on the computer?
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
i know that the title wasn't good but anyway i will explain as good as i can to let you see the problem
i have my two data files .Mdf & .Ldf in a folder named MyData in the bin folder where i have ma .exe file
in the vs.net i have this
Public Con As SqlConnection<br />
<br />
<br />
Public Sub main()<br />
bda:<br />
Con = New SqlConnection("data source=ORDI_AMINE;integrated security=SSPI;initial catalog=GHotel")<br />
CmdAt.Connection = Con<br />
Try<br />
Con.Open()<br />
Catch ex As Exception<br />
Con.Close()<br />
Con.ConnectionString = "data source=ORDI_AMINE;integrated security=SSPI;initial catalog=master"<br />
Con.Open()<br />
CmdAt.CommandText = "exec sp_attach_db @dbname = 'GHotel',@filename1 = '" & Application.StartupPath & "\MyData\GHotel_Data.MDF', @filename2 = '" & Application.StartupPath & "\MyData\GHotel_Log.LDF'"<br />
CmdAt.ExecuteNonQuery()<br />
Con.Close()<br />
GoTo bda<br />
' Con.Open()<br />
End Try<br />
FrmBien.ShowDialog()<br />
End Sub
GHotel is my database
when i do setup for ma app. it gaves me a bug by the opposite it works very well when i'm working in vs.net you can try it if you want to
can you tell me where is the problem ??
ah i forgot i added a folder named MyData to the app. Folder when i was creating the setup & i added in this folder the two files .Mdf & .Ldf
thank you very much
try to be good if you can't be the best
|
|
|
|
|
Mohammed Amine wrote: when i do setup for ma app. it gaves me a bug by the opposite it works very well when i'm working in vs.net you can try it if you want to
Huh? What is the error you are getting? Posting code without the accompanying error is useless.
BTW, have you tried removing the leading '\' from the path you are constructing?
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
I'm using Visual Studio 2005 and I'd like to make a "Quick Print" button that finds the default printer on your computer and prints to it without a preview or dialog of any kind (like the print icon on office toolbars). Does anyone know the code to get the default printer?
|
|
|
|
|
Okay..I'll answer my own question. Even though I didn't want to use a print dialog control I added it to my form. Then I just used it without displaying it to the user so all of the printer settings that it contained were system defaults. It works, but it seems like a waste. If anyone knows of a nicer way to do it, I'd appreciate it.
|
|
|
|