Answer Questions
guitarguru102 Graphics.DrawString Text with multi-line
Hello everyone, I have a textbox with multiple lines. I can draw a string from a textbox only if the text is in single line. Can you help me find a way how to draw if the textbox has a value of multiple lines Thanks in advance. Michael Hi all, Please disregard this question. I already solved my problem. I split the text to string array and loop to it then draw each word from loop using drawstring method. Thanx, ...Show All
NimeshPatel Updating underlying table
I have a form based on a BindingSource. The text controls' Data Source Update Mode are set to OnPropertyChanged. The FormClosing method (I almost said "event") has the line Me.nameBindingSource.EndEdit() Changes to the data in the fields on the form are not saved when the form is closed. How can I do this I'm the user. It doesn't work for me. I've noticed that none of the Microsoft.SQLSe ...Show All
Vineet Rao - Microsoft SQL Server Problem
Hi Once again I am stuck with the same problem where after giving the update database command, the database doesnt get updated. It seems as if it is write-protected. No changes can be made from a windows forms application. I have included the code that I have used. If anyone can see any errors, please inform. Here are the steps: I created a new SQL Database and named it as MyCompany.mdf. I added a new source to it called MyCompany ...Show All
Rizwanrs About Visual Basic
I need a sample code to create a Screen Saver using Visual Basic 6.0 Please Help me in doing this or send me a sample code so that i can try understanding that ...Show All
Siv1 Datagridview Row selection Style
Hi Is there any way to change the selection curser I have to use a full row selection in my application and now its a blue line and i would like to have something a bit more discret.. I dont know if cursor is the best word.. In vb6 i think it was called the selection fill style. If you want only different columns to have different colors or styles then you don't need to handle CellFormatting event. It is ...Show All
CAyson VB.Net 2003 - Generating Video Thumbnails...
I'm able to use this code in my Visual Basic 6 programs to generate Thumbnails of Videos and Pictures: http://www.vbaccelerator.com/home/NET/Code/Libraries/Shell_Projects/Thumbnail_Extraction/article.asp This code is in Visual C .Net and cannot be rolled into my VB .Net 2003 Project without converting it: http://www.vbaccelerator.com/home/VB/Code/Libraries/Shell_Projects/Thumbnail_Extraction/article.asp In VB.Net 2003, it is very e ...Show All
jgillin problem in vb.net VSS automation
when i created and automated add method in C# sharp I did not have this problem and was able to add the desired file to the project. I have a problem with using interfaces in vb.net and creating an instance of an object. can anyone help. this is the last piece of code, when i get it to work Im home free. any help may gain me some weekend free time :-) thanks -JP here is the error that i am getting System.NullReferenceException: Object refe ...Show All
GCParris VB 2005 Compiler Optimization Discussion
There's been something percolating in the back of my mind. I come from a computing environment that preceeded windows and the Intel Architecture and instruction set. n comparison to the instruction set that i'm used to, the Intell instruction set looks like a house wreck which may or may not be important to the discussion at hand. Everyone knows that moderators agree on everything and that in moderator space we just stand in love ...Show All
Yaramala73 Visual Basic and Visual c++ install doesnt work!!!!
Recently i have tried to install visual basic and visual c++ setup but about 5-10 mins into the setup/download it says "this program has encountered an error and needs to close, please tell micosoft about this problem" and gives me a send report option. i sent the report but there has been no difference in the program and i still cant install it, it is all because of the microsoft .NET Framework 2.0 beta download, wich is where it says the probl ...Show All
Sianoosh ADO.NET Hell
There was a time in my not too distant past that I could open a database with ADO, query out some data, work with it, and update it. I have had VB.Net for a little over a week and I can insert data into a table. I can clear out a table. What I can't do is is iterate through the rows and update the table. I am close but I am missing a piece. From what I have read I want to create a connection, adapter, and a dataSet. ...Show All
David Makin Changing screen resolution with VB 2005
I'm having a difficult time converting a Windows API call that works fine in VB6 to run in VB 2005 (Windows XP with SP2 in both cases). I reduced the problem code down to its core which is below. I'm trying to change the screen resolution with the ChangeDisplaySettingsEx call; the idea is that on entering the program it shifts to high resolution and at the end it restores the original settings. I left the restore part out because I get the same ...Show All
Naqshekhayali Determine TopMost Window on the Desktop
Hi All, I have a tricky one (well, tricky for me) that I am having trouble finding a solution for. Here is the problem; I have a Form that is open and a Notify Icon. I want to be able to click the icon and have one of two things occur depending on the current state of the form. If the form is the Top Most (i.e. on top of all other normalised or maximised Windows) I want to hide the form. If the form is NOT the Top Most (i.e. behind a ...Show All
George Bolsch Call
Hi, I have a question. Wich is the performance difference between using the word 'call' for calling a sub and just use the name of the sub. Hi, There is no performance difference. I think this statement is still being retained since VB has evolved over the years and it is required for compatibility in case of upgrades and VB.NET/VB2005 do not really need it as such. Here is the definition from MSDN anyways: "You are not required to use the ...Show All
maria_tachi Concatenating Full Name
Using this SQL statement, how can I concactenate the FirstName,LastName and MiddleName using the text values inputed by the user to come up with the value of FullName with this format LastName,FirsName MName Dim str As String = "INSERT INTO PATIENTS(FirstName,LastName,MName,FullName)VALUES('"&tboxFirstName.text&"','"&tboxLastName.text&"','"&tboxMName.text&"', ) thanks.... ...Show All
Julien T Threading issue (i believe) / passing a variable out of a thread
hello all! i am new to the forums and i have been programming in VB.Net for about 2 weeks, forms based for a week. I have this code Public Sub run() Dim i As Int32 Dim bytes(1024) As Byte ' Loop to receive all the data sent by the client. i = net.Read(bytes, 0, bytes.Length) While (i <> 0) ' Translate data bytes to a ASCII string. D = System.Text.Encoding.ASCII.GetString(bytes ...Show All
