Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 5th, 2003, 06:04 PM
Ramesh4u Ramesh4u is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 Ramesh4u User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Creating MSFlexGrid inside an ActiveX control

Hi all,

I am having problem in initializing a msflexgrid control inside my activeX control that I am developing.

Here is what I do:

Option Explicit
Private msflexCustomers As MSFlexGrid

Private Sub UserControl_Initialize()
Set msflexCustomers = NewMSFlexGrid
End Sub

And this is what I get:

"Invalid use of new keyword" inside UserControl_initialize method.

I can not find what the problem is.

your help is very much appreciated.

Thank you.

Ramesh

Reply With Quote
  #2  
Old July 5th, 2003, 10:58 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 44 m 30 sec
Reputation Power: 8
Dim myflexCustomers As New MSFlexGrid

Reply With Quote
  #3  
Old July 6th, 2003, 10:48 AM
Ramesh4u Ramesh4u is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 2 Ramesh4u User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Above comment by victorpendleton does not seem to work for me.

May be I should restate my problem.


I have a MSflexGrid control inside my userControl ( ActiveX ) and I want to initialize it before I can make use of it.

When i do this inside UserControl_Initialize , I get "Invalid use of new keyword".

Basically, This is my question: where do I initialize my msflexCustomers ( MSFlexGrid ) inside my userControl ?


Thank you in advance.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Creating MSFlexGrid inside an ActiveX control


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway