|
I have been given a project to do where I have to customize the Right-click menu of the Outlook window and have an option that sends the whole email to a Windows Application’s textbox. Plz help!!
Mvelo Walaza
Jnr Developer
Telkom SA
|
|
|
|
|
|
Hi
My program runs f1_paint(object sender, PaintEventArgs e) this draws line a the form. Now I get some values from external source like a file and I want to update the f1_paint(object sender, PaintEventArgs e) how do I do it?
Basically the drawline function is in the f1_paint and I loaded everything in it file the file control etc etc but when an event occurs I store a bunch of values on a buffer and want the drawline in f1_paint(object sender, PaintEventArgs e) to run a-fresh with the new data...how do I do it?
Thanks
Samuel
|
|
|
|
|
Hello,
You could call "f1.Refresh()".
All the best,
Martin
|
|
|
|
|
Hi,
Control.Invalidate() exists so you can signal something has changed that affects
the look of your Control; it sill cause a repaint to occur.
|
|
|
|
|
What have you tried ? The obvious is to repeat this code with a 1 and a 2 in place of the 0.
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 )
|
|
|
|
|
Why don't new and override appear at the same point in the declaration?
public override void Blah(){}
but
new public void Blah(){}
|
|
|
|
|
Hello my angry friend!
Steve_Harris wrote: Why don't new and override appear at the same point in the declaration?
You can do it just like you want!
All is possible:
public override void Blah(){}
override public void Blah(){}
new public void Blah(){}
public new void Blah(){}
So take a big breath and relax.
All the best,
Martin
|
|
|
|
|
Thanks mate! I blame Wrox for printing one before and one after the public .
|
|
|
|
|
Steve_Harris wrote: I blame Wrox for printing one before and one after the public.
Yes, thats kind of unconsistent!
You are wellcome!
All the best,
Martin
|
|
|
|
|
But it seems partial must always be last when included?
|
|
|
|
|
Hello,
Yes, that's true!
But in fact it is also limited to classes I guess and so I would also not se it as unconsistend.
public class partial MyClass
All the best,
Martin
|
|
|
|
|
Reply will be appreciated.
Regards
Chintan
www.visharadsoft.com
(Nothing is so purify as KNOWLEDGE)
|
|
|
|
|
Make the icon your drag image
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 )
|
|
|
|
|
Hi. I am having problem in getting the name of the node in treeview control. When I searched in events list there is no exact event which matches this scenario. If I select "DoubleClick" event, I dont get any reference of currently selected node.
The contents of tree (i.e nodes) are generated dynamically. When clicked on any of this node, I should get that node's name
Should I create new event of my own? If so, how to do that? tell me how should i proceed.
Thanks,Divya
Divya
|
|
|
|
|
No you dont need to create a new event.
You can use the NodeMouseClick event of the treeview.
e.Node.Name will return you the Node Name.
In btw, make sure when you add a node dynamically, you specify its name also
|
|
|
|
|
My target Framework is 1.1. NodeMouseClick event is present in 2 and 3 framework. Is there any method to do in 1.1 framework?
Thanks
Divya
|
|
|
|
|
Use AfterSelect event instead.
Make sure you handle the first click as it will return the name of root node.
|
|
|
|
|
treeView1_AfterSelect(), displays node name for just a single click.i.e as soon as u select a node, its name is displayed.
But I want name of the node to be displayed after double clicking it.
Thanks,Divya
|
|
|
|
|
Hi Bhardwaj, thanks for ur reply
Here is the solution for my problem..
Use DoubleCLick event itself. Just need to typecast the sender object to TreeView
private void treeView1_DoubleClick(object sender, System.EventArgs e)<br />
{<br />
TreeView myTree = (TreeView)sender;<br />
MessageBox.Show(myTree.SelectedNode.Text);<br />
}
Regards, Divya
|
|
|
|
|
Dear Divya
In the below code you can find your solution :
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
{
MessageBox.Show(e.Node.Name.ToString());
}
Also, you can read my article about storing tree in SQL at the below link:
http://www.codeproject.com/useritems/TreesAndSQL.asp[^]
Regards,
|
|
|
|
|
treeView1_AfterSelect(), displays node name for just a single click.i.e as soon as u select a node, its name is displayed.
But I was name of the node to be displayed after double clicking it.
My target Framework is 1.1
Thanks
Divya
|
|
|
|
|
The MouseEventArgs has a Location property
And the TreeView has a GetNodeAt method.
So myTree.GetNodeAt ( e.Location )
|
|
|
|
|
Hey..
I want a simple example to draw an opengl cube!
Can you help me to get a program that draws it?
Noha.Y
|
|
|
|
|
hello how can i get radiobutton in datagrid.
i want to get through property builder is it possible.
please give me any idea.
it is c# application.
thank you
srinivas
|
|
|
|