|
In that case, you wouldn't want to use a GraphicsPath to do the drawing, instead just draw on your canvas and implement the erasing code by drawing over existing objects with the background color, which is what MSPaint does.
Sincerely,
-Mark
mark@msdcweb.com
http://www.msdcweb.com
|
|
|
|
|
i would do so if not i didnt draw on %50 opac canvas :S
|
|
|
|
|
How do i sort a listviews items for what i whrite in a textbox that it only will show thoose items??
Love take care!!
|
|
|
|
|
andredani wrote: How do i sort a listviews items
Do you know how to sort a listview? If not do some searching there must be a million sources that show how to do it.
However if this is your problem:
andredani wrote: for what i whrite in a textbox that it only will show thoose items??
I have no idea what that means
|
|
|
|
|
hi all,
I am using a datagridview to display data.i am creating a datatable dynamically and set it as a datasource. i am contatenating values of two columns and displaying in a single column. i need to highlight one of the values as a bold text.
i am using VS 2005 with C#.net in windows application.
How can i implement the same?
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Handle the DataGridView's CellFormatting Event and write code to change BackColor of the value of want to Highlight.
|
|
|
|
|
This is my code to save something from a textbox:
StreamWriter msgStreamWriter = new StreamWriter("message.txt");
msgStreamWriter.WriteLine(textBox1.Text);
msgStreamWriter.Close();
is it possible to save different messages and also in different files?
for example,
message1 into notepad1
message2 into notepad2
message3 into notepad3
help please!
Thanks.
|
|
|
|
|
What are message1, message2, message3?
|
|
|
|
|
For example, if a user decides to save the first message "hello" as message1.txt
Second message "how are you" as message2.txt
Third message "Goodbye" as message3.txt
What would the code be?
Because for now all i can do is to save the first message message1.txt. But saving the rest would be overwritting the contents of message1.txt.
|
|
|
|
|
I want to subtract the time. For example I have two timing; one is FROM TIME and the other is TO TIME. I want to get the difference of the timing. Is there any option thro' TimeSpan or DateTime
Regards,
LEE
|
|
|
|
|
The DateTime structure has a Subtract[^] method.
Paul
|
|
|
|
|
TimeSpan timeSpan = [firstDate].Subtract(secondDate);
then you can get the diff like
timeSpan.Minutes;
timeSpan.Hour etc.....
Hope that is what you are looking for
laddie
|
|
|
|
|
Dear All:
I Work With oce 3165 Printer this printer has 4 trays .
i want to work with trays but it is not regular.
(ex:for one print 1,3,2 & another print 1,2,4 used trays)
i work with PrintDocument.printerquerysetting()
but it does not work?
can any one help to me that control on this?
thx
msereshki
-- modified at 1:21 Wednesday 12th September, 2007
|
|
|
|
|
I don't know how to do this via code exactly, but what you can do is install the same printer into Windows 4 times and give them each a different name, although each will point to the same physical printer. For each printer set it to use one of the trays. You could then code against each of these printers - so if you require to use trays 1,3,2 print to Printer 1, Printer 3, Printer 2.
Me: Can you see the "up" arrow?
User:Errr...ummm....no.
Me: Can you see an arrow that points upwards?
User: Oh yes, I see it now!
-Excerpt from a support call taken by me, 08/31/2007
|
|
|
|
|
in a textbox i want to get only chracters as input, prevent symbols , to do this i tried a fuction which takes the string in the textbox and check it using Char.isletter() and returns true or false.
But i want to know whether there is any other method with String to do this.
|
|
|
|
|
What you're doing is correct. No, there is no method that does the same on an entire string, nor would you want that. By handling the keychanged event and checking char.IsLetter and char.IsControl to set the handled property, you can stop users entering invalid characters in the first place.
Christian Graus - Microsoft MVP - C++
"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 trying to compile a workspace using Msdev.exe (Visual Studio 6) .
I am using the command line and want to redirect the output into a rich textbox on my form.
When an error in compilation occur the process is hanged until i stop my application and only then the Msdev is showing the error.
System.IntPtr PrHndle;<br />
Process Prc = new Process();<br />
<br />
Prc.StartInfo.FileName = VS6EXEPath;<br />
Prc.StartInfo.Arguments = WorkSpace + CompileCommandString;<br />
Prc.StartInfo.UseShellExecute = false;<br />
Prc.StartInfo.RedirectStandardOutput=true;<br />
<br />
Prc.Start();<br />
PrHndle = Prc.Handle;<br />
<br />
StreamReader SR = Prc.StandardOutput;<br />
<br />
while (SR.EndOfStream != true)<br />
{<br />
rtbCmdOutput.Text = rtbCmdOutput.Text + "\r\n" + SR.ReadLine();<br />
}<br />
Prc.WaitForExit();
Same code works good with appliaction.
Please help
Have a nice Day
|
|
|
|
|
Instead of blocking the thread waiting for output, use an event to listen for output:
Process proc = ...;
proc.OutputDataReceived += OutputDataReceivedHandler;
...
void OutputDataReceivedHandler(object sender, System.Diagnostics.DataReceivedEventArgs e)
{
rtbCmdOutput.AppendText(e.Data);
}
|
|
|
|
|
Thanks for the quick answer i will try it and post feedback
Have a nice Day
|
|
|
|
|
Hai everybody,
I am having two radio options in my application.
When i am changing the options a message has to be prompted tot he user and then if the user clicks no then i should not check the next option instead i have to have the first option as selected.
For this i tried the code in the checked change event, but it is not checking the two options
Can any one tell me your suggestions.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
What do you want ? For both radio buttons to be checked ? If you added them together, I'd expect them to form a group, this definately happens if they are on a panel. Then, when one is checked, the other will uncheck. If you want both options to be able to be selected, you should use checkboxes.
If that doesn't help, try posting some code and further explaining what is going wrong.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
The options are in the panel.
If one is selected and when the option is changed to false i want to prompt the user and if the user confirms then the option has to be changed or else it should not change to false it has to be true only.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
I think that you will not get any answer because your questions are not clear.
Pawel
|
|
|
|
|
M. J. Jaya Chitra wrote: If one is selected and when the option is changed to false i want to prompt the user and if the user confirms then the option has to be changed or else it should not change to false it has to be true only.
Perhaps you need a DialogResult from your MessageBox something like this:
if (MessageBox.Show("Do You Like Orange", "Choice!", MessageBoxButtons.YesNo) == DialogResult.No)
rdbApple.Checked = true;
________________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
Hi all,
Iam using regular expression to highlight a text. which is even highligting the text if the text is inside any textbox or text areas.
So here is my code pls help me how to get rid of the problem.
Regex re = new Regex("(<[^>]*?.*)("+keywords+"<\\/span>)(.*?>)", RegexOptions.IgnoreCase | RegexOptions.Singleline);
text = re.Replace(text, "$1$2$3") ;
-- key words have one word which has to be highlited --
so now iam trying to remove that span which has already put to those text inside a textbox. this is working fine only when there is only one occurance and not for multiple occurance of the same text.
Smitha
|
|
|
|