I think you need to know that no one is here being paid for answering questions. So while asking questions, always remember that you are asking for help and not assigning job to your employees. The biggest trick is that it takes just a bit of politeness to get help from others. Try this and you will never be disappointed. By the way I have given him the most useful link of his life (to learn how can we use Google) this will help him in finding answer of his most of ‘how to’ questions. Thanks for your nice words. -Dave.
Ajay k_Singh
Posts
-
About signing -
About signingthis will help - http://www.google.com/search?hl=en&rls=com.microsoft%3Aen-us&q=How+to+use+google[^] Please do not use lines like this - "I want detailed information(with small example)." -Dave.
-
MouseMove in a container [modified]I think you are still not getting the point. If this is the code which you have used – private void Form1_Load(object sender, EventArgs e) { this.MouseMove += new MouseEventHandler(this.panel1_MouseMove); } //--------------------- Mouse Move ------------------------------ private void panel1_MouseMove(object sender, MouseEventArgs e) { Point mousePoint = PointToClient(MousePosition); string msg = string.Format("X:{0}, Y:{1}", mousePoint.X, mousePoint.Y); lblMousePosition.Text = msg; } Notice that you are using line – this.MouseMove += new MouseEventHandler(this.panel1_MouseMove); In the above line ‘this’ represents form, and not a panel. So still you are not getting a handler for panel control. Replace the above mentioned line with – panel1.MouseMove += new MouseEventHandler(panel1_MouseMove); Notice that I am using ‘panel1.MouseMove’ and not ‘this.MouseMove’. Here panel1 is name of my panel control, if you have used a different name, you should replace it with the name of your panel control. -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
Round Corner Shaped Form?- Form1.FormBorderStyle = FormBorderStyle.None; 2) http://vckicks.110mb.com/custom\_shape\_form\_transperancy.html -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
MouseMove in a container [modified]You want to trap mouse move over a panel control, however the event which you have added is for mouse move event of Form and not of panel control. Therefore add event handler for panel control, such as – ----------------------------- private void Form1_Load(object sender, EventArgs e) { this.panel1.MouseMove += new MouseEventHandler(panel1_MouseMove); } void panel1_MouseMove(object sender, MouseEventArgs e) { //Mouse move event of panel } -------------------- -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
Pinvoke DLLLet me tell you this step by step. RDS_AlarmList is a structure, therefore RDS_AlarmList obj1 is one object of this structure. RDS_AlarmList *obj2 defines a pointer of this structure type. RDS_AlarmList **obj3 defines a pointer of pointer. A pointer of pointer is a pointer variable which can hold memory address of a pointer. If you want to know more about pointers of pointer, I would recommend you to search on Google, it will give you links of tutorials. -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
i want to make the fix sized text in text box(e.g 10 characters).Set MaxLength property of textbox. -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
windows forms in generalHello, I am not very sure about book for learning .Net programming with Visual C++… however using Google I found two links which should be useful for you. 1) Good tutorials on different topics – http://www.functionx.com/vcnet/index.htm 2) Msdn page (I have not checked any of the tutorials available here so don’t know how they are) – http://msdn.microsoft.com/hi-in/library/60k1461a(en-us).aspx I hope this helps. -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
Refresh font folder [modified]After copying fonts to Fonts folder, you will need to use AddFontResource Api function. You may also check following link to get more information about this method – http://www.pinvoke.net/default.aspx/gdi32/AddFontResource.html -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
windows forms in generalForm1.h represents your Form1 (which is a class Form1 derived from System::Windows::Forms::Form), and contains code related to it. We can declare out objects and controls here. Just to give you an idea, following is a small code snippet which takes number from two textboxes (which are already on form1) and after adding these numbers, shows sum in a message box. – ------------------------------------- private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { int i; i=System::Convert::ToInt32( this->textBox1->Text); i +=System::Convert::ToInt32( this->textBox1->Text) ; System::Windows::Forms::MessageBox::Show("Sum : "+i.ToString() ); } ----------------------------------------- As you want to get books on Visual C++, I would advice you to search on google. -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
How to implement Visual component realationsInteraction between controls in a WinForm Application is handled by using events of controls. Therefore lets say if we want to disable a button control on selection of a radio button, we can use code like this – private: System::Void radioButton1_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { this->button1->Enabled=false; } Don’t forget to add handler for Checked event of Radio button. -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
how to add new line to text boxUse – "\r\n" This should give you a new line. -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
Search Functionality in C# .net2.0.Every string has an IndexOf method to find index of a particular word or character. So you can search for index of a string in a text box like this – textBox1.Text.IndexOf("FindThisWord", 0); -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
.gif File in C#Use a picture box to show Gif image, it will show animation effect. -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
How can I include analog clock in GUI(vc)You should look for Gauge or chart control which could allow you to create Analog Clock on Form. This type of control is available from many software component developing companies. I hope this helps. -Dave
------------------------------------ http://www.componentone.com ------------------------------------
-
datagrid in C#.netThis should help you - http://www.codeproject.com/KB/books/PresentDataDataGridView.aspx[^] -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
Navigation between FormsIf you have two forms open and you simply want to move back and forth between them by showing one form at once and then other, you can simply use Show and Hide property of forms... -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
List Box / Combo BoxOn mouse up event of list box you can use IndexFromPoint method to get index of item which has been clicked. This index can be used to retrieve the actual listbox item, such as – ------------------------------------------ Private Sub ListBox1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseUp Dim ItemName As String If e.Button = Windows.Forms.MouseButtons.Right Then ItemName = Me.ListBox1.Items.Item(Me.ListBox1.IndexFromPoint(e.X, e.Y)).ToString() MessageBox.Show(ItemName) End If End Sub ------------------------------------------- I hope this helps :) . -Dave.
------------------------------------ http://www.componentone.com ------------------------------------
-
Hide My Window FormIf your only purpose is to execute a piece of code and not to show any window, you can simply delete the form and put your code in Main method. Open Program.cs file and under main function comment out line which shows the form, and put your code. Such as – --------------------------------- static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new Form1()); MessageBox.Show("Test"); } } --------------------- I hope this helps. -Dave. -------------------------------- www.componentone.com --------------------------------
------------------------------------ http://www.componentone.com ------------------------------------
-
Application CrackIf its your own application, modify its source code for the required purpose and then release it as an update or patch of your existing application. -Dave.
------------------------------------ http://www.componentone.com ------------------------------------