473,789 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.net - custom combobox(cancel mouse click,after value changes event)

2 New Member
Hello

lately i have been trying to make a custom combobox with a few targets.
1. to create a disabled items
2. to create a seperator item
I already managed both properties items. i also managed to draw both items as i want(disabled in gray, seperator as a line).
the problem is the user can click on the items, both the line(since it's actually a '-' item) of the seperator item, and the disabled item.
i know i should overrides the WndProc sub, but i just can't find any documentation about m.msg value. i tried 'playing' with it to find uot the right vaule, but i can't find it. i also looked in WM_ const and CB_ Const, couldn't find anything usefull(i did try some of them).

3. to create a custom event 'AfterValueChan ged', so when someone pressed on a specific item in a list, the text property won't HAVE to be that item. any other events combobox has set the text property back to the item at the end of the event, so it doesn't work well.
As well as the first 2 targets, i should probably overrides the WndProc sub again. and again, no idea which value to overrides.

Your, Matan.
May 19 '07 #1
1 3681
Saww
2 New Member
Really no one knows the answer?
i saw some smart peoples in here...
please help :\
May 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
4622
by: Tom Alcendor | last post by:
I am building a chess game application that allows a user to click on a piece and move it to a new square. When the user clicks on a piece the mouse pointer must change to the image associated with that square. The squares are PictureBoxes with images of the pieces set to the pBox's image property. I am having trouble with changing the mouse pointer to a custom mouse pointer during drag and drop operations. I have checked several...
1
4093
by: T | last post by:
I have a web site i want to deploy using a VS.NEt set up project. I have no problems with that, that is fine and works no problem. But the web application uses a custom event log to log application messages. The asp.net application will not be running under an account with administrative permissions and so this will not be able to create the custom event log.
1
1388
by: Victor | last post by:
I am developing a windows service application that uses a custom event. the problem is that the service installer associates the service with application log during the installation process. Therefore, the custom log does not recieve messages from the event source. Below is code snipet ' check if log exists on this machine If Not EventLog.SourceExists("trkProcessMin") Then
4
6595
by: NutJob | last post by:
Hello, I'm faced with the following problem: I have a (secondary) thread that monitors a socket for incoming message traffic using the select.select() function. Besides that I also have the main thread of my WxPython application. So far so good. Now when my socket thread detects an incoming message, I need my main
3
4694
by: bruce | last post by:
Hello, I am trying to figure out how to use a class with a custom event as a wrapper for a subform so that I can automatically trigger things to happen on the parent form when the custom event is raised. I am new to custom events, so please bear with me... I have created a class module (clsMyEvent) as follows: Option Compare Database
1
3934
by: Tim | last post by:
Hi, I would like to create a custom mouse cursor for my print preview page. I want to use a bitmap of a magnifiying glass with a plus in it. Pretty standard stuff. How do I change the cursor? I found the code below but I just get the default mouse cursor dragging around the bitmap which is actually a little behind. I want to replace the
3
1837
by: bill | last post by:
I am using VS2005 to build a web form dynamically. I'm using AddHandler to connect a custom event handler to the TextChanged event of dynamically added textbox controls. Data entered in the dynamically added textbox controls is saved to a database in the custom event handler. The custom event handler fires when the page posts back. I have a menu control which causes a postback, and the custom event handler then fires if a textbox...
2
3743
by: T McDonald | last post by:
I've been having a problem writing to an event to the Application log. I believe the issue is caused by the fact that the source was previously both a custom log and the source. I deleted the log using EventLog.Delete(logname); I couldn't delete the source as it there was an error reporting that I couldn't delete the event source as it had the same name as the log. Once I deleted the log, the source appeared to not have any reference to...
2
2162
by: Ale | last post by:
how to disable a value or an option in the combobox after selecting it once.....say for ex....in students marks list...i want to enter marks of 5 subjects...whr i'll select the subject from a combobox...and the subject that is selected once for a particular student shud not appear the nxt time....i hope my question is clear...plzzz help me out. thanks
0
9663
marktang
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10404
Oralloy
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10136
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9016
agi2029
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7525
isladogs
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5415
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.