Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ActiveX ocx ( How 2 work with grid  200 )

Posted on 2001-09-05
10
Medium Priority
?
226 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Suggested Courses

618 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