i am trying to create a custom Combobox from scratch.
this requires that i create the list that the combobox
opens. i've used the ListBox control to do this.
my problem is that i don't know how to "Pop" the list
without it being on a form, but a form can be accessed
through ALT-TAB and Task Manager. and it creates problems.
so can anybody tell me how i can create the list without
a form or maybe make the form act correctly (not showing
on ALT-TAB and not being a seperate proccess)
please help! 4 1134
On Sat, 18 Oct 2003 14:33:19 -0700, "guy" <gu****@msn.com > wrote: i am trying to create a custom Combobox from scratch. this requires that i create the list that the combobox opens. i've used the ListBox control to do this.
Why didn't you inherit a ComboBox? Anyway...
my problem is that i don't know how to "Pop" the list without it being on a form, but a form can be accessed through ALT-TAB and Task Manager. and it creates problems.
Controls need a parent (a Form in this case). How are you currently
showing it? Using a Form the same size as the control, or something?
so can anybody tell me how i can create the list without a form or maybe make the form act correctly (not showing on ALT-TAB and not being a seperate proccess)
Make sure the Form has ShownInTaskbar= False.
Rgds,
1. I am applying a new style and am adding another button (exept the
drop-down button) so i can't inherit the combobox class
2.yes, currently the list is on a form of the size
3.setting the ShowInTaskbar property to false doesn't prevent the form
from being a seperate process thus accesible from ALT-TAB and Task
Manager (This is what i am trying to prevent)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Hi Guy,
seperate process? what the hell are you talking about?
Do you mean you have two forms in your application? Two forms are not two
processes! Anyway...
You created a control... ok, your control inherits what?
Always must inherit something (at least Object)... Inherits UserControl?
Most custom controls inherit UserControl.
You can drag-and-drop built UserControls from the ToolBox into your form.
Yes, I antecipate your rumble about transparent controls. That is tabu.
Sometimes regions may do the trick, other times it's realy hardcore,
subclassing, etc... http://www.c-sharpcorner.com/Code/20...ntControls.asp http://www.elitevb.com/content/01,0071,01/
Regards,
Mario
"guy levitan" <gu****@msn.com > wrote in message
news:O9******** *****@TK2MSFTNG P10.phx.gbl... 1. I am applying a new style and am adding another button (exept the drop-down button) so i can't inherit the combobox class
2.yes, currently the list is on a form of the size
3.setting the ShowInTaskbar property to false doesn't prevent the form from being a seperate process thus accesible from ALT-TAB and Task Manager (This is what i am trying to prevent)
*** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
I seem to have not explained myself properly:
I am trying to build a custom ComboBox:
I need to do so without inheriting the ComboBox class
for the combobox object itself, i am using a UserControl with a text box
on it( the border and drop down button are painted via GDI+)
my problem is what to do when the user clicks the drop down button. i
need a list to open. so far i am using a form Containing a ListBox
Control.
My problem is that using the form causes some problems: the form can be
accessed through ALT-TAB and Windows Task Manager. this is something i
don't want happening.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: owen |
last post by:
Generally speaking, what does it mean when I see a "button" with red text
showing this message instead of the control I've dragged onto the web form
in Design View.? (But the page works fine at runtime). Does it indicate
a problem with References for example?
Thanks
Owen
PS. replies cc'd by email appreciated....
|
by: DraguVaso |
last post by:
Hi,
In my application, on some given actions while debugging in Visual Studio, I
suddenly get a "System.ComponentModel.Win32Exception was unhandled"
Message="Error creating window handle." exception.
The problem is that this exception isn't raised somewhere in a method, so it
just shows up, and it causes the application to shut down.
...
|
by: Roby Eisenbraun Martins |
last post by:
Hi,
My name is Roby Eisenbraun Martins, I am a C++, VB and NET developer.
I am working with a NET 2002 project right now and I am receiving this
uncommon "OutOfMemory" error message when I try to load a form object ( new
frmMain() ).
In debug mode, the "Load" form method is executed but it crashes when it
tries to set a DataTable from a...
|
by: Jonas L |
last post by:
Hi,
I need to create a textbox which acts as a normal textbox but with the
following extra requirements:
1) In-focus color, when the textbox gets focus the backcolor property
of the textbox should be set to a, selectable, in-focus color.
2) Out-of-focus color, when the textbox loses focus the backcolor
property of the textbox should be...
|
by: JavaConvert |
last post by:
I would like to create form that simply hold textboxes that I log info to during the execution of a single-thread application. In Java, I found JFrame ideal for the task, but I can't recreate the same design with Forms. I can create the Form without Application.Run( ), but when debugging, I can't seem to see any text that gets AppendText'ed to...
| |
by: redeagle |
last post by:
I'm wondering what the best practice is for creating a WinApp "wizard" that
contains 4 or 5 "steps". Options so far are
1) Single WinForm making various controls visible/non visible at the
different steps(although that may get cluttered in the design environment)
2) Create multiple WinForms (don't really know any pros or cons of this...
|
by: Tarscher |
last post by:
hi all,
I have this seemingly simple problem. I have lost a lot of time on it
though.
When a user selects a value from a dropdownlist (static control) a
dynamic control is generated. I have to create the dynamic controls
in the OnInit stage of the lifecycle. Since data from static controls
is not yet available in the OnInit stage I...
|
by: dk60 |
last post by:
Here is a problem I encountered concerning threads:
Here is the code in Form1 button click handler:
AddForm addForm = new AddForm(booksDataSet.Titles);
Thread addTitleThread=new Thread(new
ThreadStart(addForm.GetNewTitle));
addTitleThread.Start();
Here is the code in AddForm:
|
by: deepapanch |
last post by:
Hi All:
I am new to C#. Have created a simple outlook add-in, which adds a
command bar in Outlook. On click of the button, I would like to load
the a simple dialog with a Text Box and a Button. I would like to
populate the textbox with a value, before displaying it.
To accomplish this, I tried creating a custom control (Test Control)
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |