?
Solved

ActiveX ocx ( How 2 work with grid  200 )

Posted on 2001-09-05
10
Medium Priority
?
224 Views
Last Modified: 2006-11-17
Hi
i am working in ocx project i am using FlexGrid in it
And i want to Manage it's Indexs Like :

FGrid.FixedAlignment(i)

My Prb is the Index i How can i refear to it in my ocx

2. How can i change the BackGround of the Grid With Picture .

 
0
Comment
Question by:hatem72
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 2
10 Comments
 
LVL 12

Expert Comment

by:roverm
ID: 6457719
For question 1:

Declare a private var in the general section:

Private mIndex As Integer

Then build a prop get and let:

Public Property Get FGridIndex() As Integer
  FGridIndex = mIndex
End Property

Public Property Let FGridIndex(ByVal NewIndex As Integer)
  mIndex = NewIndex
End Property

Then when calling your function 'FixedAlignment' :

'for flexgrid 1:
FGrid.FGridIndex 1
FGrid.FixedAlignment

'for flexgrid 2:
FGrid.FGridIndex 2
FGrid.FixedAlignment

Then in your function FixedAlignment check for mIndex which control to alter.

Of course you can also change the interface of that function and add the variable there.

D'Mzzl!
RoverM





0
 
LVL 6

Author Comment

by:hatem72
ID: 6459214
Thanx RoverM

 But maybe my English dosenot Help me


I Have Just on FlexGrid But i want to use the index of
 the Cols   ... Col1  Col2  Col3 ... Coli

That what i mean By i (Index Of Cols) FGrid.FixedAlignment(i)

I am good in vb But in Ocx ( New in it )

Thanx Agian
0
 
LVL 6

Author Comment

by:hatem72
ID: 6459221
Thanx RoverM

But maybe my English dosenot Help me


I Have Just one FlexGrid But i want to use the index of
the Cols   ... Col1  Col2  Col3 ... Coli

That what i mean By i (Index Of Cols) FGrid.FixedAlignment(i)

I am good in vb But in Ocx ( New in it )

Thanx Agian
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 17

Expert Comment

by:Suat Ozgur
ID: 6501183
Hi roverm,

How re you?

please look at this link:

http://www.experts-exchange.com/jsp/qShow.jsp?ta=vbcontrols&qid=20178899

I think hatem72 has what s/he needed. But forgot her/his questions.

If you want to see second question's answer please also check my code in psc. You will like it. Let me know please.

http://www.planet-source-code.com/xq/ASP/txtCodeId.27340/lngWId.1/qx/vb/scripts/ShowCode.htm


regards
suat
0
 
LVL 17

Expert Comment

by:Suat Ozgur
ID: 6501234
And I know it is great code because 700 coder saw it in 2 days (33 hours). Thanks.

suat

0
 
LVL 17

Accepted Solution

by:
Suat Ozgur earned 800 total points
ID: 6501237
Oh sorry, wrong window to comment :)

suat
0
 
LVL 6

Author Comment

by:hatem72
ID: 6503289
0
 
LVL 6

Author Comment

by:hatem72
ID: 6503293
Thanx 4 ur Note
0
 
LVL 17

Expert Comment

by:Suat Ozgur
ID: 6503777
Hi hatem72,

Actually yod did not have to give points for this twins question. As i told you in other twins you could ask for deleting this.

However i would give 400 points for Grid Picture :)

I am happy to see that you have what you want.

with my best regards
Suat Ozgur

0
 
LVL 12

Expert Comment

by:roverm
ID: 6512305
suat:

Hi, I'm fine, have been away for a couple of days, EE was down, so that's why I react so late...

;-)

D'Mzzl!
RoverM
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question