Search Results

Showing results 1 to 20 of 20
Search took 0.01 seconds.
Search: Posts Made By: selvaganapathy ; Forum: C# and child forums
Forum: C# Oct 1st, 2008
Replies: 15
Views: 5,600
Posted By selvaganapathy
Hi,
Which version of .NET Framework you are using? FormClosing is new to .NET Framework 2.0. Or Specify what difficulty you are facing while implementing the above code.
Forum: C# Sep 18th, 2008
Replies: 8
Views: 1,598
Posted By selvaganapathy
Hi,
Array size can be specified dynamically like

int[] AnArray;
int iSize = 10;

AnArray = new int [iSize];

So user can control the length
Forum: C# Aug 26th, 2008
Replies: 4
Solved: Key Press Event
Views: 5,544
Posted By selvaganapathy
Use MaxLength of TextBox to restrict your input only 4 character. or use MaskedTextBox for input only digits.
Forum: C# Aug 25th, 2008
Replies: 4
Solved: Key Press Event
Views: 5,544
Posted By selvaganapathy
Hi,

means you have to allow only 4 digits?

or

you mean, when you press '4'
If so, put quote before 4 in

if(e.KeyChar == 4)
Forum: C# Aug 24th, 2008
Replies: 15
Solved: MouseMove
Views: 3,654
Posted By selvaganapathy
Ya Nice,

>>To Clip the Cursor, you have to Capture it First. To do use Cursor.Capture = true in button1_Click.

>>Another thing is to set the Bounding Rectangle of the Clipping area.

...
Forum: C# Aug 24th, 2008
Replies: 15
Solved: MouseMove
Views: 3,654
Posted By selvaganapathy
Hi, your above code will work when you move the mouse over groupBox1, it will show the X and y position of the Mouse



From your question, I think you want to restrict the Mouse Cursor only...
Forum: C# Jul 23rd, 2008
Replies: 2
Views: 671
Posted By selvaganapathy
Hi, You made a small mistake

Change

for (Match match2 = new Regex("123").Match(richTextBox1.Text); match2.Success; match2.NextMatch())


as
Forum: C# Jul 20th, 2008
Replies: 12
Views: 4,432
Posted By selvaganapathy
The above code that i posted only works when type the tags

When you want change the color by pressing button. I am not familiar with Regular Expression, still a try.
Try this

private void...
Forum: C# Jul 20th, 2008
Replies: 3
Views: 1,645
Posted By selvaganapathy
First Dont make the Login form as MDI Child.

When Showing Login Form Use ShowDialog () Instead of Show() to Show the Form Modally and Set Owner is MDI

Ex
LoginForm.ShowDialog(MDIMainForm);
Forum: C# Jul 20th, 2008
Replies: 12
Views: 4,432
Posted By selvaganapathy
Yes, I give simple example


private char LastChar = ' ';
private void richTextBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (LastChar == '<')
{
...
Forum: C# Jul 19th, 2008
Replies: 12
Views: 4,432
Posted By selvaganapathy
Rich Text Box has KeyDown Event where you have to change the color by ur code when receiving '<' and '>' characters. This change the color when typing

If you want to set the color when press a...
Forum: C# Jul 19th, 2008
Replies: 12
Views: 4,432
Posted By selvaganapathy
Hi, Use RichTextBox for editor. This control has SelectionColor property to change the color of the Selected Text.

But selecting should be done by you
Forum: C# Jul 14th, 2008
Replies: 4
Views: 624
Posted By selvaganapathy
Forum: C# Jul 10th, 2008
Replies: 8
Views: 4,516
Posted By selvaganapathy
You can access the button thru form2 object instance after changing the modifier as public
like

private void button1_Click(object sender, EventArgs e)
{
FrmAdvocaat...
Forum: C# Jul 9th, 2008
Replies: 4
Views: 6,071
Posted By selvaganapathy
Hi,
To get the Current Time u can use DateTime.Now property. It returns CurrentTime. So in btnStart u can use like this


private void btnStart_Click(object sender, EventArgs e)
{
...
Forum: C# Jun 25th, 2008
Replies: 2
Solved: append 2 file
Views: 4,209
Posted By selvaganapathy
Hi,

I think There is no method of StreamWriter.WriteLine ( string, FileMode, FileAccess);

But you can open File in Append Mode in Constructor
StreamWriter ( string file, bool Append) ;

You...
Forum: C# Jun 22nd, 2008
Replies: 2
Views: 1,235
Posted By selvaganapathy
Hi, When create the textbox give unique name. And in Click event you receive the sender object, Typecast it to textbox and check the name you want.

Ex

TextBox[] textArray;
public...
Forum: C# Jun 7th, 2008
Replies: 3
Solved: draw line
Views: 5,023
Posted By selvaganapathy
What about StartDraw and EndDraw? Is they initialized properly?
Forum: C# Jun 6th, 2008
Replies: 5
Views: 9,501
Posted By selvaganapathy
Hi,
dateTimePicker1 is a Control which displays the date and Time visually. This control help to select the date and time visually.
U can get currently selected date or Time using
...
Forum: C# Jun 4th, 2008
Replies: 2
Views: 1,515
Posted By selvaganapathy
Hi,
I think u not appending the text in Richtextbox rather u are assign a text
For Ex

richText1.Text = someString;


U can try
Showing results 1 to 20 of 20

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC