Answer Questions
yamobe Help!! Using labels
Hi- I'm trying to write my first program but I really have no idea what I'm doing. How would you display text on a form without having it appear in a message box I think you would do something with a label but I have no idea how to use it. Also, if I have text in a button that is currently being displayed in a messagebox upon double-clicking on the button, how would I make it so that when you double-click on the button, it appears in a label Thanks!! Hi kdancer100, I have to agree with xRuntime, while there are lots of people here that are more than happy to help, you need to be speaking the same language, and the only way to do this is to do a 'little' study. Then, as I believe you realise, it can so ...Show All
Kevin McGarvey COM Interop Exception: Type Mismatch
Hello, I was accessing a property named "Equality" of an ActiveX component through VB 2005 interop. In the object browser, the property was displayed as: Property Equality(ByVal index As Integer) As Integer I tried to access "Equality" with the following statement: 'Assuming pRenderer is a valid reference. Dim retVal As aims.imsEquality = pRenderer.Equality(1) The statement execution resulted in Type Mismatch exception. I looked around MSDN and the closest thing I could find was http://support.microsoft.com/ kbid=316138 . Does anyone have any idea how to properly access a property of an ActiveX component that takes an argument Thanks. I'm afraid I'm at a loss - the ...Show All
Opfer VB 6.0 - No. of Controls in the Container
Hi Is there any restriction in the number of controls that a Form Container should hold How to trace the Form Container capacity depending upon the VB version, Control Type and Other criteria. Is such information stored in any system files that is shipped during VB application install if you create indivial control then the maximum limit is 254 per form(Fixed.) if you will create control array then i don't know what is the limit. yes there is a limitation of controls to be added to a form. that may be 255 but i am not sure. I Know the restriction is there. But how to get the Upper limit whether it is based on the memory or any other parameter..... Or on what parameter this restriction get used ...Show All
jsdratm Number commands
How can I make my program do different things (while running) by using numbers as the link, or so to speak (ie. Make it exit by pressing 3, open a dialog by pressing 4, change the menu by pressing 1 or 2 etc.) Thanks I decided to use buttons for my project. Thanks for all the help Certainly. Use a TextBox and implement the LostFocus event. The user would type a number and press Tab. However, that is kinda old-school thinking. Why don't you put buttons on the form with a descriptive Text property. The user will have no trouble figuring out what happens when they click the button. As opposed to having to remember what number does what... ...Show All
NoSTaBoNN createing a text file
Hi...i used to play around with vb 6 and now i have 2005 and i gt say...i can learn chinese faster then i can learn it... can someone show me how to create a simple text file in the programs folder and can you explain the code so i can learn how it workts..thanks! hi ok if figured how to read the text file AddedName = My .Computer.FileSystem.ReadAllText(zProgramFolder & "\Added.txt" ) but how do i read one line at a time and save it as a array thanks in advance um...i think we are in trobble still....we arent compareing nick names we are comparing the username text file one (Added.txt): has usernames of all the people the person has added (as in the combo box selected item is saved&nb ...Show All
Malleswar VB .NET app - control box doesn't close app.
I have created a VB .net MDI application, all is fine EXCEPT the control box cannot close the application. (i.e. clicking on the 'x' at the top right of the window does nothing). I have got a menu item called file | exit that calls Application.close. but this is the only way I can close the application. The 'x' top right used to work. Why has it stopped Do I need to add a handler for it - but where is the event for it thanks in advance Martin I have found that this takes care of the mdi children forms also, allowing the application to close properly. Run this on your main form. For Each frm As Form In Me .MdiChildren frm.Dispose() Next Unless of course someone ...Show All
Neo the 1 Update the ComboBox at runtime???
Hi I have tried to update my combobox with no luck. I add records to the table, the combobox has as Datasource, but I don't know how to update the combobox. I have tried updata the OleDBAdapter and the DataSet and set the datasource to that dataset, but nothing happens. I can see in the database that I've added a new record to the table, but nothing happens to the combobox when I update it. Does anyone know how to solve this. I also don't know how to clear the ComboBox, I know that when I wan't to clear the DataGrid I use the code SetDataBinding(Nothing,Nothing). How do I clear a ComboBox Please Help me! Fia I don't know if it's the best sollution for your application, but it works.. Call ...Show All
blaise Session state in VB.net
Hello all! I know there is a session state in asp.net. Is there something in a vb.net application that does the same thing Thanks! Rudy What type of state are you wanting to retain There are application settings and user settings features built in to VB.NET for Windows Forms. Thanks Spotty! I need it for a windows application. I just wanted to make sure there wasn't something out there before I create something to do the session handling. Thanks againg for the info! Rudy Session is really a concept of asp.net and VB.Net is merely a language used to develop ASP.Net web applications. If you asking if the ...Show All
Hossam Abdel Wahab surpressing the "Printing page 1 of Document" message
I am using vb.net. and sql server 2005 reporting services. But the report in question uses the local report functionality. I am writing a credit card processor that prints a slip at the end of the transaction. There is an annoying message form that pops up on the screen stating that it is "Printing Page 1 of Document" . It seems to be beyond my reach. Its position is the typical windows auto positioning (ala cascade). I dont want the user to see it. How do i surpress this printing message Is it embedded in the printer driver or spooler services Is it surpressable from the reporting services local report configuration Thanx Thank you This works! ...Show All
IBRAHIM ERSOY nextinstance
hi, i wrote a single instance application - a pic viewer. if i double click on an picture file it opens up my app with that file. now if my program is runnin and i open up one more pic i'd like my program change the shown pic to the new - i know i have to write this in the application events, the StartupNextInstance event but don't know how to get the path of the second pic. any idea thnx That won't work. We're using ClickOnce deployment in our organization. The users always launch the application from a URL to insure they are using the current version. Sometimes, the URL contains additional paramaters so that they are taken directly to an area of the application. When they open the app a second time and they already ...Show All
Kestutis How to Setup Visual Studio 2005 for VBScript Editing
I am developing a number of VB Script files as part of a larger project for our Business Group. It makes sense to me to use the Project capabilities of Visual Studio, but I can't seem to find a vbs template or any references on customizing a Project to recognize the differnces in the VBS langauge compared to VB. It seems crazy that JScript is listed as a separate langauge, but not VBScript. Am I missing something here Help! Hi. I had the same idea. I have been able to set up a VBScript project that remembers your breakpoints. I wrote a guide at: http://krestenm.blogspot.com/2007/12/vbscript-projects-in-visual-studio2.html Hi, Note: ...Show All
XeviaN Web Browser project
I am working on a very simple browser, mainly for quick web surfing without the need of menus, favorites, and other fancy features seen in other browsers. The problem is, im quite new to this programming language, and i barely got anything out of what little time i had in Introduction to Computer Programming (using Visual Basic 6.0) before being pulled out of that class to make up a required credit. Im clueless as to how to get the WebBrowser object to respond to the input in the AddressBar, and display the site the user types. Any help on this would be really greatful. Thanks Well, I'm not sitting at my main computer (the one with VB installed) so I can't be exact. But I believe it is in the project properties. (Found in the " ...Show All
Aknght Printing A CSV File
Hi everyone, I was already able to export my DataGridView data to a CSV file. My problem now is how can i print the CSV file via a command button in my VB.net application I really need this one any help would be appreciated. Thank you so much in advance!!! Stan Start looking here.. shouldnt take too much to figure out formatting etc http://msdn2.microsoft.com/en-us/library/system.windows.forms.printdialog.aspx hey! As u could already export ur DGV data to a csv file...it will be great if u could post the code here...i am trying this for the past 2 days! cheers If you want your application to handle the printing, ...Show All
curiousss MDI Parent to external app
Hello, Is it possible to use the mdi parent to load an already created app within (else i guess i will have to start rewriting :( ) Suggestions would be useful. Thanks MP this is really very useful for me. But i am getting error "Object reference not set to an instance of an object." as app.CreateInstance( "PFIPL2.demoForm" , True ) evelutes as Nothing And if i am using the following method then the error is: Dim type As Type = Assembly.LoadFrom( "E:\\PFIPL2.exe" ).GetType( "Form1" , True , True ) Could not load type 'Form1' from assembly 'PFIPL2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Please Solve my pro ...Show All
Andrew Timberlake-Newell How to get user's dekstop name?
Hi! I'm begginer on Visual Basic - so at starting i have a simple quoestion: How to get desktop name of a specified user I need it for ProcessInfo structure... Thx in advance for help... What are you trying to do with this structure You might want to look at the capabilities of the objects in the system.diagnostics namespace. There's a Process class, and a ProcessStartInfo class that have a lot of functionality. Perhaps there's no need to be using the unmanaged structure you're referencing above Regards, Kit kitg@microsoft.com I am using the structure: Public Structure StartupInfo Public cb As Integer Public reserved As String Public desktop As String Public title As ...Show All
