Answer Questions
vero_ Using Excel with VB
Is it possible to call an Excel file from a VB form Process.Start("MyExcelSheet.xls") to actually reference the application you must create an object reference ...Show All
dhirajdewani mscomm vb6 --> vs2005
I have a very simple vb6 program I want to convert to VS2005. MSComm is nolonger available and I don't understand how to receive data without the mscomm_OnComm() event. Please advise. Also, can this be implemented so that the code is exposed to MSAccess 2000 Ultimately I need to communicate to a piece of Lab equipment connected to the serial port using a production application written in MSAccess. Thanks *VB6 Code* Dim ...Show All
troy anderson Execute a stored procedure
Hi I've added few stored procedures to my SQL Server 2005 database. Few of them were a procedures containing SELECT statements and one of them contains INSERT statement. While executing the procedures with select statements are as easy as displying tables, the procedure with INSERT statement is not so easy [for me]. At first, i've tried to add the procedure to the dataset and execute it as others, by filling the table adapter. But... there is no ...Show All
James Mark IDE Scripting
Is it possible to add projects to a solution via a script I am aware of the "File.AddNewProject " command , however, this will only bring up the "new project" dialog box. Howdy... Have a sneaky over here.. http://msdn.microsoft.com/vstudio/extend/ This might get you in the right sort of direction.. Cheers ...Show All
bSathish include DLL widthout make reference....
Hi everyone. I use an external DLL and I want inlay the DLL into my exe program. (I don't want copy the exe program and the dll file, just 1 file!) How can I do that and I can call the dll file in the code can you give me another shot Sorry, I'm newer on this !!! Sure! Lets try a sequence of events approach. On the left I have MyApplication.exe and on the right I ha ...Show All
Henrywang Where is LoadPicture in Visual Studio .Net?
Hi, the book I am using is for VB 6. To load a picture into an image box, it says do this: imgBox1.Picture = LoadPicture("Blah\Blah.jpg") But, in Visual Studio .Net, it first of all doesn't recognize .Picture (it wants .Image ), and says that Name 'LoadPicture' is not declared. How do I load an image from a file in VB .net Hello Imagebox.Picture has been replaced now. Simply use PictureBox1.Image = ...Show All
Sulakshana COM vs DLL
Can someone explain to me what exactly distinguishes a COM component from a DLL Isn't a COM component just a library of functions that can be called from another application Why is using a COM component so much more complicated than just registering it like one would do with a DLL Any beginner articles or links on the subject would also be most appreciated. Thanks Thanks. This was helpful. A bit beyond my level, but still good. T ...Show All
Stephen A. Weatherford String Formatting
How do you format strings in VB.Net i.e. In VB6: Format("A1B1C1", "!@@@@") = "B1C1" In .Net: It seems in .Net you can only format numeric data. e.g. String.Format("{0:###0.00}", SomeValue) But I want to format a string text :-) Hi! Read in MSDN about String.Format(). You can format any type, string, number, own classes, etc. I did read MSDN ...Show All
DIII command button question
I have two buttons on a windows form called btnOne and btnTwo. When I click btnOne I want a messagebox to show When I click btnTwo I want to run the btnOne click event to show the same messagebox. Does anyone know how to do this. Private Sub btnOne_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOne.Click MsgBox( "Here we are" ) End Sub ...Show All
Mawla Retrieve Data from ComboBox
Hi, How do I do to retrieve data from Combobox I can retrieve the text but I can’t retrieve the code associate with the text, on VB6 I use ItemData(ComboBox.listIndex) but on VB.net I don’t know ! Thanks, Christian Use the valuemember property or SelectedValue ...Show All
ToddGibbs error message Could not load file or assembly 'Select Case\, Case Else'. Exception from HRESULT: 0x80131047
hi all I'm just starting with visual studio 2005 . I've had no problems so far, except when I used 'Select Case'. when I hit f5 I get the following error: ----- Error while trying to run project: Could not load file or assembly 'Select Case\, Case Else' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) ----- would someone tell me what could be the p ...Show All
Jason Nowicki Autohidden code in Visual Studio .NET 2005
Hi everybody. First of all; NICE work with the new Visual Studio .NET 2005. We have come a long way in intuitive development, but VS.NET still amazes me. My question: Where are all the hidden code in VS.NET 2005 gone to I know that most of all code is hidden into class separation (using the .designer.xx files), but I really used the dropdowns for overriding code etc. The two dropdowns on top of the code, would show all overload able methods as ...Show All
Tri PropertyGrid problems
Hi, I am currently using the propertygrid control to browse an object containing many properties of different types, some being structures which contain properties of their own. The first problem is that when I create a class inheriting from ExpandableTypeConverter, and use this class as the type converter for a property in my base class, I cannot find a way to unbold the display text using the DefaultValue attribute... The second (mor ...Show All
Fakhrul Islam Storing a form in a dll
In my project I have four forms. Is there a way to store a form in a dll file instead of storing it in the exe file. I want to be able to call the form to show just like I would normally. If there are any links on how to do this in vb.net that would be great also. Thanks. Ok, I did the Add Reference... suggestion. Now I have another problem. I Use the following code to make the form open in a tab (this code is part of Form1.vb, not pa ...Show All
rhenders Updating a Access Database from Visual Basic
Hi. I'm havng trouble with updating my Access database from Visual Basic. There are no problems when populating datasets from the database, but as I try to update it after some changes, nothing happens.. Anyone got an idea Hege How is that done Not sure if I've done it or not... Have used the wizard when configurating the adapters. Now I've got the follow ...Show All
