I want to know how to handle the task of adding and removing a Control from a user control
when the developper changes the number of controls to display.
in design mode the user control should reflect the correct number of checkboxes when the developper changes the property
"number of checkboxes". The descriptions of the checkboxes come from another property "Description Text".
the property editor correctly changes the number of strings in property "Description Text", but
i need to know where in my code of my usercontrol i add the code to add / remove these checkboxes.
I have been developing mdi-applications during a long period. And during this period I have a little unpleasant thing. The thing is in following : for instance we have MDI Parent and Child form and both of them have Context Menu. When we call child form, its Context Menu moves to Context Menu of the Parent Form.
My question is : is it possible to divide Child's Menu from the Parent's Menu?
I've got a usercontrol that uses quite a few other usercontrols putting it together. I only want the "complete" usercontrol to be visible in the toolbar and not the pieces that make it up. How do I hide the parts I want to hide and still be able to use them to build my control? I make the final control by dragging the other items from the toolbar. After I am finished all of my controls are visible in the toolbar and I don't want that. Help?!
I designed a user control to be a container for a layout. The control itself uses three other usercontrols for tabs and title and such. My control shows up in the toolbar and I can drag it to the form in the designer and set all of it's options but this usercontrol was designed to hold one or more usercontrols of any kind. I can add any item programmatically but if I drag a control over it in the designer it will not add the control I'm dragging to my usercontrol after I drop it on it. Any ideas how this functionality can be added for the designer?
I had that problem myself and I'm not sure what best to do. Maybe there is a trick we both don't know.
If you don't have a user control, but a control derived from Panel, you can drop controls onto it at design time and they will be added. Also I think if you have a Panel on your user control, you can drop controls onto the Panel. So maybe you can just fill your user control with a Panel and go from there.
I'm currently involved in developping a WinForm application. I use VB.NET as a language and use the 2.0 .NET framework
One of my forms only contains a WebBrowser component. That form is launched by another form which passes him an URL for the WebBrowser to naviguate towards.
The webpage aimed by the URL has an applet (or so I think it is) allowing to see a digitalised document (such as a hand written letter or a printed form).
When the form is closed, the exectution of the instruction line :
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
lasts for several minutes. Within that period of time, the entire software is frozen and will only be available to the user when the instruction is passed.
I asked to my peers how to hanlde that behavior and they adviced me to come up with a solution based on asynchronous execution (I am no expert in that domain of IT programming).
So my question is: assuming that it is the correct way, which part of my code am I supposed to wrap with a thread ? Is it the form containing the WebBrowser with the heavy finalysing ? Or maybe just the finalisation itself (I must say that I already tried that and it changed nothing)
Thanks in advance for you help and accept my apologizes for my writting but english isn't my native language.
I was wondering if its possible to make a File Dialog (Open/Save as) become the child window of a parent form and be fully "contained and bounded" in it. I can`t find any straight-forward way to do this, like Controls.Add or anything since they inherit from Component class.
I also tried calling the Win32 SetParent function but it has no effect.
I am developping one windows Application, In that i am working on Adio Mute & TrackBar Controls
I am using Check bOx for MUte functionality, TrackBar for Increase or Decrease the volume. For this Iam using Mixer Object. I Added the WaveLib.AudioMixer; Library to my project.
1. when i Check the Mute Checck Box then Audio should not be recorded while recording,
2. when i Uncheck the check box then Default volume will set. ( tracker bar volume).
right now i am using this Code but it is not working.
Mixers mix = new Mixers();
if (Settings.Default.Mute == true)// here i have setting page by default the mute is set to False.
Is there a progress bar for .NET that has an unsigned 64-bit maximum value? The number of items I'm processing can easily exceed 32-bits, but the Windows Forms progress bar only accepts a standard int.
Why don't you set the maximum to 100 and set the integer percentage value when it has changed? Setting the value a billion times will slow down your application anyway, and users won't see a difference.
Good point. We had created a form that has a progress window and a display of the number of items being processed, and we had just been using the ProgressBar.Maximum property for that value. But yes, your suggestion would be a better design choice.
Does anyone know a good way to make a control draw and work outside the bounds of a form in vb.net? I am trying to make a control that works like a combobox in that it drops down, but I need the part that drops down to be a datagridview. If the datagridview dropdown is taller than the form has room for, I need it to go past the edge of the form, just like a combobox dropdown.
Last Visit: 31-Dec-99 19:00 Last Update: 31-Jan-23 4:31