Answer Questions
dkocur2 Programmatic label edit in C# ListView
Anyone know how to programmatically start a label edit in a ListView I want to enable users to start a rename by pressing F2 or choosing rename from a menu. Say you want to start a label edit when you click a but ...Show All
scott71 How to capture and save resources generated by CodeDomDesignerLoader in Custom Designer
Finally got the custom designer working after reading this March's MSDN magazine article. now I can host the desinger surface, have the CodeCompileUnit generated from the CodeDomDesignerLoader and DesignSurface, and load the generated assembly correctly, but ONLY when there is no resource (like a background image) assigned for any of the controls on the DesignSurface. I can not figure out how to capture the serialized resource from the CodeDomD ...Show All
fan2005 ContextMenu problem...
How can I obtain the Parent of a ContextMenu I succesfully patched the problem in an "unelegant" manner (Added a Parent Property to my class and I've assigned it after the InitializeComponent...) that works... but sucks!!! Thank you! ...Show All
Technoriver Icon don't visible in Listview
Hello, i have problem In my programm i fill a listview with items and assign a icon from a imagelist. It works fine but: If i enable VisualStyles with Application.EnableVisualStyles(); then no icon is displayed. But if add items at design time than it wo ...Show All
tmg2006 128 Bar Code Printing
I'm trying to print a 128 bar code but can't find anything in the documentation. It's the first time I'm trying printing in .net and so far I can print text fine with the PrintDocument class. Can anyone help I'm using a Zebra TLP 2844 printer (if that makes any difference) Well you dont have to do anything special for the Zebra printers its the same print document class you can use it for priniting. I use pri ...Show All
WeBe Making a form fade in
Hi, Can I use the opacity property to make a form fade in (Make it smooth though) Thnx. I use this approach in the OnLoad override of my form: Dim i As Single For i = 0 To 1.2 Step 0.1 Me.Opacity = i &n ...Show All
Lonko Snappable grid
Hi, Im new to VB .net and I have two questions: Is it possible to create shapes on the form in design mode There doesn't seem to be a way to do this except in code. How can I create a grid that I can then snap objects too If any can help me get started with these two questions, I would be most gratefull. Can anybody help me ...Show All
Dave Bakin Prevent TextBox From Changing SelectionStart (Caret) With Mouse
I need to have a textbox where the user is prevented from changing the caret position with the mouse. The user shouldn't be allowed to drag the mouse to highlight an area of the textbox OR use the mouse to place the caret in ...Show All
allenbc form close reason
Hi! I would like my form to be hidden when the use clicks on the window close button (the X button on the top-right corner). The e.CloseReason does not provide a value to determine that this particular button is the reason that is closing the form. This was very simple in VB6: Private Sub Form_QueryUnload(Cancel As Integer , UnloadMode As Integer ) If UnloadMode = vbFormControlMenu Then   ...Show All
AU.T small, simple typeconverter not working...
Hello, I have a class (called Location) that has three properties and I want to be able to use it as a regular type elsewhere in my code, such as assigning a string to it and getting a string from it. Similar to the following: <b> Dim a&n ...Show All
mullykid Deployment of Windows Services
Hi, 1. Is it possible to set the default values of the custom Textboxes in the Setup project through the installer class For ex. I want all the configuration settings from the config file to be shown as default values in the TextBoxes of the Setup project. For getting the values from the textboxes I use this in the Installer class: string myInput = this .Context.Parameters[ "e1" ]; But is there any way I can set the same ...Show All
Wadim ArgumentException in DrawString
I have some code which worked fine in framework 1.1 but is giving me an ArgumentException in 2.0. The code follows: using ( Font fntDraw = new Font ( "Arial" , 16, FontStyle .Regular)) { Rectangle rcLayout = new Rectangle (0, 0, _cpixCell, _cpixCell); StringFormat sfmt = new StringFormat (); sfmt.Alignment = StringAlignment .Center; sfmt.LineAlignment ...Show All
Nigel Watling Control TextChanged Event Question
My group is in the process of creating a few common forms that we will use as templates for all the applications we create. Basically, instead of inheriting from System.Windows.Forms.Forms we will inherit from these subclasses. One of the common features we would like available in the form is when the TextChanged event fires on any TextBox or Combobox on the form, we would like to mark the form as IsDirty and enable a Save button. Because these ...Show All
Mathai ClickOnce - Update from a Mapped Drive
Hello, Is it possible to have ClickOnce look at a mapped drive for updates instead of a complete UNC path Thanks, Hei For question #2, how do you resign the deployment manifest after ClickOnce has been deployed Here's the error message I'll get if I try to run the setup after modifying the foo.application's deploymentProvider to something like C:\Temp ERROR SUMMARY Below is a summary of the errors, detai ...Show All
Reed Robison Customize Listbox Items
Hi everybody, I have listbox object in my form. Now I want the first item I add to to be bold and the font color should be red. Then all the other items I add should be default. Is that possible If yes how If no, why not Thanks for your help !!! You are right in general, best practive indeed, but when writing: new Object() inside a method declartion, it is disposed right away, or, maybe I got ...Show All
