Click here to Skip to main content
15,887,683 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionDotted line and Paint Bucket tool (Winforms) Pin
TheDen8-Dec-05 21:52
TheDen8-Dec-05 21:52 
QuestionCan windows application like c#.net be implemented using MVC Architecture Pin
sarayumadhavan8-Dec-05 19:57
sarayumadhavan8-Dec-05 19:57 
AnswerRe: Can windows application like c#.net be implemented using MVC Architecture Pin
Dave Kreskowiak9-Dec-05 5:52
mveDave Kreskowiak9-Dec-05 5:52 
AnswerRe: Can windows application like c#.net be implemented using MVC Architecture Pin
kennster20-Dec-05 6:51
kennster20-Dec-05 6:51 
Questionmfc42ud.lib in VS.Net 2005 C++ Pin
Lythimer8-Dec-05 4:43
Lythimer8-Dec-05 4:43 
AnswerRe: mfc42ud.lib in VS.Net 2005 C++ Pin
Saksida Bojan11-Dec-05 20:58
Saksida Bojan11-Dec-05 20:58 
Questionuser in computer Pin
sebastianos7-Dec-05 9:35
sebastianos7-Dec-05 9:35 
AnswerRe: user in computer Pin
MarcelErz12-Dec-05 5:37
MarcelErz12-Dec-05 5:37 
Hi!

If you are using a windows system, you just need to use the win32-api GetUserName:

Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, ByRef nSize As Integer) As Integer

Public Function GetCurrentUser() As String
Dim liReturn As Integer
Dim lsUserName As String
lsUserName = New String(CChar(" "), 250)
liReturn = GetUserName(lsUserName, 250)
GetCurrentUser= lsUserName.Substring(0, lsUserName.IndexOf(Chr(0)))
End Function

The imported function GetUserName require two parameters:
1. The destination string-buffer for output
2. The size of the username

Then, with substring and indexof, we cut all character "0" off and return the username.

Marcel Erz
AnswerRe: user in computer Pin
oykica13-Dec-05 6:27
oykica13-Dec-05 6:27 
QuestionCrystal Report Pin
farhha6-Dec-05 15:29
farhha6-Dec-05 15:29 
Questioncrystal report Pin
farhha6-Dec-05 7:12
farhha6-Dec-05 7:12 
QuestionToWords() Method within crystal Report Pin
achrafus6-Dec-05 2:11
achrafus6-Dec-05 2:11 
Question.Net Remoting on s Smart Device Pin
The Liquidian6-Dec-05 1:39
The Liquidian6-Dec-05 1:39 
AnswerRe: .Net Remoting on s Smart Device Pin
Gerben Jongerius7-Dec-05 6:43
Gerben Jongerius7-Dec-05 6:43 
QuestionDot Net Test Pin
Rabbit175-Dec-05 16:35
Rabbit175-Dec-05 16:35 
AnswerRe: Dot Net Test Pin
Robert Rohde6-Dec-05 6:24
Robert Rohde6-Dec-05 6:24 
QuestionGet Text from another application Pin
VOXVOXVOX5-Dec-05 6:10
VOXVOXVOX5-Dec-05 6:10 
AnswerRe: Get Text from another application Pin
lmoelleb6-Dec-05 20:53
lmoelleb6-Dec-05 20:53 
GeneralExcellent .NET Resource Pin
Faraz Ahmed5-Dec-05 6:02
Faraz Ahmed5-Dec-05 6:02 
GeneralRe: Excellent .NET Resource Pin
Ray Cassick5-Dec-05 8:04
Ray Cassick5-Dec-05 8:04 
GeneralRe: Excellent .NET Resource Pin
Faraz Ahmed5-Dec-05 23:58
Faraz Ahmed5-Dec-05 23:58 
GeneralRe: Excellent .NET Resource Pin
Ray Cassick6-Dec-05 5:44
Ray Cassick6-Dec-05 5:44 
QuestionRADIUS authentication Pin
JKroschel5-Dec-05 4:16
JKroschel5-Dec-05 4:16 
QuestionDeployment Problem Pin
fasttaxi4-Dec-05 23:08
fasttaxi4-Dec-05 23:08 
QuestionHaving trouble with pInvoke, weird behavior. Pin
dxben3-Dec-05 16:11
dxben3-Dec-05 16:11 

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.