|
Hi,
Please help me
How Can I get Pendrive Serial No in VB.Net.
Thanks & Regards
Form :-
Vikash Yadav
|
|
|
|
|
Dear All:
I have a problem in vb2008 that when using assembly method to call a form ,When trying to call a sub within this form vb2008 doesn't do anything.
could you help me
Thanks in advance
Aiman Farouk
|
|
|
|
|
just two days back only i solved this problem, Try this below code and this may help you to find out your solution
******This is your windows application or class library project, but it should be "Public Module"******
Public Module TestModule
Public Sub Test()
MsgBox("Test successfully completed")
End Sub
End Module
******Below Code to your Current Project******
Imports System.Reflection
******Use the below code at any event or funtions******
Dim Path As String = "......\"
Dim FileName As String = "XXXX.dll" 'Or "XXXX.exe"
Dim FileAssembly As Assembly = Reflection.Assembly.LoadFile(Path & FileName)
Dim ModuleName As String = "TestModule"
Dim SubName As String = "Test"
Dim RefType As Type = FileAssembly.GetType(FileAssembly.GetName.Name & "." & ModuleName)
Dim MyForm As Form = New Form
RefType.InvokeMember(SubName, BindingFlags.InvokeMethod, Nothing, MyForm, Nothing)
Please tell me the above codes are working or not.......
|
|
|
|
|
Thank you for your reply .
I tried it but an error displayed
System.Reflection.TargetInvocationException was unhandled
again I want to clear it I want to call a public sub declared inside the form class which I am opening through assembly
Hope to clear it for me
|
|
|
|
|
Without using any setup and deployment, how can we create the setup file using fresh code.
Please help me to find out the solution.
Thanks in Advance,
KV
|
|
|
|
|
Write code to copy your files to the appropraite places required, create and the registry keys and values you need, and modify any other configuration files. Shouldn't be too hard, just time consuming.
|
|
|
|
|
please give me any sample code
Thanks
KV
|
|
|
|
|
You Have to Create Installer Class and create CustomActions. look at this
http://www.google.co.za/search?hl=en&q=Create+Installer+Class&btnG=Google+Search&meta=[^]
Am Still Struggling in that matter too. trying to update the WebConfig.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
I don't have any code that shows how to do it. And seriously, if you can't copy a file in code, you really don't have the skills to make an entire setup for you app.
The only thing I use are MSI installer editors, like InnoSetup, Wise Package Studio, or InstallShield. I just don't believe in reinventing the wheel.
|
|
|
|
|
hi Dave ,
Can you please help me with the kinda same Problem , i posted my Problem here
http://www.codeproject.com/script/Forums/View.aspx?fid=12076&select=2929159#xx2929159xx[^]
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
An ASP.NET app is a bit more complicated, and no I don't have any sample setup projects. I just don't go through the MAJOR hassle of reinventing the setup project that comes with Visual Studio.
|
|
|
|
|
Thanks for your Reply Dave
me too. The only thing that i need to achieve is Accept the user input from the Setup Process and change the Webconfig(ConnectionString), i dont want to move directories around, but i think i should be easy to do that. My problem in the link i gave you, is that i cant open the WEbConfig to write on it. well the code works on the page , but not on the installer Class Project.
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
www.ITS.co.za
|
|
|
|
|
|
I don't see the point of having two threads, if one has to stop while the other runs. I think you've missed the point of threading.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hai all,
is it possible to take and run vb.net windows application setup as windows service...if possible means how to take and run vb.net windows application setup as windows service....
is it possible to run the vb.net windows application setup automatically 5 mins once....if possible means...how to run vb.net windows application setup automatically...want to run 5 minutes once automatically...
thanks in advance...
|
|
|
|
|
You want to install a service and have it then run automatically ? Yes, that's easily done.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
When i run My Project there is ERROR that
Could Not load file or assambly " DriveinfoEX.dll, 1.1.3326.15292 Culture=neutral,Public key token=1 or its dependensy. the application faild to start because its side by side configration is incorrect please see the application event log for more detail(Exception from HRESULT:0x800736B1)
Thanks & Regards
Form :-
Vikash Yadav
|
|
|
|
|
Hi,
you are not the first[^] to have such problem.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hi,
I am trying to send an email for my gmail account using SMTP code in VB.net; however, the email is not getting sent. I am using the code shown below. Kindly suggest what am I doing wrong. Thanks.
Aman
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
'Start by creating a mail message object
Dim MyMailMessage As New MailMessage()
'From requires an instance of the MailAddress type
MyMailMessage.From = New MailAddress("abc@gmail.com")
'To is a collection of MailAddress types
MyMailMessage.To.Add("abc@yahoo.com")
MyMailMessage.Subject = "GMail Test"
MyMailMessage.Body = "This is the test text for Gmail email"
'Create the SMTPClient object and specify the SMTP GMail server
Dim SMTPServer As New SmtpClient("smtp.gmail.com")
SMTPServer.Port = 465
SMTPServer.Credentials = New System.Net.NetworkCredential("abc", "cba")
SMTPServer.EnableSsl = True
Try
SMTPServer.Send(MyMailMessage)
MessageBox.Show("Email Sent")
Catch ex As SmtpException
MessageBox.Show(ex.Message)
End Try
End Sub
|
|
|
|
|
Looks reasonable to me. I'd assume the issue is something to do with gmail, and not your code, assuming your settings are all correct.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Is their anyway to Send Email in Exchange 2007 without using SMTP because client doesnot want to enable it Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
I've just tested your code on my smtp account and it works perfectly. I only removed the following cause they don't apply in my case:
' SMTPServer.Port = 465
' SMTPServer.Credentials = New System.Net.NetworkCredential("abc", "cba")
' SMTPServer.EnableSsl = True
|
|
|
|
|
Hassan, could you please share what number did you use for the port and what did you use for SMTPServer.EnableSsl!!
Thanks,
Aman
|
|
|
|
|
The port number for Gmail's SMTP is 587 , i think that is the problem following is the code i am using in my application and it works
Dim smtpClient As New Net.Mail.SmtpClient()
Dim mail As New Net.Mail.MailMessage()
'create the message to be sent
mail.To.Add("test@test.com") ' Enter the Email of the person you want to send the mail to
mail.From = New Net.Mail.MailAddress("username@gmail.com", "Your Display Name") ' Enter Your email address
mail.Subject = "Test Message"
mail.Body = "This is a test message"
' Prepare the client to send the above message
smtpClient.Host = "smtp.gmail.com"
smtpClient.EnableSsl = True
smtpClient.Port = 587
smtpClient.Credentials = New Net.NetworkCredential("username@gmail.com", "password") 'Enter username and password of the account , you want to use to send mail
smtpClient.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.Network
smtpClient.Send(mail)
|
|
|
|
|
I have a macro in Excel VBA.
I was running it by hot-keying it to control q, but now that all other things are up and running live, I wanted to perform the macro immediately upon opening the file.
No Problem, I thought, I would just move the macro to Private Sub Workbook_Open () / End Sub and that would be it.
Alas not.
I have no problem, I just put a Call in there instead, but I was wondering why I couldn't cut and paste the stuff in and expect it to work!
Am I missing something basic? (no pun intended)
------------------------------------
"Your manuscript is both good and original. But the part that is good is not original, and the part that is original is not good."
Dr Samuel Johnson
|
|
|
|