Hokkie,
That's a bit of sloppy code on my part. The .Left and .Top properties of my grid are zero and don't really have an effect on the equation.
Anyone,
I was doing some testing yesterday, moving the app to other machines, and found that the offset is not as pronounced on other monitors...
I am using the EnterCell event to place the text box. The problem occurs in the project group that the user control is part of. I have yet to try it when just using the ocx. The grid's .left and .top are at the 0,0 point of the user control.
The user control contains the flexgrid, the...
The grid is within a user control, which is within a frame within a tab control. However, if I simply add or subtract the container.Left and container.Top to the equation, I end up with the same problem of some kind of offset being applied that prevents it from lining up.
Yes, the text box appearance and borderstyle are both zero. By offset I mean that the top and left of the textbox do not line up with the displayed celltop and cellleft. I'll try to draw an ascii picture of the problem.
Grid:
___________
|___________|...
Zemp,
Thank you for your reply. However, the code you have presented doesn't change the behavior of the box. Any suggestions as to why there might be an offset, or where the offset might be coming from?
Thanks.
Erika
I'm trying to build a user control that has an "editable" flexgrid. I've looked at the FAQ 222-3262, but it doesn't address my problem. I am using the following code to position the text box:
With hflexgrid
txtDataEntry.Text = .Text
txtDataEntry.Visible = True
txtDataEntry.Move _...
Thank you for the response Koala15.
Here's something weird. If I run the app, break inside the mouseDown event, and view the MouseRow/Col properties by hovering I see incorrect values and it doesn't perfom the movement. However, if I run the app without break points using a debug.print...
I have a MS Hierarchical FlexGrid (MSHFlexgrid) that displays data from an ADO recordset. The grid is not bound to the recordset, I insert the data a row at a time using the AddItem method. I would like to provide users with the ability to move the columns around per the example on MSDN...
I have an XSD file that defines all of the elements that I need to output information from my application. Is there a way to read the XSD in Visual Basic 6 and then use that information to create the appropriate XML tags for the output I have to generate?
The amount of data exported from this...
Thank you everyone who has responded. I've directed my boss to the open source projects and he was impressed by the fact that MS is using it in their applications. You've all helped me to bolster my case for moving to C#. I can't wait to get started on the new project and get away from VB6...
My boss has recently asked the question, "If we migrate to C# will it still be a viable language in five years?"
Can anyone point to resources, articles, or relatively unbiased opinions that address that question? He comes from a C++ background and wants to make sure that whatever we move to...
Ordendelfai,
Unfortunately, the two work arounds mentioned in this thread are the best solutions. Using DAO you can only modify the datatype of a field before you append it to the table. Microsoft recommends using the DDL as introduced in Jet 4.0 to modify field datatypes per Knowledge Base...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.