diptivs's Q&A profile
Visual Basic edit and continue
I can't seem to enable edit and continue in my VB 2005 app. Everyone seems to be pointing to Tools--> Options--> Debugging, but I don't have a debugging menu in my Tools--> Options. Any help would be appreciated. Thanks, Danny Yes, it's when I'm at a breakpoint in code I cannot make a change ot the file in the ide. It seams to be all files in the solutions. ...Show All
Visual Basic binding source problem
I create a dataset with about 3000 rows of data from MSAccess. It is bound to a bindingsource " Private bsItems As New BindingSource". I can navigate through the items but when I reach record 127 it stops and will not advance any further. I can movelast and the move previous until I reach record 1488 and it stops again. I can do a find " Dim iIndex As Integer = bsItems.Find( "txtItemNumber" , Me .txtGoTo.Text) " for records between 127 and 1488 and sometimes it will move to the record and sometimes not. I compacted and repaired the access datatable and the table can be accessed fine with other program ...Show All
Windows Forms how to reboot machine C#
Hi, how can I reboot the local machine using C# There is a feature in my application that allows a user to make some configuration settings. The new settings cant be effective until the machine is rebooted. I made a popup window that asks if the machine can be rebooted or not. If user says yes, then the machine reboots. How can I reboot&nb ...Show All
Visual Studio Team System install prompting for login
So, after having nothing but problems with installing a Dual Server setup, I decided to take the easy way out and try a Single Server setup. As luck would have it, Single Server is turning out to be just as big a pain as the Dual Server install. Towards the end of the Team Foundation Server install, I'm being prompted for login credentials. The title of the box is "Log on" and the text above the User Name says "Connecting to Team Foundation Server". There's no option to select a domain so I'm going to try just entering the username in the form "domain\pre_tfsservice" where domain is the domain the tfsservice account lives. ...Show All
Visual Studio Express Editions Timer
Hi, I have a ToolStripStaus Lable on my form which informs the user that the new account has been added to the database. I would only like this message to be displayed for a given time and then be removed, what is the best way to code this I could do this using a timer control, is there a better way to add pauses within code Any help would be appreciatted Me .ts1.Text = "New Account Created Sucessfully" Ron Nash I think it's best if you never think in terms of pauses but in terms of asynchonous events which is what a timer does. Here is how you might use a timer for y ...Show All
Visual Basic Painting User Control in a DataGridViewCell
If you've read my previous thread then you'll know that I'm creating a user control that consists of a TextBox and a DateTimePicker. This control allows the user to pick a date, which is then displayed in the TextBox. The advantage of this (over just using a DateTimePicker), is that the user can delete the date string in the TextBox and leave it blank if no date is required. Anyway, in my previous thread I had an error with trying to hook this new control up to a DataGridViewCell. However I have solved this error, but have now stumbled into a new problem that seems to be giving me even more grief. I'm very new to working with user control ...Show All
SQL Server error on server
TITLE: Microsoft Report Designer ------------------------------ A connection could not be made to the report server http://localhost/ReportServer2005 . ------------------------------ ADDITIONAL INFORMATION: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. The request failed with the error message: -- <html> <head> <title> SQL Server Reporting Services </title><meta name="Generator" content="Microsoft SQL Server Reporting Services 9.00.1399.00" /> <meta name="HTTP Status" content="500" /> <meta name="Produc ...Show All
Visual Studio Team System Check naming of boolean fields/variables
Thank you again for all the answers. I have a new question. I have written this code: Cinthia, As pointed out on your original question, the following blog post has some sample code that shows you how to do this: FAQ: How do I access the locals of a method in a custom rule Be aware though, that symbols (.pdb) will need be generated and be alongside the assembly you are analyzing for the local's name to be populated. Regards David ...Show All
Visual Basic Round function
I'm hoping that someone is able to clarify for me just what the Round function in VB does. According to the help file, Math.Round( value , digits ) returns a number which is value , rounded to the number of significant digits requested. I must be misunderstanding just what this means, because the results I get are unexpected. For instance, for Round(12.3456,3) I would expect to get 12.3 (i.e. 12.345 rounded to 3 digits). Or, for Round (1.23456E-15,3) I expected 1.23E-15 but I get 0.0. Rather than digits being the number of significant digits in the result (as stated in the help files) it seems to be the power of the rightmost digit in the r ...Show All
Windows Forms Determining max size of Image in PictureBox (.NET 2.0)
I have a PictureBox with Docking set to Fill. I would like to find the dimensions of the rectangle that the PictureBox "Fills". In .NET 1.1, pictureBox1.height and pictureBox1.width properties define those dimensions. In .NET 2.0, I find that the the height and width properties of the PictureBox defines the height and width of the image itself. In other words, the height and width properties no longer reflects the maximum space availiable to display the image. How do I find those dimensions in .NET 2.0 It can't be the height width of the parent control, as Anchoring instead ...Show All
.NET Development Urgent problem with An existing connection was forcibly closed by the remote host
Hi, I have an urgent problem need help. We have an Asp.net application runing on window 2003 server. One part of the application is socket programming. When customer hits our site a little bit heavier, after serveral thoudsands hits, I statrt to get a bunch of An existing connection was forcibly closed by the remote host exceptions, then if the customer continue hits the site, the other function throw out of memory exception, The result is our site not responding any more. The attached is the socket call programming, any help will be appreciated! Thank you. IPAddress[] ips = Dns.GetHostAddresses(m_sAVSHost); IPEndPoi ...Show All
Windows Forms RichTextBox: text back color
Hi All, I'm developping a C# project and I have a problem with the RichTextBox... I don't find how to change the text back color.. (like this: Example ) Can you help me Thank you :) Thank you for your answer Marconi. I already seen this code with ritechTextBox1.SectionBackColor = ..... But I have'nt this property in my RichTextBox... I don't understand why this component don't give us the possibility of making Rich Text easily. We can display Rich Text in the Rich Text Box only by create the Rich Text encoded and define the "Rtf" property... Maybe in a further version of .NET Framework... ...Show All
Visual Basic Referring to files within the application
This is incredibly basic I know, but I want to link my Help > About menu item to the AboutBox1.vb form. I need some code which opens that window. I also want to be able to link to a .htm document added to my application from a menu item, eg link 'index.htm' from Help > Homepage Info Thank you for your time, ROBERT HOATH To make a menu item display a htm document or web page. Drop a web browser on the form and then in the menu item click event add something like dim URL as string URL = " www.microsoft.com " me.webbrowser.navigate(URL ) This will make the web browser control display ...Show All
Visual C++ Can I replace or modify the default menu of an edit box?
Hi guys, Can I replace or modify the default menu of an edit box. What I want to do is that I want to provide my own owner drawn menu for the edit box. Is it possible Thanks Nibu thomas Yeah thanks martin. I have wierd ideas. I don't know where they come from. ...Show All
.NET Development C# - OleDb - Access(MDB) : storing and retrieving images
Hello, I am currently banging my head against the wall and it is starting to hurt, I am trying to store images used in a windows application within a .mdb database. Within the table of the database the field in question is set to OLE Object. The method I am using to put the image into the database is as follows: public static bool UpdateContractor(Utils.Contractor cnt) { if(! DataManager.bReady) throw new DataManagerNotReadyException("The local database is not ready"); //serialise the image MemoryStream memStream1 = new MemoryStream(); BinaryFormatter formatter = new BinaryFormatter(); form ...Show All
