Click here to Skip to main content
15,902,299 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionComboBox With PropertyGrid Control Pin
VB 8.018-Sep-07 18:00
VB 8.018-Sep-07 18:00 
AnswerRe: ComboBox With PropertyGrid Control Pin
Dave Kreskowiak19-Sep-07 1:56
mveDave Kreskowiak19-Sep-07 1:56 
GeneralRe: ComboBox With PropertyGrid Control Pin
VB 8.019-Sep-07 4:47
VB 8.019-Sep-07 4:47 
GeneralRe: ComboBox With PropertyGrid Control Pin
Dave Kreskowiak19-Sep-07 7:16
mveDave Kreskowiak19-Sep-07 7:16 
GeneralRe: ComboBox With PropertyGrid Control Pin
VB 8.020-Sep-07 2:42
VB 8.020-Sep-07 2:42 
GeneralRe: ComboBox With PropertyGrid Control Pin
Dave Kreskowiak20-Sep-07 9:44
mveDave Kreskowiak20-Sep-07 9:44 
GeneralRe: ComboBox With PropertyGrid Control Pin
VB 8.026-Sep-07 4:46
VB 8.026-Sep-07 4:46 
GeneralRe: ComboBox With PropertyGrid Control Pin
Dave Kreskowiak26-Sep-07 12:59
mveDave Kreskowiak26-Sep-07 12:59 
dvsriram wrote:
But the code u gave is showing in 2 properties + icons ,If user has to click those icons and then he can see the properties . I want to assign normally .I use like this .


I have no idea what this means. When I do it, I get the full public properties. i have no idea what you did, or didn't do to not get the property grid as normal.


dvsriram wrote:
If (ctrl.GetType().ToString() = "System.Windows.Forms.Label") Then
Dim d As ContolData = New ContolData(ctrl)
PropertyGrid1.SelectedObject = d.Control


These three lines alone tell me you don't have the experience required to design and write a forms designer. The problem is that hosting the real Visual Studio Forms designer is probably more complex than writing one yourself!

The first line should read
If TypeOf ctrl Is Label Then

after that, you're doing something that isn't even necessary, but I can't tell you what it should be because there is a lack of context. I have no idea what this code is supposed to be doing, nor do I know what the code around it is, so it's impossible for anyone to tell you why you're getting this message.


dvsriram wrote:
2) When i am selecting an item in combobox1 . i am not able to get the properties in propertygrid of that particular item i.e, in ComboBox1_SelectedIndexChanged,i am getting error as "Object reference not set to an instance of an object".Bcoz ,if i take it as control it is displaying in propertygrid .


Without seeing the code in the SelectedIndexChanged event, it's impossible to tell you what's wrong. But the question leads me to believe that you don't understand your own data model.


dvsriram wrote:
3) Exactly my task which looks like creation of controls in vs2005 (drag drop,everything for properties same) but it is has something more but all these things i have to create on pages like page1 ,page2 ...and save with a name . And i have to set the page1 properties i.e., width and height so that it can appear one like in word doc . A4 (sizes) ,A3


Oh God! I'm sorry to say that your inexperience is going to prevent you from doing this. We could go back and forth in the these forums for a year and still not have a working designer. You're trying to run a marathon and you've just barely learned to walk.

The designs I've seen for this would require you to scrap everything you've already done, and start over. The problem with this is that it would take about 5 chapters of a book to explain it. This just can't be spelled out in a few forum posts.


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: ComboBox With PropertyGrid Control Pin
VB 8.026-Sep-07 21:09
VB 8.026-Sep-07 21:09 
GeneralRe: ComboBox With PropertyGrid Control Pin
VB 8.027-Sep-07 0:24
VB 8.027-Sep-07 0:24 
GeneralRe: ComboBox With PropertyGrid Control [modified] Pin
Dave Kreskowiak27-Sep-07 1:42
mveDave Kreskowiak27-Sep-07 1:42 
QuestionSystem.drawing.bitmap Pin
plural18-Sep-07 8:58
plural18-Sep-07 8:58 
AnswerRe: System.drawing.bitmap Pin
Guffa18-Sep-07 9:29
Guffa18-Sep-07 9:29 
QuestionAppleScript guy asks "Can VB.NET --------?" Pin
@largeinsd18-Sep-07 7:27
@largeinsd18-Sep-07 7:27 
AnswerRe: AppleScript guy asks "Can VB.NET --------?" Pin
Guffa18-Sep-07 9:41
Guffa18-Sep-07 9:41 
Questionaccessing mdi child Pin
Sai Yasodharan18-Sep-07 5:45
Sai Yasodharan18-Sep-07 5:45 
AnswerRe: accessing mdi child Pin
Dave Kreskowiak18-Sep-07 6:11
mveDave Kreskowiak18-Sep-07 6:11 
GeneralRe: accessing mdi child Pin
Sai Yasodharan18-Sep-07 6:28
Sai Yasodharan18-Sep-07 6:28 
QuestionIs there anyway vb.net can use to extract image feature? Pin
TeiUKei18-Sep-07 4:26
TeiUKei18-Sep-07 4:26 
AnswerRe: Is there anyway vb.net can use to extract image feature? Pin
DanB198318-Sep-07 5:50
DanB198318-Sep-07 5:50 
AnswerRe: Is there anyway vb.net can use to extract image feature? Pin
Dave Kreskowiak18-Sep-07 5:56
mveDave Kreskowiak18-Sep-07 5:56 
GeneralRe: Is there anyway vb.net can use to extract image feature? Pin
TeiUKei18-Sep-07 16:34
TeiUKei18-Sep-07 16:34 
GeneralRe: Is there anyway vb.net can use to extract image feature? Pin
Dave Kreskowiak19-Sep-07 3:42
mveDave Kreskowiak19-Sep-07 3:42 
QuestionPrinted Page Count Pin
gates0918-Sep-07 4:22
gates0918-Sep-07 4:22 
AnswerRe: Printed Page Count Pin
Dave Kreskowiak18-Sep-07 5:56
mveDave Kreskowiak18-Sep-07 5:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.