473,397 Members | 2,099 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,397 software developers and data experts.

auto ComboBox with MSHFlexGrid

Fary4u
273 100+
Hi

it's my 1st post in VB,
i'm trying to get data from ComboBox & result with MSHFlexGrid
it's working fine there is no problem

they only thing i need is
Another ComboBox & ( result inside is 5 then ) generate auto
another ( 5 resulted ) ComboBoxs & get result with MSHFlexGrid.

Expand|Select|Wrap|Line Numbers
  1. Private Sub ComboBox_Click()
  2. rs.Open "select*from tblProduct where Supplier='" & cboSupplier.Text & "'", cn, 3, 3
  3. If Not (rs.BOF And rs.EOF) Then grdProduct.Enabled = True
  4. Set grdProduct.DataSource = rs
  5. Set rs = Nothing
  6. End Sub
  7.  
& MSHFlexGrid
Expand|Select|Wrap|Line Numbers
  1. Private Sub grdProduct_Click()
  2. i = grdProduct.Row
  3. With grdProduct
  4.     lblItemName.Caption = .TextMatrix(i, 2)
  5.     scAd = .TextMatrix(i, 1)
  6.     itmAd = .TextMatrix(i, 2)
  7. End With
  8. If Not scAd = "" Then
  9.     cmdAdd.Enabled = True
  10. End If
  11. End Sub
  12.  
everything should be automatic

is any body knows how to do it, thanks in advance for reading & reply
May 26 '09 #1
2 3039
Fary4u
273 100+
Hi is any body know's how 2 fix this ?

or any thing like this i can do ?

from the dropdown it's just print result with MSHFlexGrid but get result from 1st field & make it's bold & then next field with continues with previous result ?

is any thing i can do ?

thnks in advance
May 26 '09 #2
smartchap
236 100+
@Fary4u
Dear Fary4u
Actually I think your question is not clear and that's why not getting any reply. Please make it clear or post ur code with the problem u are getting.
Jun 15 '09 #3

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

Similar topics

1
by: dave | last post by:
I've designed a nice little App that works something like a spreadsheet using the MSHFlexgrid control. Many users are inclined to press the tab key, expecting the program to respond like excel...
1
by: Maurice Mertens | last post by:
Does anyone know how to get an auto-filling combobox on a form? When I add a combobox to a form I can set the DropDownStyle property to DropDownList. This will make the combobox auto-filling. But...
4
by: doller | last post by:
Hi Dear , I have a mshflexgrid control on the VB form having 200 rows .I need to add a row before or after the selected row in the grid. As wee do in excel we can add rows before or after...
4
by: giddy | last post by:
hie, does anyone know. how to use the MSHFlexGrid.. .in C#... and does'nt VS 2005 shipp with a NEW MSHflexGrid??? i hav VB6 installed to so does that create some conflict?? theres only ver. 6.0...
2
by: nairda | last post by:
Hi, I'm Adrian from Indonesia. I have a problem using MSHFlexgrid in VB. I want to show a data from a single cell in MSHFlexgrid that I choose by mouse click in a textbox. The problem is, how to...
0
by: nairda | last post by:
Hello all! I have a problem combining 2 tables from excel to my MSHFlexgrid. I've succeeded to show an excel table in my MSHFlexgrid using clipboard, but then I have to add a view columns from...
4
by: nairda | last post by:
Hi, I have a minor trouble in my program. I've one MSHFlexgrid to show all datas from an input form that I made. The problem occurs when I deleted one or more rows in the MSHFlexgrid and would like...
4
by: nairda | last post by:
Hi all, I have a MSHFlexgrid to show my database and some textboxes to show datas I choosed from MSHFlexgrid. I would like to know if there's a way to show a specific data I choosed from MSHF in...
2
by: WhiteShore | last post by:
hi there just wonder is it possible to save all the data item from mshflexgrid that has been retrieved from another table? let say i got 1 table called A and has been retrieved by mshflexgrid,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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...
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.