473,804 Members | 3,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Place a combobox on top of a cell in owc11 spreadsheet

2 New Member
HI all ,

I am creating a UI using VBA program where I am using OWC 11 control. What I want is that--- when user will select the pricular cell(say, D4) in the OWC spreadsheet, a combo box appears in place of the cell and from the drop-down list box he will select the correct option and that will be the value of that cell (i.e. D4).

Now I've written the code like following:--



//Code//

Private Sub Spreadpfd_Selec tionChanging(By Val Range As OWC11.Range)

Dim ctop As Double
Dim cleft As Double
Dim cheight As Double
Dim cwidth As Double

curr_cadd = Range.Address
curr_cadd = Mid(curr_cadd, 2, 1)
If curr_cadd = "D" Then
ctop = fPFD.Spreadpfd. ActiveCell.Top
cleft = fPFD.Spreadpfd. ActiveCell.Left
cheight = fPFD.Spreadpfd. ActiveCell.Heig ht
cwidth = fPFD.Spreadpfd. ActiveCell.Widt h
fPFD.Combooptyp e.Top = fPFD.Spreadpfd. Top + ctop + 30
fPFD.Combooptyp e.Left = fPFD.Spreadpfd. Left + cleft + 19.75
fPFD.Combooptyp e.Height = 60
fPFD.Combooptyp e.Width = cwidth
fPFD.Spreadpfd. ZOrder (fmBottom)
fPFD.Combooptyp e.ZOrder (fmTop)
fPFD.Combooptyp e.Visible = True
fPFD.Combooptyp e.SetFocus
Else
fPFD.Combooptyp e.Visible = False
End If
End Sub

//Code//

The Issue is that , the combobox is getting visible but not on top of that cell(i.e. D4). Actually the combobox is not appearing on top of the owc11 spreadsheet control. --- Can anyone help.....Any help will be greatly appreaciated... ..



Thanks & Regards,

Subhrajit
Apr 12 '08 #1
2 3682
QVeen72
1,445 Recognized Expert Top Contributor
Hi,

Set the ZOrder property of the ComboBox.
In Design time, Right-Click on ComboBox and "Bring It To Front"

Regards
Veena
Apr 12 '08 #2
Ariel The Man
1 New Member
Hi
Put the ComboBox on a Frame control ,only a frame can be shown in a front of OWC11 spreadsheet

Cheers
Ariel
Jul 15 '12 #3

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

Similar topics

1
2387
by: Stefan Hirtbach | last post by:
Hi, I wrote a small program in C#, using OWC11, that fills data in an excelsheet and save it to disk as xls-file (using the Export-function). It works well with Office 2003 but i've got problems using the file in Office 2002 and 2000. It seems that the exported file is in an XML-file and not an native Excel-file. Is it possible to generate a native File to use it with 2000 and 2002, or have I to grade down to OWC10? BTW: How do I color...
2
3289
by: Gerry Roston | last post by:
I have a rather simple ASP.NET program for displaying a formatted spreadsheet. (Needless to say, there will be some data added!): Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim xlsheet As New SpreadsheetClass Dim rs As New StreamReader(Server.MapPath(".") + "mySheet.xml") Dim xmlContentFromFile As String = rs.ReadToEnd() xlsheet.XMLData = xmlContentFromFile
0
1226
by: AMD | last post by:
Hello everybody :) Is it possible to use OWC11 (spreadsheet) in a webform which is developped with VS 2005 (VB.NET - ASP.NET) ? I know that it is possible with VS 2003 but I can't do the same with VS 2005... Please help me :) Arnaud MARET-DAUGE
0
1617
by: FrankB | last post by:
Hello, I would like to use the OWC11 Spreadsheet in my C# program. Filling values into cells is no problem, but formatting is not possible. How can I change the width of columns, the color of cells? All these have only read-only properties. Thanks for your help.
1
3939
by: RBChallenger | last post by:
Can anyone tell me how to set the font properties in an embedded OWC11 excel speradsheet. You can get to the font properties via spreadSheet.Cells.Font.<Property>, however if I want to set the porperty Size I cannot simply say .Size = x; and I ahve been unable to find the accessor method to set the field. Anyone have any suggestions? -- RBChallenger ------------------------------------------------------------------------
0
3180
by: Ujval Shah | last post by:
Hi, I am facing a peculiar problem. My Client Requirement is to Export and Import Excel from and To DataSet for web Application using OWC. Now Problem is When i Export file using OWC .. File's Extension is .xls but it's XML Spreadsheet .. so when i am trying to import Extended Property=EXCEL 8.0 is not supported. and it gives error "External table is not in the expected format."
6
2027
TMS
by: TMS | last post by:
This spreadsheet is almost done, but there is some functionality that is driving me nuts. For instance: a cell, for instance 'a0' is to have 'a0' as a string, but if something is entered like '4+5', that is also there. So, at any time, one could see the cell number a0 or they could click on it and have the equation show as well. Right now, I can make it show the equation, and evaluate it, or it can also show the cell number. But I...
0
1011
by: joedirt851 | last post by:
I am trying to build a chart into a spreadsheet using OWC11. I have lots of examples of building charts to send to ASP pages, and lots for creating spreadsheets, but nothing about putting a chart into a spreadsheet. From what I've seen I need the ChartObjects member of the ActiveSheet class which comes in Interop, but it's not in OWC. Does anyone have any experience putting a chart into a spreadsheet with OWC? joedirt
1
4818
by: oliviers | last post by:
Hi, From an aspx (.net 2.0) web site, I basically want to provide my users with some data in an excel format. I found that a good way was to user the owc11 library (from Office 2003). It runs great on my dev machine and, of course, bad from my production server. What I did:
0
9579
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
10577
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...
0
10332
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10077
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...
1
7620
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
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.