|
in vb.net 2003?
I was using flexgrid(vb6 control) in 2003.In the form i drag droped a combo box also.then on the cell click i am making that combobox visible right at in that cell.
for that i wote the following code.
Private Sub flxGrid_ClickEvent(ByVal sender As Object, ByVal e As System.EventArgs) Handles flxgrid.ClickEvent
Dim xPos, yPos As Integer
Try
grdCol = flxgrid.Col
grdRow = flxgrid.Row
cmbChange.Visible = False
cmbChange.Width = CInt(0.068 * flxgrid.CellWidth)
cmbChange.Height = CInt(0.068 * flxgrid.CellHeight)
xPos = (flxgrid.Location.X + CInt(0.068 * flxgrid.get_ColPos(flxgrid.Col))) - 2
yPos = (flxgrid.Location.Y + CInt(0.068 * flxgrid.get_RowPos(flxgrid.Row))) '((flxGrid.Row + 1) * 20))
cmbChange.Left = xPos
cmbChange.Top = yPos
' m_ObjClsGeneral = New Generic.clsGeneral(gStrConn)
If flxgrid.Col = 2 Then ''For Actual Shift
Call FillShifts()
cmbChange.Visible = True
ElseIf flxgrid.Col = 3 Then ''For Status
Call FillStatus()
cmbChange.Visible = True
End If
End Sub
-- modified at 5:46 Monday 21st May, 2007
|
|
|
|
|
You're question isn't very clear. I can think of three different meanings with the way it's worded. Try these[^] to see if any of them are what you're trying to say.
|
|
|
|
|
Hi,
Is there any event that handles anykind of changes done on clipboard
Thanks in advance
Parag Gupta
|
|
|
|
|
please explain a little bit more.
|
|
|
|
|
No, I don't believe there's an event fired when the clipboard changes.
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 )
|
|
|
|
|
Private System.Collections.ArrayList m_workSocketList=ArrayList.Synchronized(New System.Collections.ArrayList())
Socket workerSocker=m_mainSocket.EndAccept
Above is c# code,who can converted to vb.net code.thanks
|
|
|
|
|
|
|
braleping wrote: Above is c# code
No, it's not.
---
single minded; short sighted; long gone;
|
|
|
|
|
This isn't C# code. The first line can be interpreted as VB.NET code, but not the second line.
|
|
|
|
|
can i programatically calculate the meaning of %USERPROFILE% FROM
%USERPROFILE%\My Documents\Visual Studio 2005\Projects
|
|
|
|
|
You could use Environment.SpecialFolder to get the My Documents folder for the current user.
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 )
|
|
|
|
|
That means %User Profile% is realted to current user?
|
|
|
|
|
I would presume so.
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 )
|
|
|
|
|
|
%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 )
|
|
|
|