|
I tried your code but i got one message!
MCAD
|
|
|
|
|
Thanks for trying. I also tried the code in the simplest case, one form with a treeview and a textbox.
The interesting thing is, when i click the textbox to trig the AfterLabelEdit event without making any change on the node label, the message box only pop up once. However, if i click somewhere else inside the treeview to trig the event, the message always pops up twice.
Really strange, I have no idea on how to block the second message box.
|
|
|
|
|
we use makefiles to build a very large application, and we are just starting with C# - we will need to use makefiles here too for the foreseable future.
I am having problems with ImageList added to a form. Inside DevStudio 2003, I add an imagelist with a few images, use some of the images in a toolbar and then save the form. When I build this simple app inside DevStudio, it runs fine.
I try to build this from the command line but when I do, it crashes on the following line:
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
Here's what the command line to build the app looks like:
csc /out:mytest.exe /t:winexe /nologo /debug+ /debug:full /res:Form1.resx AssemblyInfo.cs Form1.cs
Any ideas why it crashes when accessing the imagestream from the resources?
Thanks
Rich
remove the xxx's from the email address if you wish to write me directly.
|
|
|
|
|
i need to use a flash design in my interface in aprogram wrote by c#
and i don't know way to do that
also how can i make animation in c#
|
|
|
|
|
|
|
I want to label tick marks along XYgraph axes. The code fragment below will draw the tick marks along the x-axis. It will also draw the labels (i.e. -8.0 -7.0, -6.0 etc...) but I can't seem to get the tick marks and the numbers to line up. One problem is that when the labels float value is >= 0.0, the minus sign disappears and skews the label from the tick mark...
//Here is the code fragment
void DrawGraphXandYTicks(Graphics g)
{
Pen tickPen = new Pen(new SolidBrush(Color.BlueViolet), 1);
//Draw x-axis ticks.
float f = -8.0f;
PointF xtickPoint = new PointF(xIndent, yIndent + graphRect.Height/2);
Font labelFont = new Font("Courier",6);
SolidBrush labelBrush = new SolidBrush(Color.BlueViolet);
StringFormat strFmt = new StringFormat();
for(float fx = xtickPoint.X; fx <= graphRect.Width; fx += xtickPoint.X)
{
g.DrawLine(tickPen, fx, xtickPoint.Y - 2, fx, xtickPoint.Y + 2);
g.DrawString(f.ToString("f1"), labelFont, labelBrush, fx + 14, xtickPoint.Y + 4, strFmt);
f++;
}
Please Advise and thanks in advance
|
|
|
|
|
Use Graphics.MeasureString to find out how big your string will be, and then divide this in half to make the text centre on the tick mark.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi, Im trying to make an aplication to no notity clients by remoting from one server.
I has this exception:
Type: SerializationException
Source: Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed.
Description: System.Runtime.Serialization.FormatterServices --> System.Object GetSafeUninitializedObject(System.Type)
What do I need in security?
How can I solvethis problem?
I you need more information, jas say me.
Thank you!
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|
|
is this code written in previous version of .net framework 1
MCAD
|
|
|
|
|
Sorry, I forgets to say that he is in c# 2005
This would be the problem?
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|
|
|
Thank you so much!
I will read about.
La realidad no es más que impulsos eléctricos del cerebro - Morpheus
|
|
|
|
|
Hello gurus,
I'd like to have a code snippet that shows how to detect which treenode has been double clicked in a treeview control?
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
Check for SelectedNode
this code will display node's text in Messagebox
private void treeView1_DoubleClick(object sender, System.EventArgs e)
{
MessageBox.Show(treeView1.SelectedNode.Text);
}
MCAD
|
|
|
|
|
as simple as this...
it works!
thanks
There is no spoon.
|
|
|
|
|
I'd rather use the MouseDown event and check e.Clicks = 2 . It allows you do find out which button (DoubleClick is fired indistintly for left or right buttons.)
But the rest, stays the same.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
|
|
|
|
|
Hi, I have a question, should we use Nunit for testing and at the same time avoid the TDD part, since TDD can be time consuming for short term projects.
Please your comments will be appreciated.
|
|
|
|
|
Hi, I have a question, should we use Nunit for testing and at the same time avoid the TDD part, since TDD can be time consuming for short term projects.
Please your comments will be appreciated.
|
|
|
|
|
Use whatever bits of it you like.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Is it possible to show a thumbnail within the CheckListBox control in a windows forms? :-
sahoREGS
|
|
|
|
|
If you need to show thumbnail image within the CheckListBox you need to owner draw it subclass your Ylass from CheckListBox and draw item as you want
MCAD
|
|
|
|
|
Hey I have this regex expression
"([\w\s]+)* ([\w\s]+)* West" <== 2 white spaces after *'s
that for some reason, when matched against the string
"Day Amount Direction3 100 West5 43 North5 44 North West7 54 South2 5995 East2 5995 North,Northwest 54 35345 543 North6 West"
Makes 3 regex engines i've tried (java and expresso, .net) crash or something. They just sit there and consume 100% processor time...
Does anybody know what's going on and how I can match this expression?
/\ |_ E X E GG
|
|
|
|
|
What part of the string do you want to match?
"Expresso" crashes as well.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Any character any number of repetitions a space any character any number of repetitions a space and "West"
That's what I want to match. It should get 2-4 matches depending on variables...
/\ |_ E X E GG
|
|
|
|