|
You seem to have mistaken us for RentACoder[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I'm just trying to solve a problem that is too much for me to do, I welcome any help in exchange for robotics products or just for the fun of it and the credit. I'm not trying to offend any one.
|
|
|
|
|
Today I discovered that the .Net 2.0 combobox append autocomplete mode drops of text after a / (forward slash). I am guessing that it is some kind of escape character.
I have never run into this before. Is there a way to resolve this behavior?
Thanks
Lance
|
|
|
|
|
|
How to change the Gateway from Vb.net 2005
I saw the following
Dim RixRoad As New ProcessStartInfo<br />
RixRoad.FileName = "Netsh"<br />
<br />
RixRoad.Arguments = "interface ip set address name=""Local Area Connection"" static 192.168.1.102 255.255.255.0 192.168.1.2 1"<br />
Process.Start(RixRoad)
But how to change the Gateway only?
I have no problem if you provide me any other solution then the above 1
Regards
Ramy
|
|
|
|
|
I would like to programmatically extract all the files from a Windows XP compressed folder. The folder contains multiple subfolders, and the system.io.compression namespace only deals with individual files.
It's for an install. Shipping this complicated structure, and decompressing it would make life really easy.
I thought of using a process, but I don't know the commands to use.
Any help would be greatly appreciated!
|
|
|
|
|
Sir/Madam,
can i programically find out the SMTP server hostname from my computer in vb.net 2005 Window Application.
Thanks and regards
Pankaj
|
|
|
|
|
First you need to set your SMTP server hostname in your app.config file:
<system.net>
<mailSettings>
<network host="SMTPServerNameHere" />
</mailSettings>
</system.net>
Then you can to this:
dim _systemNet as System.Net.Configuration.NetSectionGroup
dim config as Configuration = Nothing
config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
_systemNet = config.GetSectionGroup("system.net")
finally this will have your smtpserver name
_systemNet.MailSettings.Smtp.Network.Host
Hope that helps.
Ben
|
|
|
|
|
Sir,
I am using window application in vb.net 2005.
Thanks and regards
Pankaj
|
|
|
|
|
All the code I have in the above post will work with vb.net and vs 2005. So I am not sure what your questions is.
Ben
|
|
|
|
|
Sir/madam,
Please tell me , How should I open the outlook express in vb.net 2005 Window Application to send the mails .
Thanks and regards
Pankaj
|
|
|
|
|
Process.Start, if given an email address, should open the default mail program.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Sir/Madam,
Can somebody please suggest me how can i generate a barcode with vb.net - .NET 2005 Window Application.
Thanks and Regards
Pankaj Garg
|
|
|
|
|
In most cases when I have produced barcodes, I have used a barcode font. So then you just need to decide which barcode you are trying to produce and then figure out how to get that font. In most cases you can just pass the normal test like 1234 and the font will take care of making into a barcode.
Hope that helps.
Ben
|
|
|
|
|
That depends entirely on the type of barcode you want to generate. Just using fonts won't cover some types of barcodes.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi in my sqlserver,i have three roles for a particular database...,
Each role have some limited wrights to access that database table...,
Ex:
Database name(DBName) have five tables:
Table1, Table2, Table3, Table4, Table5
and three roles:
Admin,User,Guest
Admin have all Wrights,he can insert,update or delete in that 5 tables...,
User have only insert wrights....,
Guest have only select wrights...,
Those things i already allocated in my database...,
Now my question is,
Suppose one of the user entering login page that person want to enter based on his wrights how to do that in vb.net...,
Plz any one knows help me,
All sorrows will be forget...,When u think ur most lovable one...,
Mag,
|
|
|
|
|
You are able to verify in your code if the person has rights . If the person is an admin, you execute a different sql statment, if he/she is just a user also just execute a different sql statement and so on...
Therefore, First you should check the credentials of a user and then execute a different statment. I think this is the easiet way to do it. Also You can perform pesimistic or optimistic record lockings as well when you initialize a table which will prevent an user not to perform some certain tasks in the specific table.
I hope that helps.
What a curious mind needs to discover knowledge is noting else than a pin-hole.
|
|
|
|
|
Sir/Madam,
Can i programically find out the no of users that have made the account on my operating system in vb.net 2005
I can find out the name of the user who started the thread.
By
System.Environment.Username
Thanks and regards
Pankaj Garg
|
|
|
|
|
Are you asking how to find out how many people are logged in on a machine?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Sir/Madam,
can i programically create the dsn in vb.net 2005 .I want to connect my Window application to Microsoft access database.Presently , I connect to the database my manually creating the dsn.
Please help.
Thanks and regards
Pankaj
|
|
|
|
|
You don't even need a DSN. All you need to do is build the connection string in your code. You can find the format of various connection string for Access, and just about any other database, at http://www.connectionstrings.com[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
open file dialog box selected path in message box
|
|
|
|
|
messagebox.show(openfiledialog.selectedpath.tostring)
Posted by The ANZAC
|
|
|
|
|
Hey everyone,
I am just playing round with a Visual Basic.net application. I would like to be able to do the following two things and was wondering if you could provide some guidance:
1. Terminate A running Process.
I was wondering if you could help me by giving me examples of terminating a process. The process I want to terminate is explore.exe.
2. Sending an email
I would also like to send an email based on the input received. Do you have any resources on doing this?
Thanks,
Brad
Brad
Australian
- Me on "Public interest"
If you actually read this let me know.
|
|
|
|
|
Process:
The System.diagnostics.process class provides a framework for interacting with processes. To kill a process, use the following.
System.Diagnostics.Process.Kill("explore.exe")
Email:
To use email functions you will want to deal with the system.net. To send an email is quite simple.
Dim m As New MailMessage(From, To, Subject, Body)<br />
Dim a As New Attachment(a file to attach)<br />
Dim c As New SmtpClient<br />
m.Attachments.Add(a)<br />
c.Host = name of the server (your internet provider)'eg mail@bigpond.com<br />
Try<br />
c.Send(m)<br />
MessageBox.Show("Mail Sent Successfully!", "Success!", MessageBoxButtons.OK)<br />
Me.Close()<br />
Catch ex As Exception<br />
MessageBox.Show("Mail could not be sent!", "Failed!", MessageBoxButtons.OK)<br />
End Try
Posted by The ANZAC
|
|
|
|