473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Change the listindex of a combobox

How can I change the listIndex of a combobox while cursor is placed on text of different font sizes like in microsoft word?
Nov 19 '08 #1
6 4299
debasisdas
8,127 Expert 4TB
you can use the text property for that .
Nov 19 '08 #2
Hi could you please reformulate your question. I don't understand.

Excuse me by that.

Rpicilli
Nov 20 '08 #3
its ok. i have found the solution
Nov 28 '08 #4
smartchap
236 100+
Dear
Actually ur question was not clear. However when u have found the solution please post exact question with solution so that others also understand it.
Nov 28 '08 #5
Well I'm using a combobox for changing font size. When i run my program the value shown in combobox is 10(because i have set the listindex as equal to that value. When i change the font size to e-g 48 the value shown in combobox is 48. I want that when i place cursor on text of different font sizes, the value of combo box also change accordingly. I have done this by adding following code to SelChange event of rtb

Private Sub rtfText_SelChange()
If Not IsNull (rtfText.SelFontSize) Then
frmMain.cmbFontSize.Text = rtfText.SelFontSize
End If
End Sub
.
Dec 3 '08 #6
smartchap
236 100+
Thanks Yuleball for the code. You can do one more thing vice versa. Suppose textbox is empty and combo has some font sizes. When u select a font size in combo it can be filled in textbox. In Click event of combo place code something like this

Text1.Text=Text1.Text+vbKeyReturn+combo1.Text

May be it will u further.
Dec 18 '08 #7

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

Similar topics

3
by: Jeff | last post by:
for your info - I'm a newbe. Code is at the bottom. Access dbase (each form ca. 10 KB) if my explanations are not enough (probably they aren't). -- access 97 -...
1
by: WEM | last post by:
I filling a combo box with all 50 states and when I select a customer from a list box I want to find the identity(listindex) in the combo box which is the identity stored in the customer record. If...
1
by: andrew.panin | last post by:
Hi there! I've got a trouble with these things. What's going on? 1ST STEP: we have ListBox item. Let's call it ListBox1. We're adding four values to it using AddItem method:...
2
by: dexz | last post by:
Hi Using the following code I defined that when Im loading the Announcements into the program it marks the some of them with various icons in the TreeView. This was fairly easy, because when I...
8
by: shruthiKKKK | last post by:
change appearence for textbox by using combolist
1
by: maharajakecil | last post by:
hello VB expertise. how should i modify my source code if i want change my X and Y value into one decimal place like 1.2,1.3,1.4 and so on. thank for the help. i really appreciate it! Private...
3
lotus18
by: lotus18 | last post by:
Hello World What is the equivalent of ListIndex property in vb .net? I just want to set the focus on the first items on the list. Rey Sean
2
lee123
by: lee123 | last post by:
can someone help me figure out how i can get the myplaylist to play the next song down using a media player without using a button which i already have (Automatically) here is what i have in my...
10
by: Ken OHanlon | last post by:
I have read everything I can find on the internet, BUT it doesn't help! I'm using Windows XP and Access 2003. The following code does increment the listindex as wanted but then after coming back...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...
0
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...

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.