|
Ok, thank you Baerten.
For now, i can't work on my app to run it without high IL, but this is the way.
Greetings
|
|
|
|
|
Hi all,
how to draw text in richtextbox..?
%#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG
|
|
|
|
|
What do you mean, draw ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I need input file using openfiledialog method.
Inside that file i did simulation command.
So i only need retrieve few command from that file into richtextbox.
My problem now,i cant retrieve any command from that file..
The command is in text format..
%#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG
|
|
|
|
|
I don't know whaty ou mean by 'retrieve command'
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello,
Let's say there are one ToolstripStatusLabel and ToolstripProgressbar in Statusbar.. I have set the width of label explicitly. I want to show the progressbar in the rest of area without setting width explicitly..
For example:
[statusbar with Dock=Bottom]
[label width="200"]
[progressbar width="*"]
[/statusbar]
How can I do that?
I'm using VS 2008 for winform..
|
|
|
|
|
Hi to all,
I want to show a (Crystal) Report in C#.
But I am not planning to use database.
So can I create/show a Report using XML or Array Data using Crystal Report or other tool in C#?
Thanks & Regards,
Aniket A. Salunkhe
|
|
|
|
|
I'm pretty sure Crystal Reports supports XML asa data source, although I have not use it for serveal years so I may be wrong
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Thanks for your reply.
I will try it.
|
|
|
|
|
Hi,
Do you have any example or link that will help for this?
And if I am using xml, then can I fire queries on that data?
Also can I show data from Variables into reports?
Thanks & Regards,
Aniket A. Salunkhe
|
|
|
|
|
Hai,
I saw the fisheye for list items in your forum. How to do same thing
for images..?
|
|
|
|
|
You seem to be confused. This forum is not for talking to the people who write the site, but to the whole community. I have a series of articles on image processing, not sure if any of them create fish eye images, although I've written code to unfisheye images before. What did you see and what do you want to do ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i have problems to count the black pixel in the image. That image must be splitted in 4 zone and i must calculate each zone's balck pixel.. can anyone help me with your skills in c#. please..thanks in advance...
|
|
|
|
|
Read my first image processing article for how to do this, it's pretty straightforward. It's here on CP
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello,
VS 2008.
I have the following code in the SelectedIndexChanged event of a combo box.
<br />
DataRowView drv; <br />
drv = (DataRowView) this.bsRedialedNumbers.Current;<br />
<br />
if (!drv.Row.IsNull("Number"))<br />
{<br />
phoneNumber = drv["Number"].ToString();<br />
name = drv["Name"].ToString();<br />
}
I have the combo box and a button. The user will select a name from the comb box and click a button to do something with that name. However, I have noticed that when I click to change an item in the combo box the event will fire once. Which is correct. However, when I click the button, this event will fire twice.
When the event fires for the second time it will give a -1 for the row. Which is not what I expect. As an item has been selected.
To do a quick fix for this problem I check for IsNull on the number column. Which works. However, I would like to find a complete solution for this problem. At the moment I haven't found one.
The reason I think the event fires twice when the button is click, is because the combo box has lost focus. But cannot see why this would fire the combo box. And why it would return a -1 for the row.
Many thanks for any suggestions and help,
Steve
|
|
|
|
|
Yes, a lot of events are like this, a radio button's check changed is another - it fires twice because a deselect fires, as a select does. I guess a deselect occurs as part of the sequence, hence the -1.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
I have an object which contains members, I use the GetMember(name) to retrieve my MemberInfo. How do I get a reference to this member object?
David.
|
|
|
|
|
I have a bound DataGridView on a form with the CausesValidation property set to true (as I want). The CausesValidation property of the form is false. When I click on the Control Box 'x' to close the form, the 'RowValidating' event of the DataGridView fires, and even if I execute a Cancel in that event, the FormClosing event still fires. Ideally I would like to either have the Control Box 'x' not cause the 'RowValidating' event of the DataGridView to fire, or have the Cancel in the 'RowValidating' event prevent 'FormClosing' from firing. Does anyone know if either of my preferred "solutions" is feasible when the DataGridView has its CausesValidation property set to true?
Thank you...
|
|
|
|
|
Hello
I want to know if is it possible to avoid the pop-up of a contextmenustrip (below mentionned as ctxs)
Explaination :
In a Picture Box I've defined a ctxs
Mousedown right doesn't display it
Mouseup right display it
I want to avoid the display if during the mouse down the user made a signifiant mouse move
Any idea ?
|
|
|
|
|
Hi baranils,
Here is my suggestion(please point out if i misunderstanding your question)..Get the mouse down location and compare the mouse up location, if there are different, don't display the contexmenustrip. Below is sample code:
private int x,y;
private void Form1_MouseDown(object sender, MouseEventArgs e)
{
x =e.X;
y =e.Y;
}
private void Form1_MouseUp(object sender, MouseEventArgs e)
{
if (x == e.X && y == e.Y)
{
contextMenuStrip1.Show(this, e.X, e.Y);
}
}
Hope this help
|
|
|
|
|
Thank you !
But this is not the solution
My problem is not in the logic to apply
My problem is HOW to control the AUTOMATIC popup of a contextmenustrip !
|
|
|
|
|
baranils wrote: HOW to control the AUTOMATIC popup of a contextmenustrip
I dun understand it?
|
|
|
|
|
Hello
If a define a contextmenu strip
I assign it to the control I need (a picture box in this case)
That's all !
After that I normaly have no control on the display
It shows up automaticaly on the MouseUp event
So my question is not how to manage the logic between event but how to avoid the automatic pop-up if needed !
|
|
|
|
|
hi baranils,
I am not sure that,normally i am using event handler to control pop up contexmenustrip. Or i will add the code like this.contexmenustrip = this.contexmenustrip1 in form.designer (this will automate the pop up of contexmenustrip),Or there have a properties call autoclosed to control pop up.
Sorry that if i cant help you
|
|
|
|
|
Hello
FYI
This is the solution
In my form, I declare a bool attribute : DisableCtx;
Set to true or false depending the context
And I use the opening event
ctxmnuPB.Opening += delegate(object sender, CancelEventArgs args)
{
args.Cancel = DisableCtx;
};
|
|
|
|