Click here to Skip to main content
15,919,613 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralVBA & Excel & HTML Pin
laurarana26-Jun-03 21:16
laurarana26-Jun-03 21:16 
Generalhelp with command line arguments Pin
DJ Unreal26-Jun-03 8:48
DJ Unreal26-Jun-03 8:48 
GeneralBest way to end a form Pin
yuniit26-Jun-03 8:29
yuniit26-Jun-03 8:29 
GeneralRe: Best way to end a form Pin
Dave Kreskowiak27-Jun-03 8:52
mveDave Kreskowiak27-Jun-03 8:52 
GeneralUndo, Cut, Copy, Paste Pin
JohnExalt25-Jun-03 20:27
JohnExalt25-Jun-03 20:27 
GeneralCutCopyMode = false Pin
akbcb25-Jun-03 10:45
akbcb25-Jun-03 10:45 
GeneralPulling the users login name into VB.net Pin
code_gopher25-Jun-03 4:30
code_gopher25-Jun-03 4:30 
GeneralRe: Pulling the users login name into VB.net Pin
dynamic25-Jun-03 7:26
dynamic25-Jun-03 7:26 
you mean this :
VB:
<font color="blue">Private</font> <font color="blue">Sub</font> Button1_Click(<font color="blue">ByVal</font> sender <font color="blue">As</font> System.Object, <font color="blue">ByVal</font> e <font color="blue">As</font> System.EventArgs) <font color="blue">Handles</font> Button1.Click
        <font color="blue">Dim</font> id <font color="blue">As String</font> = System.Environment.UserName & Chr(10) & System.Environment.UserDomainName
        MessageBox.Show(id)
    <font color="blue">End</font> <font color="blue">Sub</font>



hope that helps, you can also do this :
Imports System.Security.Principal <<< at top of form , then this :
VB:
<font color="blue">Private</font> <font color="blue">Sub</font> Button3_Click(<font color="blue">ByVal</font> sender <font color="blue">As</font> System.Object, <font color="blue">ByVal</font> e <font color="blue">As</font> System.EventArgs) <font color="blue">Handles</font> Button3.Click
        <font color="blue">Dim</font> wp <font color="blue">As</font> WindowsPrincipal
        wp = <font color="blue">New</font> WindowsPrincipal(WindowsIdentity.GetCurrent())

        MsgBox(wp.Identity.Name.ToString)

    <font color="blue">End</font> <font color="blue">Sub</font>


Smile | :)


<font color="blue">Private void</font> ExpectingTwins(<font color="blue">string</font> twins)
    {    
    <font color="blue">switch</font>(twins)
    {
    <font color="blue">Case</font> ("twins on the way"):
        MessageBox.Show("for mr and mrs dynamic","twins on the way");
    <font color="blue">break</font>;
    }
    }




GeneralRe: Pulling the users login name into VB.net Pin
code_gopher25-Jun-03 7:51
code_gopher25-Jun-03 7:51 
GeneralMonthCalendar auto-firing Pin
User 814725-Jun-03 3:55
User 814725-Jun-03 3:55 
Generalglobal data Pin
Anonymous25-Jun-03 3:09
Anonymous25-Jun-03 3:09 
Generalactivex exe asynchronous Pin
r i s h a b h s25-Jun-03 1:47
r i s h a b h s25-Jun-03 1:47 
GeneralRe: activex exe asynchronous Pin
JohnExalt25-Jun-03 20:29
JohnExalt25-Jun-03 20:29 
Generalactivex exe asynchronous calling Pin
r i s h a b h s25-Jun-03 1:46
r i s h a b h s25-Jun-03 1:46 
Generalproblem with VB.NET and XML web services Pin
AirGuitarist24-Jun-03 18:41
AirGuitarist24-Jun-03 18:41 
GeneralRe: problem with VB.NET and XML web services Pin
Ian Darling26-Jun-03 22:50
Ian Darling26-Jun-03 22:50 
GeneralRe: problem with VB.NET and XML web services Pin
AirGuitarist27-Jun-03 19:42
AirGuitarist27-Jun-03 19:42 
Generaltutorial for vb.net setup deployment on another computer Pin
44Class24-Jun-03 18:30
44Class24-Jun-03 18:30 
GeneralRe: tutorial for vb.net setup deployment on another computer Pin
Wayne Phipps25-Jun-03 1:19
Wayne Phipps25-Jun-03 1:19 
GeneralRe: tutorial for vb.net setup deployment on another computer Pin
44Class25-Jun-03 11:46
44Class25-Jun-03 11:46 
GeneralWebclass question - VB6 and XP Pin
dpalazol24-Jun-03 17:18
dpalazol24-Jun-03 17:18 
GeneralRe: Webclass question - VB6 and XP Pin
Dave Kreskowiak27-Jun-03 9:05
mveDave Kreskowiak27-Jun-03 9:05 
General??icon association w/eVb and eVC++...but... Pin
shirleyLo24-Jun-03 8:48
shirleyLo24-Jun-03 8:48 
Generalhave code for icon association w/eVb and eVC++...but... Pin
shirleyLo24-Jun-03 8:47
shirleyLo24-Jun-03 8:47 
GeneralVB.Net exam questions Pin
boro1224-Jun-03 6:54
boro1224-Jun-03 6:54 

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.