|
when you create treeview you are node and i need position of each node position (x and y)
jere
|
|
|
|
|
Nope still no clearer. X and Y normally refers to co-ordinates, and this would suggest screen co-ordinates, but this entirely depends on what nodes are opened or closed at the time.
|
|
|
|
|
yes it's true the nodes can close or open. you think it's better to get the screen co-ordinates. how do you get the screen co-ordinate of nodes
jere
|
|
|
|
|
Each node has a Bounds property, which is the bounding rectangle of the node.
|
|
|
|
|
Direct answer, Great!
While (true) { Human.isLearnable = true; }
|
|
|
|
|
|
No problem. Glad to help.
|
|
|
|
|
A TreeView has Root nodes and Child nodes.
When you say TreeView.Nodes[0]; it means the first Root node,
TreeView.Nodes[0].Nodes[0]; means the first Child node of the first Root node.
And so on...
While (true) { Human.isLearnable = true; }
|
|
|
|
|
Thanks you answer but i need the position of nodes.
jere
|
|
|
|
|
|
i saw you exemple but you get the treeview's position and not nodes.
thanks
jere
|
|
|
|
|
.
modified 6-Dec-16 7:34am.
|
|
|
|
|
Well whoop-de-freakin do. Somebody has found the smileys. Now did you want something or are you just an idiot with a mouse?
|
|
|
|
|
Oh great... Another retard...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Wow! That's a true nonsense profile.
You posted *this* after 7 months of lurking? May be you were trying to find out how to make a post for 7 months?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
hi guys,
I want to run any C# made exe from another C# program.
For that i used this code:
System.Diagnostics.Process.Start(exe path);
It's working fine.
But when i am using same code in OnStart() method of Windows Services.
It will start the process into Task Manager Processes, but not showing in screen whatever GUI that exe has.
To show GUI also , what should i do?
Thanks....
|
|
|
|
|
As services run under on different desktop, the application is running but it's gui is displayed on different desktop, that's why you can't see it. If you want to see GUI you will have to run process ob behalf of the user that is logged in.
If you want to have GUI for your service, just create new winforms application. To communicate between GUI and service you can use IPC or .NET Remoting.
|
|
|
|
|
You need to manually set the 'Allow service to interact with Desktop' to on.
Did you think how this will work when the PC starts, and no-one is logged in?
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - coming soon ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
leppie wrote: You need to manually set the 'Allow service to interact with Desktop' to on.
But it is no more supported in Vista.
|
|
|
|
|
Thanks .........It's working now.....
|
|
|
|
|
hi......leppie.....
Now it's working fine. But i want to set this property programmatically. Is it possible?
Thanks......
|
|
|
|
|
No you cant, as said, this is apparently not even possible on Vista.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - coming soon ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
|
Hi,
.net2 vs2005 xp
I have a datagridview whos SelectionMode property is set to FullColumnSelect
With focus in the grid the left and right keys move focus to the left and right columns...
Ive put a button on either side of the grid - i want the buttons to select the next or previous column in the grid (similar to the arrow keys) can anyone point me in the right direction on how to do this?
Thanks,
Chas
|
|
|
|
|
Got it working... right button:
if (DataGridView.CurrentCell.ColumnIndex != DataGridView.Columns.Count -1)
{
DataGridView.Rows[0].Cells[DataGridView.CurrentCell.ColumnIndex + 1].Selected = true;
}
Chas
|
|
|
|