Ken Hwang's Q&A profile
Visual Basic Show text box text in another text box, on another form (VB6)
Hi I have created a calculator that shows an end figure in 'txtResult' on 'frm1' (result is declared on frm1 as long) I have added another form, 'frm2' to the project, with a text box 'txtResult2' 1. Do I make declarations on frm2 2. How do I copy the contents of 'txtResult' into 'txtResult2' on the new form 3. Can i use the same text box name on both forms Any help with code etc. would be much appreciated. These forums are for VB.NET and there are better places to find answers for older versions of VB. Maybe the VB6 newgroups - http://msdn.microsoft.com/newsgroups/default.aspx dg=micro ...Show All
Visual Studio Team System Beta 3 Refresh: Cannot add users to team project when client is disconnected from DC.
Hi! We have noticed that when administering TFS from a client machine that is temporarily disconnected from the DC of the TFS domain (or a client maching that is in another unrelated domain or workgroup for that matter) it is impossible to perform user administration such as adding users to a TFS group. The reason is that the account selection dialog box only allows selection from the local machine and any domains to which the client has connectivity. If the client is a laptop for example that is part of the TFS domain but currently running in a different location, only account from the local user store of the laptop will be availa ...Show All
Visual Basic 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 natural that I'd like to use Color to measure anywhere on the desktop or more accurrately what I'm seeing in the moment. So tonight I've been playing with GDI+. It's no problem to: dim g as graphi ...Show All
Software Development for Windows Vista Change Design Surface Background Color
I'm embedding a workflow designer inside of my application. I based this off of the Designer ReHosting sample. It is working just fine. However, I absolutely despise the blue'ish designer surface that my workflow appears on top of by default. Is there a way to change this design surface color Sounds like a very trivial problem, but I've yet to figure out how... Thanks, Mark I have been trying to mess with the themes, but I still have been unable to change the color of the design surface. I have been able to change the background color of a specific activity quite easily. I'm not intereste ...Show All
Software Development for Windows Vista System image lists and sizes
Is there a reliable way for an app to determine the size of the icons that Vista is displaying on the desktop I'm not sure if this is a bug or, more probably, an opportunity to learn something new. As a developer of icon software, it's frequently important to know the current size of the desktop icons. There are a couple of ways to check this. I like to get a handle to the system image list (SHGFI_LARGEICON) and then query the imagelist for the size of its images. I'm running under build 5308. Video is set to 32-bit color and 1280x1024 resolution. My method of querying the system image list (large) indicates 32x32 images. The ShellIcon ...Show All
Visual Studio Express Editions Create a new database programatically?
Is it possible to create a new SQL Express database progamatically from VB Express It is easy enough from the IDE, but I want to determine the schema dynamically based on user input. I have not found this discussed in Help or other articles. Can anyone point me in the right direction Thanks, --Mable Yes! I could have read Help files for a month and not figured this out. Thanks for taking the time to help out a stranger. --Mable ...Show All
Microsoft ISV Community Center Forums MS Office document and image writer print driver
Besides removing this feature from Office during setup, is there a process to remove this virtual printer from 300 users with roaming profiles on an active directory network We are having an issue with this printer assuming the "default printer" selection for our users. As a work around we have changed their default printer, but after they reboot or log off / on it has defaulted back to the MS Ofc doc and image writer printer. Per our support engineer: Thanks for using ISV Community Forum, according to your problem, I’m wondering whether you can simply log on the machine as administrator and de ...Show All
Visual C++ SxS Issue? R6034.
Hello, I've been having a problem for nearly 3 hours where I've spent my time looking through manifest examples, reading forums, running through configuration and still to no avail, my program blows up. It's giving me the, as I have seen, common error: R6034, "The application has attempted to load the runtime library incorrectly. Contact support for more information". This happens when it attempts to load my MFC dll in my MFC application. The manifest IS embedded in both projects and I have made sure that no immediate manifests are overriding the imbedded ones..that seems to be the common error.&nbs ...Show All
Visual Studio Express Editions beginner writing program
Ok I am writing a program that takes 3 grades and performs the sum of them and compares to 189. If the total sum is higher than 189 it displays the score and pass. If the score is less than 189 it displays the score and fail. The problem lies in that in the fields where i input test scores it should only take numbers, but the program actually lets me put letters on it. If i put a letter and try to calculate the program crashes. I wanted to see if I could actually make the program so only numbers can be placed in it. Here is a copy of the source file: Public Class Form1 Inherits System.Windows.Forms.Form # Region " Wi ...Show All
Windows Forms Newbie Question
I come from a java background. I am currently developing a mailer program. What I want to happen is when the application starts the GUI must FIRST display and then the mails must be sent and the GUI gets updated as this takes place. The app is sending the mails but before the gui gets displayed. I think the problem is as follows. In my main method is the following code myMailer.Mail(); Application.Run(myMailer); If I put the Mail myMailer.Mail();  ...Show All
Visual Basic Using a for loop to remove a string from a collection gives me an error.
My code. I get a list of files from an ftp server and only need to download the ones that meet a certain file mask. For I As Integer = 0 To _myFileList.Count - 1 If _myFileList(I).Substring(0, 7) <> strClaimsFileMask Then UpdateStatusBox(_myFileList(I).Trim & " is not a valid professional " + vbCrLf + _ " file and has been removed from the collection." ) _myFileList.RemoveAt(I) End If Next I tried putting a I = I -1 to hadnle the fact that the collection lost one but it did not fix it. It would be nice if we could see ...Show All
.NET Development DataView reporting incorrect view of datatable: KB831013
I have a datatable that is cached on a sliding timeout of 20 minutes. I have created a Find method that queries that datatable in memory utilizing a DataView and returns that newly constructed DataView. The find method gabs the datatable out of cache everytime and constructs a new dataview and then applies the appropriate row filters to it before returning that dataview. Dim dv as DataView = new DataView(dtFromCache) dv.RowFilter = "somefiltercriteria" return dv I am running into a problem where occasionally this find method is executed in a loop many times (>100). After the loop has executed, and I call it one fi ...Show All
SQL Server DTSExec and Logging to Windows Event Log
I am trying to use either DTExec or DTExecUI to run a package while logging to the Windows Event log. This purports to be supported based on books online. I have tried passing the CLSID and the ProgId on the command line and always get a message about the logger parameter being invalid. I am using a command line like this: dtexec /FILE "C:\Etl.dtsx" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING EW /LOGGER "DTS.LogProviderEventLog.1"; /SET "\Package.DestinationDatabase";"Test15-1Warehouse" /SET "\Package.SourceDatabase";ATEST15D1 Message I get is: Argument "DTS.LogProviderEventLog.1;" for option "lo ...Show All
.NET Development How to Hide original IP while using HttpWebRequest/Proxy support
Hello friends, I am developing Windows Application and using HttpWebRequest. My requirement is, While sending a request to a URL, I want to hide my IP address, or I want that the requested URL gets some other IP from My request. Can anybody suggest how to do this Rgds, Kiran Suthar. Well, not by using HttpWebRequest, that's for sure. Spoofing IP addresses requires manipulation of the underlying TCP/IP packets. HTTP sits on top of that protocol. In any case, spoofing IP addresses is a tactic generally used by spammers, hackers, and phishers. I'm interested in why you want to use methods employed by such people ...Show All
Visual Studio Express Editions Newbie question, OOP
Hi, I just downloaded VB Express 2005 and started the basic VB tutorial; good learning tools by the way; is Visual Basic an Object Oriented Programming Language how much of the OOP Paradigm is Incorporated in VB2005 can I create classes, objects, public and private properties, methods, method overloading, class methods, inheritance, etc. I’m coming from Delphi 6 world. Thanx, Guillermo hi, yes you can do all that in vb.net http://www.programmersheaven.com/2/VB-NET-School hope this helps ...Show All
