Answer Questions
Earl Anderson Compare two numbers and display larger of two in label
I am new to this, please be kind as I am sure to sound a bit dim. I placed a command button and two text boxes on a form. I want to click the command button have the program look at the entries in txtfirst and txtsecond determine the larger of the two numbers typed there and then output that number to a label lblresults so I coded Dim txtfirst as Integer &n ...Show All
BryanMiller 2005 app slower than 2003
I started porting over an app built in 2003 to 2005 and I've noticed that at least one part of it is slower to perform. I have a single line combobox capturing textchanged event to run a routine. The routine refilters a dataview and binds it to a datagrid. The two have the exact same code except where 2005 differs slightly from 2003 in setting the databinding and I used a gridview rather than a grid. It seems the 2005 model takes a second or ...Show All
Voln Using virtual function in VB.NET from C++ DLL
Hi, I'm running into a problem when trying to use class interfaces from this library called Audiere. The library was written in C++ as virtual functions that were COM compatible. To use the interface you call a function in the DLL that returns a pointer to the interface (Factory ). They are bindings for Purebasic and Delphi that use the interfaces directly. I made a binding for the D language using interfaces that inherited from the IUnknown int ...Show All
Jeffrey John Osborn Richtextbox.GetPositionFromCharIndex
The GetPositionFromCharIndex-function of Richtextbox 2.0 works only, if the SelectionLength-property > 0. Why The functions returns a System.Drawing.Point, so i don`t understand, why the SelectionLength-property has to be bigger than 0. When this property is 0, the GetPositionFromCharIndex-function always returns "0; 0". Is this a bug in .Net-Framework I`m using Visual Basic 2005 Beta 2 Hi, I just r ...Show All
Batool Randomly select datarows
I have a dataset that contains 95 records. I need to randomly take the 95 records and put into 5 groups of 19. Is there a quick and easy way to do this without pulling teeth or just pulling records from a hat Thanks for the information. Thanks for the help. This is exactly what I needed. I wrote a code to do what you are looking for, store the records in TheMainArray , t ...Show All
carlpicanco BUG: debugger losing variable values
over the weekend I had occasion to write a line of code that added two random byte values. I made the mistake of not contemplating the case where the resulting sum produced a result that was too large for the underlying data type to hold -- this turned out to be a nightmare to debug because VS 2005 beta 2 would lose the values of the variables involved when the exception was thrown. here is a sketch of the code that caused that issue: at t ...Show All
Phil Weber getting HTML from a website
Hi guys, I'm making a project that requires getting the HTML source from a website. I'm not at all sure about how to go about doing this. Any help would be greatly appreciated! Thank you so much in advance! -Robert Robert, We forgive what little Californian I have in me, but...I think you were doing fine. OK....What's you new problem. This is an area of expertise of mine. Robert.... There are women here too. ...Show All
flwid VS controls to create Office 12 look/feel
I saw a VERY interesting preview to the Microsoft Office 12 suite in PCWorld (Nov 2005 issue "Office gets an Extreme Makeover.") I'd like to find out if controls for this style, such as the "ribbon" shown, will be part of visual Studio 2005. I'm also interested in controls to recreate the VS2005 IDE "toolbox", which allows more than one section to remain open at a time (unlike Outlook and VS2003, which close one section when ...Show All
dbrasco Treeview automation
I am attempting to allow the user to automatically check all nodes in a treeview. Here is the code I am using: Dim i As Integer Dim l_Node As TreeNode trvOrders.BeginUpdate() For Each l_Node In trvOrders.Nodes l_Node.Checked = True Next trvOrders.Update() trvOrders.Refresh() From the point of view of my application this works great, except for one thing! When finished, all of the treeview nodes are not visible. ...Show All
jklcom Multi-threaded file processor
I would like to build a tool that reads a text file (might have upto 1,000,000 lines) and does some process with each line and publishes to the message queue [one line at a time]. Between each message being published, there should a sleep time between each threads, which will be configured through the user interface. Also, I need to be able to configure the thread count through the user interface. Any information or sample would be of a great he ...Show All
Ferruccio Costantini MSFlexgrid query
Hi, I was recently tasked with inserting a column in an existing MSFlexGrid that I inherited. I have accomplished all side issues except successfully updating the query for the data. The backend is MS SQL Server2000 I continually get an Error 3061 when I add the field to the query. It is a large grid and I am trying to insert the fild before the Planned_Ship_Date Column. Here ...Show All
Nibbla trouble setting a max and min value
I have the following code: Private Sub numericTextboxKeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress Dim tb As TextBox = CType(sender, TextBox) Dim chr As Char = e.KeyChar If IsNumeric(e.KeyChar) And Not e.KeyChar = "-" Then 'If adding the character to the end of the current TextBox value results in ' a numeric value, go on. Otherwise, ...Show All
csharphelp VB2005 Express - Sub Main in Windows application
hi, Is it possible to use a custom Sub Main on a VB2005 Windows Application project It was possible to set the entry point to Sub Main manually in VS2003, however in 2005 I can only set it to start a form. Thanks, Hi Ryan, Well, in the full version of VS2005, you can. If you go into the project properties, you can uncheck the box labeled 'Enable Application Framework'. Once that's done, the 'Star ...Show All
comparch Code for letting the user change the color and font for whole application
I am making a application program in vb.net 2005. I want the user to select the font and the color which he/she wants for the application. Once the user select the color changes should occur to the whole application. or if possible the list come from the display property and user can select from scheme which is in apperance. Please help....... Hi Puneet Create one Labelfont variable with global access. Public lblAppFont As New ...Show All
CB812 databindings to datagrid
How do I bind a datarow array (mydatarow()) to a datagrid (mydatagrid) at run time. Something like: mydatagrid.databinding ... But the datarow() I have is a result of a table select method. So it is a subset of the dataset I have on the datagrid. Something like: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim filterVal As String = TextBox1 ...Show All
