Hi Sudhir, May be below link can help you. TAPI 3.0 Application development using C#.NET[^] Regards, Jay
Jay Shankar
Posts
-
how to make call from software using c# -
Detecting Ctrl + arrow keysYou can please try the below:
private void Form1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
{
if ( e.Control && e.KeyCode == Keys.Up )
{
this.Text = "Control key + Up Key pressed";
}
else
{
this.Text = "Other Key pressed";
}
} -
Beginner Questions -
custom controls and design timeI am sorry, I was aware of this only.
-
custom controls and design time.Net Designer does not support the overloaded constructors of the controls in it, If your user control has some controls which have overloaded constructors, there is probability that your contituent controls get disappered when you drop it on the form.
-
Is it possible to Insert Table in RTF Control????RTF Control, what is the namespace of this class? By the way, RTF Specification does not say anything regarding Tables. Please note that the rtf document should ideally be opened in WordPad, in which table is not supported.
-
creating rich text format file in vb6.0The easiest way is to assign the formatted text and image in a
RichTextBox
and get theRichTextFormat
string usingRtf
property. Other way is to prepare rtf string as par RTF specification, the specification is available on msdn. -
how to make a Modal Dialog in VB.netYour reply has come to me by mistake, Please reply to BSRK.
-
how to make a Modal Dialog in VB.netRefer
System.Windows.Forms.Form
ClassShowDialog
Method -
User ControlsFor the control's painting have you used
Graphics
fromPaintEventArgs
?. like for form Paining.....same as below code.private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
Graphics g = e.Graphics;g.DrawString("Happy X-Mas", this.Font, Brushes.Blue, 0,0);
}
Note: If you DONOT use
Graphics
fromPaintEventArgs
, there will always reamin flickering, I had the similar problem once, I solved it using the above approach. -
forech and stringsPlease refer to the code...hope u get some clue:
string temp = "ABCDEFGHIJ";
System.Diagnostics.Debug.WriteLine("for loop output");
for(int i = 0; i < temp.Length; i++)
{
char c = temp[i];System.Diagnostics.Debug.WriteLine(i + " place char = "+ c);
}
System.Diagnostics.Debug.WriteLine("foreach loop output");
int j = 0;
foreach(char c in temp)
{
System.Diagnostics.Debug.WriteLine(j + " place char = "+ c);
j++;
} -
Local IP number?u r welcome.
-
Local IP number?Please refer the following article on CP: How To Get IP Address Of A Machine[^] Hope this helps.
-
Printing RichText text and imageBelow link has the details: How To Print the Content of a RichTextBox Control By Using Visual C# .NET[^]
-
DataGrid DoublClick dos'nt Response1.Firstly,
DoubleClick
event should fire, without any doubt. I do not find any problem in it. 2.Click
orDoubleClick
Event Handler of theDataGrid
or otherControls
hasEventArg
argument, you would not be getting the colum number / row number information from theEventArg
. You should use eitherMouseDown
orMouseUp
event Handler which hasMouseEventArgs
in the arguments.MouseDown
Event andHitTest
method will get you the desired. Refer the below link for details. DataGrid HitTest Method[^] -
DatagridUse
DataGrid
HitTest
Method: DataGrid.HitTest method[^] -
triggering events by codeHi Mridang, First of all, please go through the msdn documents CheckBox.CheckedChanged[^] It should fire. There is no bug in the .net, concerning this. As I said in my previous post, check using again.
this.checkbox.Checked = !this.checkbox.Checked;
or
private void ChangeCheckBoxState(CheckBox cbx)
{
cbx.Checked = !cbx.Checked;System.Diagnostics.Debug.WriteLine("checked state transformed to " + this.checkBox1.Checked);
}
//
private void checkBox1_CheckedChanged(object sender, System.EventArgs e)
{
MessageBox.Show("Check Changed");}
You can explicitly also call the event handler, just to reconfirm as
this.checkBox1_CheckedChanged(this, new System.EventArgs());
I would also advice you to prepare a simple demo project to check the above phenomenon. Regards, Jay.
-
SQL?Please reply to Mr. beginner1 , By mistake your reply has come to me. BTW, Thanks for added attension. Regards, Jay
-
SQL?There should some common columns in both the tables to join, If you wish to join the tables. Table1 should have some primary key like itemId, and should become the Master Table. I would advice u to add the column in Table1. Finally, It should be like Table0 ----- ItemId CheckNum Payee Amount PaymentDate Table1 ----- ItemId Balance Finally the query will be Select A.ItemId, A.CheckNum, A.Payee, A.Amount, A.PaymentDate, B.Balance From Table0 A, Table1 B Where A.ItemId = B.ItemId
-
moving a buttonI do not syntax of VB.Net, but in C# the above can be done as below
this.button2.Location = new Point(this.button2.Location.X, this.button2.Location.Y + 10);
Read about the
Location
Property of the classSystem.Windows.Forms.Button
on msdn, This property is being inherited fromControl
. You get all relevent details. Best of luck. Regards, Jay