In VS.NET, how can I change the build order of projects in my solution?
You can set the build order of the projects by right clicking on the Solution and choosing Project Build Order and adjusting the dependencies on the Dependencies tab in the Project Dependencies window that pops up.
I have an MDI application with several child forms. The child form’s Activated event is not being fired consistently as different child forms are activated. What’s wrong?
In .Net 1.0, the child forms do not get the Form.Activated event (only the parent MDI). To catch MDI children being activated, listen to the Enter/Leave events of that child Form or listen to the Form.MdiChildActivate event in the parent Form. In 1.1 the child Forms do get the Activated event.
How can I generate PDF files from my .NET application?
Take a look at the Syncfusion PDF library which can be used to generate PDF files. This library also offers the following key features. Create, Edit, Fill and Flatten AcroForm or XFA forms. Merge or Append PDF files Split PDF files Extract Images and Text from PDF files Watermark existing PDF. Encrypt and Decrypt PDF documents Digitally sign PDF documents Redact PDF. Annotations, Actions, Bookmarks and Attachments. PDF Conformance. (PDF/A-1b, PDF/A-2b, PDF/A-3b, PDF/X-1a) Accessibility (PDF/UA) Compress Existing PDF document. Portfolio
How can I make the context menu to close after a set time interval?
To automatically close the context menu after a set time interval, you can use a Timer and send a ESC key stroke after the desired time interval as shown: [C#] private void timer1_Tick(object sender, System.EventArgs e) { SendKeys.Send(‘{ESC}’); timer1.Stop(); } private void contextMenu1_Popup(object sender, System.EventArgs e) { //set interval to 5 seconds timer1.Interval = 5000; timer1.Start(); } [VB.Net] Private Sub timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) SendKeys.Send(‘{ESC}’) timer1.Stop() End Sub Private Sub contextMenu1_Popup(ByVal sender As Object, ByVal e As System.EventArgs) ’set interval to 5 seconds timer1.Interval = 5000 timer1.Start() End Sub
How do I disable the default context menu of a textbox?
To prevent the default context menu of a TextBox from showing up, assign a empty context menu as shown below: [C#] textBox1.ContextMenu = new ContextMenu(); [VB.Net] textBox1.ContextMenu = New ContextMenu()