Answer Questions
Leandro Rodrigues Save file in My Documents
Hi, I would like to know how to save file in my document folder in vb. Since the program working with different user, the my document location must be retrrived from Windows. Please adviced. Thank you. Kin Hi, try retrieving the directory through SpecialDirectories object: Dim myDocumentsPath = My .Computer.FileSystem.SpecialDirectories.MyDocuments Andrej Dim MyDocs As IO . DirectoryInfo = My . Computer . FileSystem . GetDirectoryInfo ( Environment . SpecialFolder . MyDocuments ) Dim MyDocsPath As String = MyDocs . FullName ...Show All
Courtney Goodin open access
Hi how to use AppActivate( "Untitled - Notepad" ) if i want to open one access db call pcg reards alvin Sorry Offcourse i shall use Process.Start alvin ...Show All
KimberlyL whe "running programs that are aoutside my own."
i wanna know were i can find someone to answer this question please. How to Run programs that are aoutside my own no erros just the same ***! any way i found my solution with talldude thanks! here is my other post: Running programs that are outside my own - MSDN Forums if you read it talldude posted a code http://forums.microsoft.com/forums/ShowPost.aspx PostID=620573&SiteID=1 that has the solution thanks again. And could you tell the mod on the post i tould you above that this is not a duplicate post please because i came here to ask where to post the other and you tried to help me how was i suppose t know that it's embaracing to have a post locked down... ...Show All
Alix VBS Script Help
Hi, I'm not sure if this is the correct forum or not. If not, please let me know where to post. I would like to create a script that will rename files based on a users input. So far I have a basic batch file that will do the job, but I want something that they wont have to edit. The files needing to be renamed are usually something like 06M123AB.000 where the 123 would be the only thing renamed in the folder. I would like to, if possible, let the user input the old numbers (123) then input the new numbers (456) and have all files in the current directory renamed. I was thinking a VB Script would be better for this. Thanks for the help. ...Show All
Jocker23 Change BackColor
Why does this not work The form changes to color.Aqua, but the picturebox, pbBlackout stays Black. Me .BackColor = Color.Aqua pbBlackout.BackColor = Color.Aqua I'm not using an Image, The color Black is set at design time. Dear Sir, Try the configuration by the way of Properties window.It should be changed.OK. Bye. Mur it Hakan C L At Last!! Figured out what was going wrong, for some reason, can't think why I had imported a plain black image !! Once removed all works fine! Thanks for all the help. How are your setting the picturebox background to black Are you also displaying an image ...Show All
Detisch exception in cropping the image with webcam
Hi, I'm developing an application in which i'm using a webcam to capture the image.I'm getting an error while copying the image from the captured window to another form. The process is i have a button and a picture box in one form (form1).once i click on the button the capturing window will open which have 4 buttons startpreview,stop preview,capture image and crop image everything is working fine when i was capturing and cropping the image for the first time.but when i click the button in form1,and do the process the exception occured in cropping here i'm sending a part of code and the errormessage Private Sub cropImage(ByVal filName As String) ...Show All
Steve Hempen Adding Bytes
Ok I have a rather large file I have created (40mb) and I want to stick same data in the middle with a program using the BinaryWriter. How can I do this cause if you do the BW.Write method itll only overwrite the data not add new data. I would suggest that instead of loading everything to memory you create a new file instead. You can then do a block transfer using a smaller buffer from the original file into the new file up to the point before where you want to insert the new data. After you insert your data, you can then then continue with the block transfer. Needless to say at the end you just delete the original file and rename the temporary one. Hope this helps, Abel. 40MB is pushing i ...Show All
OmegaMan Excel Macros/ Protection / HideUnhide VB command
Here is what I am doing I am using the HideUnhide command for of course HideUnhide rows. Here is a simplyfied version of what I am doing I have rows 1-20 and let's say when I input the number 5 in an specific cell (let's say A1) I want rows 15-20 to hide. This is easy and I can do it, but when I lock any of the cell on rows 15-20 and run macros, then it gives me an error. It seems that since the command HideUnhide does not have priority over lock cells it doesn't allow me to do it. in other words, if I lock cell A18 I cannot use the HideUnhide command because it would send an error. Is there a way to do this I have asked many people but noone seems to know how. Pierre These forums ...Show All
Manuel5 Picking out the year
Can anyone tell me how to pick out the 4 digit year from a date I'm using VB.Net 2003 thanks tattoo or just get the Year property: date.Year which will return the 4 digits of the current year date.ToString("yyyy") http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconcustomdatetimeformatstrings.asp ...Show All
akin_l Cannot publish project
Hi there. I am trying to publish a project that is 100% working, so that people can use ClickOnce to install it. Despite the project building and running fine, I am unable to publish it. Here is a cut and paste of the error message: Error 2 SignTool reported an error 'Failed to sign bin\Release\VED1.publish\\setup.exe. SignTool Error: Signtool requires CAPICOM version 2.1.0.1 or higher. Please copy the latest version of CAPICOM.dll into the directory that contains SignTool.exe. If CAPICOM.dll exists, you may not have proper permissions to install CAPICOM. '. VED1 Now, before anyone asks, I have done EXACTLY what is says, I found CAPICOM, checked it's version, and copied into the TWO directories that I found that contain signtool.e ...Show All
vcboy Printing in VB.NET
Does anyone know how to print i vb I have information some textbox on a form which i want to send to the printer. Code Block Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Me .PrintDocument1.Print() End Sub Private Sub PrintDocument1_PrintPage( ByVal sender As Object , _ ByVal e As System.Drawing.Printing.PrintPageEventArgs) _ Handles PrintDocument1.PrintPage e.Graphics.DrawString(TextBox1.Text, _ TextBox1.Font, _ Brushes.Blue, _ 100, 100) End Sub ...Show All
JollyChollie Running 'user selected' applications
Hi there, A fair while ago I started a project, to try and launch a specific set of applications. Not windows programs. Inititally through their own command buttons, then by checkboxes and a single command button, however I could never get the thing to work. Also the application locations woudl have to be the same as on my system which is never the same to any other system I have used. Now I've been asked by a friend to actually make it, I have tried code like this; Dim NameOfProcess As String = "app.exe" Dim p () As Process = Process . GetProcessesByName ( NameOfProcess ) If p . Length > 0 Then MessageBox . Show ( p . Length & " Process(s) Named " & NameOfProcess & " i ...Show All
sumit kr Urgent help needed
hi, well someone did this project for me using vb.net 2003, but there was an error in it, and i don't know much thing about programming so please can u help me fix this please. It'a library managment system , well, the problem is u go to book issue and u issue a book and then u can see that the book is issued and then when u go to return book and type the code he will say that it's returned but it's not returned u can see it by searching it... i want that to be fixed. tanks so much http://met0555.ifastnet.com/Library_Ma1993565122006.zip tanks Are you an enduser of this program If so you need to contact the programmer or the company that provided the software If not, do you have access to the source code for the program Do ...Show All
jstawski PNG for Upload/download
Hi, I am looking for a good picture to describes a button that uploads information to an external device (the device is hardware made by me) and also a picture that describes a download to a device Size = 32x32 any format Many Thanks, Andy You can browse your computer for a ton of icons: shell32.dll has a bunch (there's a lot in the system32 folder). There's also the Visual Studio Image Library installed with Visual Studio at: C:\Program Files\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary (of course, if you are using VS2005...) Use printscreen, and paint, you can combine several, to get what you want. Or use any other editor of your choice. Or, browse for icons in google. ...Show All
sergun XML or a database?
I'm creating a program that basically parses textfiles and stores them into a database for easier manipulation (so I can run queries on a DB instead of parsing/comparing/etc raw text on-the-fly) Currently I am using an Access database to store everything, but now that I realize .NET has such great XML support, I figure this may be a better option. I'm thinking of storing each file into its own XML file then loading the selected file into a dataset and pulling info from it. This is basically what I'm doing now, but instead of XML, it's the Access db. Does anyone have any advice on which method is better EDIT: Wow, I forgot to mention something important. What I wanted to know is, how do I han ...Show All
