|
but u implement C# code in vb.net code
|
|
|
|
|
Uhhhhh..... what does this mean?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
That mean converting code from C# to vb.net Mr.'MVP';P
|
|
|
|
|
Sorry smartass, but "implement" is not interchangable with "convert". Their meanings don't even come close to each other. In either case, the OP is talking about about VB6, not VB.NET. Those two, also, don't even come close to being interchangable.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Give the users the opportunity to apply formatting to the messages, and someone will always abuse it...
Are you sure that the messages are really sent? What mail server are you using? Can you successfully send mail to some other mail address?
Some ISPs block the port for mail so that you have to use their mail server to send mail, to prevent spamming.
---
b { font-weight: normal; }
|
|
|
|
|
Agreed... recently I had a problem with an application where I could send mail internally, but not externally.
The code worked in VB 6, but not VB.NET; ultimately, I had to change the SMTP server node in the VB.NET code to make it work.
|
|
|
|
|
I want to load the 32 bit alpha icons like as in win xp with also there alpha shadows and blends i have downloaded a code from the vbaccelerator but it requires comctl32.dll ver 6.0 i have searched every where for that DLL but could only find ver 5.82 any one can help me with that to display the 32 bit icons in VB with there alpha channels.
eVERy tHINg Iz nOt wHAT iT sEEMs
|
|
|
|
|
Is there a way i can get the user name associated with the processes just like in task manager.
|
|
|
|
|
Do you mean get current username logged in PC?
If so :
using System.Security.Partial;<br />
.<br />
.<br />
.<br />
.
string username = System.WindowsIdentity.GetCurrent().Name.Tostring();
it gives DomainName\Username
|
|
|
|
|
I want the user name of the process and not the user who is logged in.
|
|
|
|
|
The code snippet that was posted will give you the name of the user running the process. It is usually but not always the person who is logged in.
Jared Parsons
jaredp@beanseed.org
http://jaredparsons.blogspot.com/[^]
|
|
|
|
|
Well, in VB 2005, this single line of code works :
My.User.Name
This returns the Name of the User under which the current process is running
Yuvi Panda T
Microsoft Student Partner
Blogs at : http://yuvipanda.blogspot.com
|
|
|
|
|
But I am using VS2003.
do you know how to get the user name for a process in 2003
|
|
|
|
|
Not sure, but I guess this should help:
System.Security.Principal.WindowsIdentity.GetCurrent().Name
Yuvi Panda T
15 Year Old Microsoft Student Partner
Blogs at : http://yuvipanda.blogspot.com
|
|
|
|
|
This will again get Logged on user name.
|
|
|
|
|
check this article
http://www.eggheadcafe.com/articles/20011015.asp
|
|
|
|
|
Thanx, but This article is telling how to kill a process and not how to list the username of the process.
|
|
|
|
|
if you're working on a win 2k, xp or 2k3 machine, check into the system.management namespace. it allows you to connect to wmi which has the information you need.
-jim
|
|
|
|
|
The Process class doesn't expose this functionality. The best method, like Jim said, would be to use WMI and the Win32_Process[^] class. Once you get the list of Win32_Process objects, call the GetOwner method on each one to get the information you need.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
Example:
DisplayMember = "term1"
ValueMember = "t001"
how do I get value "t001" from this combobox?
|
|
|
|
|
did u try by using selectedvalue:
ComboBox1.SelectedValue.ToString
check also this article
http://www.dotnet247.com/247reference/msgs/58/293562.aspx
|
|
|
|
|
How do I perform an SNMP Get or Set using VB.Net??? Please provide code as I have no clue where to begin. Thanks in advance!
|
|
|
|
|
test@corbus-systems.com wrote: How do I perform an SNMP Get or Set using VB.Net???
Check this article
Tarakeshwar
MCP, CCIE Q(R&S)
A conclusion is the place where you got tired of thinking.
-- modified at 23:48 Wednesday 10th May, 2006
|
|
|
|
|
Hello,
Working with I have a DataTable with 46 columns..including AgentID. I'd like to get all the unique AgentID's in the table without looping, ect. I think I should be able to do this with a DataView and it's RowFilter property but I'm not quite sure what to set the property to. It looks like it works very similar to an SQL query so I thought I could do something like:
.RowFilter = " DISTINCT AgentID "
or something but it didn't work. Google was no help. Anyone have experience with this property?
Thanks!
"Half this game is ninety percent mental."
- Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
|
|
|
|