Answer Questions
Tim Anderson Refactor - cannot get it to work
I just loaded Refactor on my system that has VS 2005 Pro on it. After starting VS2005 I edited a few projects. I placed the cursor on a line and pressed Ctrl+~ , but nothing happened. I even created a new project, added some code, and pressed Ctrl+~ ...again nothing. I have even rebooted (when all else fails). Still cannot get it to work. Any ideas would be appreciated. Thanks, Tom OK, so when you have installed refactor if you go to Tools -> Add In Manager You should see DevExpress Tools as one of the options, do you see this Create a simple windows forms project with a single button on a form and add the following code Dim x As Integer x = 2 in the bu ...Show All
Yann BOURON Reoppen form
hi all is there any command which doesnot let the form to open that is already opened / loaded. e.g. ( I Openned FORM1 form menu, now if I click on menu again, the FORM1 should not be openned again, as it is already openned.) thankyou YourForm.Focus() For a regular form, this syntax will not open another copy, but use the open one: Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click someform.Show() someform.Select() End Sub Thank you yes i mean it. give me vb.net code for the same ( I Openned FORM1 form menu, now if I click on menu again, the FORM1 should not be openned again, as it is already openned.) ...Show All
Ronald#2 Multiple fontstyles for a font
Hi, Another simple question i'm sure... I'm trying to create a font with multiple FontStyles... e.g. bold and italic and underlined I've got the basics for a single fontstyle but just can't work out multiple ones. Current Code: Dim fnt as new Font("Times New Roman", 12, FontStyle.Bold) Any help would be greatly appreciated (can't believe i've been writing apps for the last 5 years and never actually come accross this problem before!!!) Thanks OK i've wprked it out, Just me being a bit slow!!! I've created a Font Generating function that returns a font (below) taking the font name, size, and boolean values for Bold, Italic, Strikeout and Underline. Private Function ...Show All
markse savedialog problem
hey im working on a html editor program. and i of course want to give users the oppertunity to save their pages. i have the savedialog, but how do i make the dialog save the content that the user wrote all content is in a textbox named "edittxt." hop you will help //Martin Or if your using VB 2005 or VB Express then you can use the My.Computer.Filesystem.WriteAllText Method If SaveFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then My.Computer.Filesystem.WriteAllText(SaveFileDialog1.FileName, Textbox1.Text, False) End If The SaveDialog will not save the file, it only allow user to select file (to be created/to be overwritten), so you have to code the ...Show All
RGreene Data in Dataset to txt file
Hello, I have data in a dataset, which I would like to save to a text file. This data will be used again in another form upon user's request. How can I do this Or, are there other options Thank you Richard for prompt reply. Yes, there is: How can I populate a DataGridView from an existing XML File (The XML File is written in the DataSet layout) ' // Writing a DataSet as XML Data Dim xmlSW As System.IO.StreamWriter = New System.IO.StreamWriter(str_FileName) thisDataSet.WriteXml(xmlSW, XmlWriteMode.WriteSchema) xmlSW.Close() No, a specific format is not necessary. I just need to show the data in a form, preferrably in a datagrid. ...Show All
jwagner20 Package and Deployment wizard error with VB 6 Professional
I've written a simple program that utilizes only the standard VB6 controls and the microsoft calendar control. It successfully packaged using the P&D Wizard, but when I try to test out the setup.exe program to install it on my or another machine, i get the following error: (cut & paste from the st6unst.001 file) *** ERROR: The file 'C:\DOCUME~1\AIRBOR~1\LOCALS~1\Temp\msftqws.pdw\$(DLLSelfRegisterEx)' could not be registered because it was not found. *** ERROR: (User Responded with 'OK') I don't understand what caused this error or what this file is for.. Can anyone who has come across it or know what it means help me please Sorry this forum is for vb.net programs please try one of vb6 newsgroups . ...Show All
Evidica open a file with many options
I need to be able to open a file with a very long set of options and was wondering if visual basic can do something like that. The link would look something like this: "C:\Program Files\program folder\program.exe" D:\folder\file1.aatrend D:\folder\file2.aatrend D:\folder\file3.aatrend D:\folder\file4.aatrend etc. etc. The length of the options and filename path are too long to be contained in a normal link. So I was thinking that perhaps I could create a small vbscript that all it would do is open the program with each of the files named. If it's possible, how do I do it and/or where do I learn more about it You are not going to get a good answer on a VBScript question when you post i ...Show All
kna02388_1 How to debug a Windows Service built with Vb 2005?
Hi everyone, I’ve installed that service by means of installutil.exe and then started with Service Manager. But from the IDE I trying to attach that process from Debug option but it doesn’t appears. Why Let me know where am I failing. TIA It's already solved I was looking for the same name as service instead of process... Pre and post build events too. Is different from VB Thanks anyway. At the same time I am trying to add Pre-build and post-build event commands and I don't see how to. It's a VB service. Thanks a lot for any comment or thought, ...Show All
Troy Lundin How to load one form above another while displaying
I'm calling 2 forms at the same time and when it is displayed both are displayed over the center of the screen, so I don't have control of one form or the other. Can anybody please suggest me how to place one form over other so that I cud get control to enter data in both forms. placed above and below respectively. Sorry, are you trying to show both forms but have 1 form available for user input only, until this form is closed Or, most likely this: are you wanting to display both forms, on on top of the other (vertically) If this is the case then you can position the other form by setting the location to be of the first form's location + about 20 pixels so something like maybe: Dim myNewForm as New SomeForm() ...Show All
Ken Villines NullReferenceException on splash screen
Here's one for everyone. I have an app that I am using a splash screen with. In Windows XP it works great, no issues. In Windows 2000 not so much. It throws a System.NullReferenceException when the splash screen closes. I can choose continue from the error and the app works fine, but as you can imagin that looks bad to the end user. As per a suggestion made in a previous post. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=184053&SiteID=1 I loaded vb express on a 2K box and tried to catch the exception. It will not catch, I have it set to break on this exception, it just states a NullReferenceException was unhandled. After looking into the detail, it states that the exception is comming from the System.Windows.Forms.dll. C ...Show All
Pierre Leclerc need help with offsets for LayoutKind.Explicit - unravelling a returned struct from unmanaged into managed
Mathew Gertz pointed me in the right direction I believe in an earlier post. My P/Invoke is returning valid values for 'name' below at field offset 0 and other values as I can see in QuickWatch. StructA below is passed and returned from the unmanaged C++ dll with valid values. An error is thrown however; System.ExecutionEngineException was unhandled Message="Exception of type 'System.ExecutionEngineException' was thrown." I would like to try Mathew's idea of using LayoutKind.Explicit rather than LayoutKind.Sequential which I am currently using. If I had <FieldOffset(0)> for the first member of StructA, can anyone help me with how the rest would look I would say Offsets would increase by 1. 4 after each Integ ...Show All
Ramanujam Sampath Smtp Email Question
I was just curious if anybody knows how to set the username and password on an account in order for the smtp client to be able to send an email... Thanks All... Check out the following. It would seem other have had issues with gmail. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=558119&SiteID=1 A search of the forums on smtp + gmail will reveal other problems, search all foums not just VB ones as all .NET languages use common class library. http://mail.google.com/support/bin/answer.py answer=13287 You can try the following. mailClient.EnableSsl = True Rather than waste peoples time and your own, when you ask a question please tr ...Show All
Deallen How can we restrict copy between hard disk and removable disk?
Hi All, I need help in restricting copy between hard disk and removable disk, can some one hint me as how can this be done. The basic idea is to stop leakage of data. Regards, Dinesh One question, are you trying to prevent Windows/Other apps from doing this, or just your own app I want to make an application which will be running comtinously in the background and would be restricting such data leakage. I would be giving a password for the administrator who would be able to achieve this task but rest all users will not be able to copy tha data. I know, we can very well use the securities of windows but this application will also restruct the administrator from copying the data, ...Show All
AcrossThePond 'Help' constantly installs help documents
Nearly every time I look for help on a topic I get this Windows Install message. Then I have to wait, and wait, and wait... I suspect that this is a generic IDE problem but VB.NET is the only thing I have. Surely there is some way to get help to completely install everything. I'm using VB.NET 2002 When you installed VB there should have been an option to "COMPLETELY" install the MSDN! Please reply and let us know if you rstill need help with this problem or the solution which you found! This question is being marked as answered due to inactivity, in order to relieve the unanswered backlog! ...Show All
modpower item in Listbox
I'm trying to figure out what I'm missing here in this piece of code: dim s as string ="" for each item In me.listbox1.items s=s & item.tostring & vbcrlf ... i get this error msg: "Name 'item' is not declared" Any help would be appreciated. aLEX According to your error message, the list items are of DataRowView type, not string - you're probably binding to a datatable. Try this: For Each item As DataRowView In ListBox1.Items Dim itemText As String = item(ListBox1.DisplayMember).ToString() ... The reason for "'Item' undeclared" message is that you didn't declare your item variable (in the for each statement) as the same type you're using t ...Show All
