Solved

Configuring/Alter Controls at Runtime

Posted on 2006-12-01
2
190 Views
Last Modified: 2010-04-23

Lets say I create a create and configure a data grid in Memory

How do I pass all the configuration I did on that Data grid in memory to the data grid  the form...


I tried something similar to this below, but it did not work... And I am not sure why?

For Example...

DIM DG as Data Grid

--Configure and Setup the Data Grid
With DG
     'Here would be code to configure it
End With

Me.InventoryDataGrid = DG

0
Comment
Question by:redmountainmachinery
2 Comments
 
LVL 10

Accepted Solution

by:
gangwisch earned 500 total points
Comment Utility
the best thing to do would be to show all files in solution explorer and view your designer code for the statically made grid
then copy it to your with statement
0
 

Author Comment

by:redmountainmachinery
Comment Utility
PLEASE CANCEL THIS QUESTION...

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Help with uploading excel file 2 31
Form design in vb.net 7 17
help with issues with ReportViewer in VS2015 5 22
Showdialog 8 18
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

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

11 Experts available now in Live!

Get 1:1 Help Now