Solved

ActiveX ocx ( How 2 work with grid  200 )

Posted on 2001-09-05
10
217 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
  • 4
  • 4
  • 2
10 Comments
 
LVL 12

Expert Comment

by:roverm
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 17

Expert Comment

by:smozgur
Comment Utility
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:smozgur
Comment Utility
And I know it is great code because 700 coder saw it in 2 days (33 hours). Thanks.

suat

0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 17

Accepted Solution

by:
smozgur earned 200 total points
Comment Utility
Oh sorry, wrong window to comment :)

suat
0
 
LVL 6

Author Comment

by:hatem72
Comment Utility
0
 
LVL 6

Author Comment

by:hatem72
Comment Utility
Thanx 4 ur Note
0
 
LVL 17

Expert Comment

by:smozgur
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now