Answer Questions
GilM Refreshing DataGridView from MDI Parent form
I am trying to get a datagridview within a child form of my app to refresh, i.e. load and display data from a different query when a user changes the view in the parent form. I've tried using a public sub in the child with the appropriate fillby in an if then clause that checks the parent form to determine the query to run, however this doesn't refresh the datagrid view. I tried adding statements like me.refresh or datagridview.refresh et ...Show All
Mujeeb_rahman Updating underlying table
I have a form based on a BindingSource. The text controls' Data Source Update Mode are set to OnPropertyChanged. The FormClosing method (I almost said "event") has the line Me.nameBindingSource.EndEdit() Changes to the data in the fields on the form are not saved when the form is closed. How can I do this I added a new form and dragged one of the fields from the DataSource onto it. I opened ...Show All
Acts7 Loading and showing a form in a Panel control
Is it possible to load and display a form inside a panel control using Visual Basic 2005 and if so what code do I need to handle this. Regards Dipendra Hi. I don't think it will be possible. I tried to make a panel be the parent of a form and I received a huge exception. It doesn't sound logical to me to do that but as far as I tried it didn't work. What are you trying to do (if we can know of course) Ar ...Show All
RaptorTech How to find the current record in a form?
To update a field with the last update date/time I use the following code Private Sub dgvAuteur_CellEndEdit( ByVal sender As System. Object , ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) DsPrive.tblAuteur( Me .TblAuteurBindingSource.Position).Gewijzigd = Now() End Sub This works fine, as long as I don't sort my table during execu ...Show All
ltaylor934 BindingContext
Hello Everyone, Can someone pls tell me the difference between : me.bindingcontext(ds.table).addnew and me.bindingcontext(ds,"table").addnew Does the comma and qoutes make a difference if used instead of the fullstop & ...Show All
Niraj Shah C# style documentation
Is there anyway in basic to do C# style documentation ///<summary> ///This is a method ///</summary> ///<param name="test">This is the test param</param> ///<returns>some value</returns> Type in three single quotes (''') on a new line... ...Show All
rahmed Redim of an array within a multi-dimensioned array of structures modifies an element other than the array object.
Example of a redim statement modifing an incorrect location in a multi-dimensioned array of structures. Am I missing something here 'In this example redim of stub(1,0).coefs(1) modifies Stub(0,0).Data49. 'If there are no 64 bit elements in the structure, the problem appears to go away. 'Have only seen the problem on an array of structures with more than one dimension. Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Ob ...Show All
Winnie123 Help me with Word application (MDI)
Hi I am making a program like word. I have two forms, form1 proberty IsContainer so form1 is a parent. I have a richtext box on form2 and i have a main menu on form1, on the main menu i made a menu item named mnuNew and another one named mnuColor 1st : i want when i click on mnuNew form2 opens into form1 (like word) 2nd : i want when i click on mnuColor a colordialog opens and when i select a color then then selected color in the ric ...Show All
JR_runnfool MDI form startup
Hi I last used .Net 2002 and in the MDI form used the code below. In the properties of the project you set the compiler to start the main() function first. Where in .Net 2005 do you set this property(i.e. if it's stil there...). I need the app to start my Login form first. Any ideas <System.STAThread()> _ Public Shared Sub Main() startMyApplication() End Sub Private Shared Sub startMyApplication() 'Logi ...Show All
RussSpitler Reference compiled assembly
Hi, I have a solution with two projects, one class library and one windows application. The class library has a reference to compiled assembly (dll). The windows application has a reference to the class library project. The windows application is the startup project. The problem is: when I rebuild the solution if I look the bin directory of the windows application the compiled assembly (dll) does not exists. What happend Thanks. Gema ...Show All
BulletCoderHope Getting AssemblyInfo from a Form?
Hi all, I'm new to the forums and I need your help. I developed a class that receives a Form as a parameter in its constructor. Is there any way I can get the assembly info (ApplicationServices.AssemblyInfo) from such form, or I need to pass it as a parameter too In short, I need to get the CompanyName and the AssemblyName. I know from the form I can get the CompanyName, but what about the AssemblyNam ...Show All
Mebbage vb6 to VB.Net upgrading Sub Main() error
Hi everyone.. thanks for taking a peek on my thread. Im upgrading a VB6 application. On its sub main, after it finishes, keeps jumping to other control on different forms. Is there a way to make my project to still go through code just the way VB6 does Creating a endless function will keep the other code working Or I have to create a function that points to other routines I got the next code in my main routine Public Sub Main() ' ...Show All
SDCripps Do you use Keyword "Me"?
Keyword "Me" is convenient because VS 's intellisense automatically shows you what members the class of "Me" has. If you have a lot of classes and a lot of members in each class, "Me" becomes more helpful to me as my brain doesn't remember a lot. Howerver, leaving a lot of "Me.*" seems reduce readability of my code. And I am not sure if this would degrade perfomance due to Symbol lookup(Or increase comp ...Show All
H. (冬) Tony .Net UserControl Keypress event
Hi, i created a .net usercontrol using VB 2005. I see that keypress event is not fired in the UserControl when any key is pressed. However the keypress event of the textbox in the UserControl alone gets fired. In VB 6, this worked perfectly. Keypress events for forms are enabled using keypreview property. I don't see any such property for a usercontrol. Can some help, how to enable keypress event of a UserControl. Any help in this ...Show All
Jeff Micro design question
Hello, Im a n00b when it comes to Visual Basic, but not to programming in general. So I have a basic question about how to do something in VB. I am throwing together a little utility for my company that joins a computer to the domain and sets up the proper groups, comp name, etc. I chose VB because its easy to throw together a GUI in less than 5 hours. The first "page" is a credentials check, then it moves on to other information that ...Show All
