Answer Questions
Dan Winn - MSFT Hide window
How can I hide a window knowing his process ID I am writing a program which opens another application with the "shell" command (so it's easy for me to get the procID). Once it is running I want to hide or show it when needed by pressing a button in my program... How can I do it Thank you I didn't write the program, I know I can hide it on startup with shell("Myapp", vbhide), so I thought it is ...Show All
Struggling_Bill Connection String in Module
Hi, I'm currently working on an application that has only one Form + 2 Modules. In one of my modules i need to have access to 2 Access DataBases. I know there are some objects we can add to our forms to gain access to databases, but I dont want my form to have access to the databases, just one of my modules. Is there a way to do that or do I need to use the form thanks a lot for helping. Its been a long time since I worked with DB. ...Show All
ThomasDL What happend to Right & Left
Hi everyone I just tried to manipulate some strings in VB.Net, but what happend to Left() and Right() and of course Mid(). It seems that these functions are gone, but which one can I use Or is there now a totaly diffrent concept behind i Thanks for some advices. . Otherwise, depending on what version of VB.Net you are using, you could also use: Microsoft.VisualBasic.Left( STRING , INTEGER ) Str ...Show All
soccerjoe SQL & Access databases in one project
I have a VB 2005 project in which I have created two datasets...one with a SQL connection and the other with an Access database connection. I have a table in the Access dataset that I need to update with SQL data from the OTHER dataset. What is the best way to approach this 1) Using tableadapters (somehow) 2) Make all of the tables SQL tables 3) Open the Access connection, use an OLE command to traverse through the records, save the stu ...Show All
spb622 RichTextBox
I have a below code in my program: Friend WithEvents RichTextBox1 As System.Windows.Forms.RichTextBox <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() Try Me .RichTextBox1 = New System.Windows.Forms.RichTextBox Catch ex As Exception MessageBox.Show(ex.Message, ex.Source) End Try I get the message: “Overflow or underflow in the arithmetic operation”. There is the er ...Show All
Pradosh GDI+ Questions
I have this beloved old VB6 program that has been converted to a sleek new vb2005 program. It's name is "Color" Color is a utility. It will sample pixels color anywhere on the desktop. It also gives me the x-y coordinates for a given location. It gives me the RGB color value in hex and decimal. I find that I used Color to measure dimensions a lot. and that I'm always having to(x1-x1) and (y1-y2) and awful lot. It's natu ...Show All
Sergey_12345 [VB6] Large number of environment variables cause crash
Environment variables If I create a large number of dummy environment variables ( to simulate client issue) my VB6 application crashes. The application does not request any environment variables directly so could this be a memory issue. Dr.Watson on my machine shows ChildEBP RetAddr Args to Child 0013d824 74124608 0013d84c 741a36cf 0013d854 ntdll!KiFastSystemCallRet 0013ffb8 00414d9e 004153c4 7c816d4f 0032 ...Show All
Veljko Property not visible
I have created a form with a defined property called InputSpread. Imports System.Drawing Public Class ImageForm Inherits System.Windows.Forms.Form Private cr As FarPoint.Win.Spread.Model.CellRange Private bmap As FarPoint.Win.Picture Private MyBitmap As Bitmap Private myInputSpread As FarPoint.Win.Spread.FpSpread Private ptSta ...Show All
Jan-Cornelius Molnar getting files from FTP
Hey, I got a Windows application that processes Excel files and transfers all data to a DB. These Excel files at the moment are being sent to Malta from Germany via FTP........ the user copies the files to another location (as the FTP directory is not accessible) and then browses for them using an Open File Dialog.... the application then does the processing needed! I would like to automate this a bit more. 1. How can I access the FTP server (NO ...Show All
Herv&#233; ANCHER Question on VBA, Excel, and a copying to a separate program
I worked at a company before where an employee with a little bit of a programming background created a program that would copy information from Excel, cell by cell, and paste it into another program's window running beside Excel. I 'think' he used VBA to do the prgramming, but I'm unsure and want to see if anyone agrees that VBA is capable of doing this. Basically the program would copy a cell in Excel, alt-tab over to the other wind ...Show All
John Morales Help needed for beginner
I am writing a program, of which part is to copy all files, folders and subfolders from a provided source location to destination. When I run the code as shown below, if there are more than 2 subfolders in depth, or the source is on a CD then I recieve the following error: "An unhandled exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll." "Additional information: Access to the path 'C:\New Folder\Autorun.inf ...Show All
Kieran Snyder Can't start appliction with sub main
I tried to start my application off with module1, just as a test to see if modules worked the same. Here is my module Module Module1 Sub main() Dim frm As New Form1 frm.Show() End Sub End Module Error 1 Protected types can only be declared inside of a class. C:\vs2005Projects\ModuleAttampt\ModuleAttam ...Show All
j22 auto line fold over
I notice some snippets have an _ character that breaks up long code lines into segments that display in the window without using the right/left arrows all the time. How do I turn this feature on I tried entering _'s manually. Doesn't work. I think the proper term is "wrap-around" In VS, under Tools select Options. Drill into the Text Editor node and select Basic. Her ...Show All
spelger Can NOT add Common Dialog to VB5 Toolbox
May 1, 2006 Subject: Windows XP Media Center Edition 2005 can not run Visual Basic 5 programs with a Common Dialog Gentleperson: I contacted Visual Basic Wish, and they said that they could not help me. They suggested that I contact you. If you can not help me, please send it to the right section, VB 5 programs were written on Windows 95 with Microsoft Common Dialog Control 5.0. Present computer has the above system with Mic ...Show All
lvn assistance: tring to setup Visual Studio's 9 pro, 16 bit subsystem error, WHY??
everytime i try to run the install wizard I get an error box that telas me 16 bit subsystem error. I dont understand why this program would be giving me that error unless i'm missing a file in the setup that interfaces between the 64 bit my computer uses and the 16 bit setup wizard but even that i dont know how to fix. Any help would be appriciated. Thanks Comet87 I would be almost certain that you machine is a 32 bit processor and that t ...Show All
