Click here to Skip to main content
16,006,355 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Sharing window folder Pin
Dave Kreskowiak20-Sep-07 10:28
mveDave Kreskowiak20-Sep-07 10:28 
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 
Thanks For Replying ,

I used ur code in my task . I am getting the things well in the propertygrid ,But it is not looking way in vs2005 .But i am very thankful for ur help . if i take a normal textbox1 at design time andi if i assign the propertygrid.selectedobject =label1 it is displaying in order everything .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 .

1) But whenever i am right clicking the on the panel--> i get contextmenustrip in that i added properties .If i click i wrote like this
If (ctrl.GetType().ToString() = "System.Windows.Forms.Label") Then<br />
           Dim d As ContolData = New ContolData(ctrl)<br />
           PropertyGrid1.SelectedObject = d.Control

i am adding the controls to combobox1 when mouse down on the control . i am displaying when the particular runtime control is clicked using the code like this : and showing in both combobox and propertygrid
ComboBox1.SelectedItem = ctrl.name<br />
                    Dim cd As ContolData = New ContolData(ctrl)<br />
                    PropertyGrid1.SelectedObject = cd

using this code i can add the controls at only one time .
but it is working for all dynamic controls except for panel or splitter1.panel1 ,it is showing error Object reference not set to an instance of an object. i dont know how to get for panel . Using ur code i can display the controls incombobox but i am not able to display in propertygrid when particular item is selected in combobox1

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 .

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

Waiting for ur Reply ......

DVSRIRAM
GeneralRe: ComboBox With PropertyGrid Control Pin
Dave Kreskowiak26-Sep-07 12:59
mveDave Kreskowiak26-Sep-07 12:59 
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 &quot;Can VB.NET --------?&quot; Pin
@largeinsd18-Sep-07 7:27
@largeinsd18-Sep-07 7:27 
AnswerRe: AppleScript guy asks &quot;Can VB.NET --------?&quot; 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 

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.