|
%UserProfile% is an environment variable. Open a CMD prompt and type SET USERPROFILE and it'll show you what's it's current value is. If you want to to resolve that name, just use the Environment.GetEnvironmentVariable() method.
|
|
|
|
|
Hi all,
I have being given a task to display a message of Good Morning with the User Name eg: "Good Morning Mr. XYZ"
Can any one tell me how do I start with it. I am using ASP.NET 2005 (VB).
Please help me...
Thanks in advance...
|
|
|
|
|
System.Environment.UserName.ToString & " Good Morning !!!!!"
|
|
|
|
|
Thanks for the reply. Will u please tell me how do I write Windows Service???
|
|
|
|
|
|
Thanks for the Reply but Sorry to say I am still at the same place as I am not able to install the service....
|
|
|
|
|
|
I don think I'd write a windows service for this task. If you only want to display a message when the user logs in then create a standard executable and add it to the Windows Startup. Simple.
Public Module Main<br />
<br />
Public Sub Main()<br />
Messagebox.show("Good morning " & System.Environment.UserName.ToString<br />
End Sub
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
can somebody explains the following line
HKEY-USERS\S-1-5-19\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0\1004!=W=3
|
|
|
|
|
looks like a registry key to me. What do you want to know ?
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 )
|
|
|
|
|
Christian are u omniscient/omnipresent/omnipotent.U replies can be seen everywhere.Woh
By the way , I wanted to know the meaning of the following line.
!=W=3
|
|
|
|
|
It's encoded data for IE's Internet Zones security settings. You can find a bit more on it here[^].
|
|
|
|
|
Dim d() As Integer = {1}
Dim d1() As Integer = {2}
now is it right to write
Dim d2() As Integer = d1 + d
|
|
|
|
|
No, obviously not. You should use List<Integer> rather than arrays for things like this, but the Array class maybe also has methods to add a range of items. A list is just more efficient.
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 )
|
|
|
|
|
In this way?
Dim d As List(Of Integer)
Dim d1 As List(Of Integer)
Dim d2 As List(Of Integer) = d + d1
my question was actually that
d has values = {1,2,3}
d1 has values = {4,5,6}
now if i write d2 = d+d1
then d2 should contains {1,2,3,4,5,6}
|
|
|
|
|
That's not the way it works. There is no operation defined for (System.Array) + (System.Array).
You either uses lists for this or use the Array.CopyTo method to build this array.
Dim d1() As Integer = {1, 2, 3}
Dim d2() As Integer = {4, 5, 6}
Dim d3(5) As Integer
Array.Copy(d1, d3, 3)
d2.CopyTo(d3, 3)
Or using a List(Of T):
Dim d1() As Integer = {1, 2, 3}
Dim d2() As Integer = {4, 5, 6}
Dim d3 As List(Of Integer)
d3.AddRange(d1)
d3.AddRange(d2)
|
|
|
|
|
My question was based on vb.net.
Is not List<integer> concerned with c/c++ ?????????????
|
|
|
|
|
No, it's not. List and List(Of T) are collection classes in the .NET Framework. Any language that targets it can use those classes.
|
|
|
|
|
hello isidor7,
Thankx for your valueable help .
but if i read a page, word by word OR para by para then how can i come to know that the end of page is here.
suppose, if there is 10 pages then it is go on reading till the last page comes.. how can i come to know then that the page 1 is over and 2 is start ???
If u know plz help ....
thankx again for your reply
- koolparasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
well use the following pseudo code
prvPage=0 'stores previous page
while reading paragraph by paragraph '<<change this
="" if="" currentpage<="">prvPage then
'page changed!
prvPage=currentPage
end if
loop
isidoros
|
|
|
|
|
Dear Isidor,
thankx a lot.
can you give me code budy ????
please help....
-koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
Can anyone give me one example about Win Socket on Windows Form?
Thanks
................
|
|
|
|
|
Do you mean WinnSock Component?
Regards,
Satips.
|
|
|
|
|
Yes,if you know, Can you give me an example?
Regard
Socheat
................
|
|
|
|
|
The Article By Chris Kolkman WinSock.Net[^] here in CP will help you.
Regards,
Satips.
|
|
|
|