Answer Questions
nkat2112 Dialog box Disappears
I'm having problems with a disappearing dialog box. When I run the flollowing DeleteFile, a dialog appears then quickly disappears! My .Computer.FileSystem.DeleteFile(frmMaster.dgvL.Item(myfilePath, FileIO.UIOption.AllDialogs, FileIO.RecycleOption.SendToRecycleBin, FileIO.UICancelOption.ThrowException) If I have a list of files to delete in a loop, the first dialog disappears, but subsequent behave normally. I have inser ...Show All
tstdemo issue with .papersize.rawkind is it a bug?
Hi, Can anyone help with this please I am trying to set the paper size for the print page method in code, however, It fails to change I have tried many properties and ways of setting it but it fails Basically I have a app that saves the page size to a xml file as an interger value that represents the paper size. Eg 8 = A3. I cannot seem to change the default value of the PoPrintPage_Printpage method from the value of 9 (A4 ...Show All
DSull Add My.Blogs at VS
I am interested by the article of Chris Mayo (27 jan 2006) and I would like to add a blog has my application carried out under VS 2005 Standard Edition . I carried out Getting Stated indicated : http://msdn.microsoft.com/VBasic/default.aspx pull=/library/en-us/dnvs05/html/myblogsgetstart.asp But at stage 2 , VS refuses with the message : "Installation stopped because the directory for the ProjectType value did not exist. The proj ...Show All
salvoc minutes to hours and minutes
Hi everybody! for example; label1.text=1655 --minutes I want to see this like; textbox1.text=27 --hours textbox2.text=35 --minutes How can I do Try this: Dim allMinutes As Integer = 1655 Dim hours As Integer = CInt (Int(allMinutes / 60)) Dim minutes As Integer = allMinutes Mod 60 You can also use a TimeSpan object: Dim ts As New Timespan(0,16 ...Show All
J2002Rogers line break (next line) in textbox
There is 2 problem I'm facing now. 1. how to pass each word in a line of text from the user's input textbox to an array i.e. Sting in textbox = 'I am a girl' when pass to array, I'm expecting ('I', 'am', 'a', 'girl') 2. how to determind a next line in a textboz this is mean if there are 3 lines in a textbox, i want to pass each line to 3 different string. Tha ...Show All
bk01 system.InvalidOperationException
Visual Studio 2005 Professional Edition: My app runs fine on my development computer, but, bombs out on the 3 other computers that I installed it on. It installs OK, but, upon execution, it immediately aborts with a System.InvalidOperationException. Visual Studio 2005 Express Edition: My app runs fine on my development computer, but, bombs out on the 3 other computers that I installed it on (all 3 were runn ...Show All
nospam123 Searching in Sharepoint using VB.NET
After a lengthy search of the KB and forums I have not come up with the answer for this problem. We have a Sharepoint Portal installation as well as WSS (both 2003 SP2). I have a VB.NET app that is a wizard that generates an xml data file for use with Infopath after it has been filed, but before I start the wizard I need to see if the document (this is a document control process app) already is filed as being changed. I want to be able to rec ...Show All
webguru72 My form uses Listbox and ComboBox and records are not saved in the database
Hi, I am new to VB and I need to write an application where users will pick values from ListBox and ComboBox to fill-in the records. I can pick some options and when I press the 'save' button, I get a successful message. I can move from record to record and see my changes were 'saved' but when I exit and preview data or restart the application, the data is back to the original. I have set the Dataset property to 'Do not Copy' (I have trie ...Show All
Mark Schmidt-MSFT toolbox
Where are items in the toolbox stored Collectively known as 'The Shed' . If you are asking systemically, they are framework DLLs stored in <windowsdirectory>\Microsoft.NET\Framework\{Framework number} In this case, V2.0 something.... ...Show All
Mickey Gousset Getting the last number of a column
How can I get the last number of a column in a certain table of my database.I had a form that was bounded to this table that has an autonumber field.To be able to add another record and automatically add the autonumber, I want to get the last value in the table to be able to increment it by one when i click the add new button.thanks.... It's not TOP, sorry, it's MAX. Select MAX(id) from tbl where id ...Show All
Syntosys Using VBA to ftp a file
I am having a heck of time getting this to work and would welcome any suggestions. All I want to do is FTP a file from one server to another using a batch script that I wrote. When I execute this code, it attempts to open up a command prompt on my local machine, not on the server where the batch file resides. Option Compare Database Option Explicit Function testftp() Dim c_test As String & ...Show All
Jumanji_24 Setting Decimal Place In A Textbox
VB2005 Express Hi All How do I set the decimal place in a textbox as #.## also setting the datatype to numeric in the textbox properties. You can try the following: Select your textbox. In the Property browser there is (Databindings) - (Advanced). In this Advanced field, you can click on the "..." button, which will open the Formatting & Advanced Binding Window. In it you can set the Format type to Numeric and spec ...Show All
bmilano SignTool reported an error 'An internal certificate chaining error has occurred.
I am new to code signing. After I swtich from the temperary test certificate to a real certificate from a CA, when I publish, I got two errors "Error 1 Cannot publish because a project failed to build." "Error 2 SignTool reported an error 'An internal certificate chaining error has occurred. '." and when I checked "Sign the assembly", when I build, it asks for a password, after I entered password, it says "Cannot find th ...Show All
kev_mckee Registry Key Class
When I use the following statement in VB2005 Dim rk As RegistryKey = Registry.CreateSubKey("Dan") Visual Basic returns an error saying tht CreateSubKey is not a member of the Registry or RegistryKey Class. I have imported the Microsoft.win32 Could somebody please tell me why it says this thanks Yes thats what i've got. Somethings not right I have triple checked my code. Even made a new ...Show All
stangster67 ListView flickering
Hello all I have a listview that I am adding image thumbnails to from a directory on disk. Because the directory has several hundred image files, I am using the .Refresh() method to show the thumbnails being added real-time (otherwise the application will take several seconds before it displays all the thumbs at once, not what I want) but the problem is there is way too much flicker everytime the listview is refreshed. Any suggestions Thanks. ...Show All
