Don Tran's Q&A profile
Windows Forms View options when using WebBrowser 2.0 component as directory browser.
Greetings, I am using the webbrowser component as a quick and dirty directory browser in my application. It works fine, but I was wondering how to change the "view" of the browser to "details" Cheers, Ryan Hello Ryan, I have exactly the same problem as you, not knowing how to set the view property (e.g. to "Details"), when using the webbrowser as directorybrowser. In my case, the bro ...Show All
Windows Forms Platform invoke information request
HI all, I am now developing an application using Compact Framework, and I did some search on msdn and I found an articles available at http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/messagewindow.asp and I need to use MessageWindow to perform callb ...Show All
Visual Studio PowerToys for the Visual Studio 2005 Class Designer and Distributed System Designers
We’ve published a set of set of add-ins which augments existing functionality in the Visual Studio 2005 Class Designer and the Distributed Systems Designers. The Design Tools Enhancements add-in provides a common set of features that can be used by both the Class Designer and the Distributed System Designers , such as pan/zoom window and rich formatting commands. The Class Designer Enhancements add-in provides additional functionality for the ...Show All
Windows Forms Handle changes in screen resolution.
I would like to know how to use Screen.PrimarScreen.Bounds to handle changes in screen resolution from the design time to run time. I found that it could be used in the following link, but i couldn't find any more information as to how to use it. I am a beginner in .net Appreciate your help. http://msdn.microsoft.com/smartclient/community/wffaq/default.aspx#adt56jjf supose you want your screen to be 50% the size of the screen.... p ...Show All
SQL Server HELP! - URL Access - Localhost vs. ServerName
We have a confusing problem and need some guidance. We are trying to use URL access to generate and display a report. We have tried two ways--building the URL string and popping up a new browser with the Reporting Services URL access string and simply using an anchor tag and setting its URL parameter to the Reporting Services URL access string. Both options don't work--well, one works for the local server and the other works for client comput ...Show All
.NET Development IDisposable Interface - disposing managed and unmanaged resources
Hi! I'm using VS2005 beta 2 and VB. I would like some help on understanding what is the correct way to use the IDisposble interface. After adding the Implements statement, some code is automatically added in the class. In the Dispose(boolean) method, there are two sections to dispose managed and unmanaged resources. Q1) If a file is opened using one of the System.IO classes, is it considered a managed or unmanaged resource Should I close the fi ...Show All
SQL Server How to join tables?
I have two tables - Item - ItemID - ItemName - SalesTaxCodeID - PurchaseTaxCodeID TaxCode - TaxCodeID - Rate In table Item, I have field SalesTaxCodeID and PurchaseTaxCodeID. Is it possible to select from the two tables so that I can get recordset of columns ItemName, SalesTaxCodeRate, PurchaseTaxCodeRate Thanks select i.ItemName, tcsales.Rate as SalesTaxCodeRate, tcpurchase.Rate as PurchaseTaxCodeRate from Item i inner join TaxCode ...Show All
Visual C# What's the difference between string and String?
What is the difference between string and String Which of them should i normally use Nothing really, in C# the type keywords actually are synonyms for the types. So int = System.Int32 short = System.Int16 and string = System.String. They have the keywords because they are easier to remember and programmers coming from other languages like c/c++ would also be familiar with these types. Anyway, look ...Show All
Visual Basic Date Format
I need to Format my date to look like 06/02/2006 i use this method and it returns the date at 6/2/2006.....Any help for this easy issue ToShortDateString.ToString() You can use the Format function: Dim d As Date = #6/2/2006# MsgBox(Format(d, "MM/dd/yyyy" )) The two M's and two d's force it to show two digits. M is capitalized because lower-case m means minutes. Hope that helps, Jonathan Aneja The VB ...Show All
Visual Studio Autorun does not work
I attended the VS/SQL Server 2005 Launch in Dallas on 11/30. I have been trying to install the software received from this event, but cannot install VS 2005. When I insert the disk in my dvd/cd nothing happens. When I double click autorun.bat nothing happens. I contacted my local support which then directed me to the "event help" and told them of the problem. A week later I get a new CD for disk 2. Guess what, ...Show All
Visual Basic Locking a member Variable in Memory
Variable life time is normally not a problem in VB but but I'm working in the context of a webservice and variable persistence is quite different. In a normal VB program Member variables are the variables common to all routines.... and not declared in a function or subroutine. They are assumed to have a lifetime for the lifetime of the program. In a normal program I can do this: Class Member variable Subroutin ...Show All
Windows Forms How can show the many instances of form opened in 'window' menu like in MSword?
In MSword, if I open five documents, the window menu shows all the five, and when I click the one, that instance opens. How can show the many instances of form opened in 'window' menu like in MSword Any web pages, clue or sample would be appreciated. Thanks, Jil. Hi, If your using a MDI form you could access all forms in the MDIForm1.OwnedForms its an array of forms that the MDI owns... You could then check if its visible or not... ...Show All
Smart Device Development C++ DLL and #define
I have a C++ DLL that I call in VB. Linked to the DLL project is a static library. I need to define 'FIXED_POINT' and I did it by placing #define FIXED_POINT in my DLL project's CPP file (right after the #include's). When I opened some files in my static library, I saw that the code between #ifdef FIXED_POINT was grayed. This means it doesn't see the definition of FIXED_POINT right Where should I place the definition so that the library project ...Show All
.NET Development How to Update Stored Procedures when they have changed
I have an VB.NET 2005 application and SS Express 2005 Database... I update the application via ClickOnce Deployment but have not found a way to update my Stored Procedures (or alter a table structure for that matter) via the automated update process! One suggestion was to "Suck In" the stored procedure as a whole into a SqlCommand.CommandText property and shoot it down the ADO.NET connection pipe Has anyone done this before Basi ...Show All
Visual C++ show a txt file from ftp in a textbox(edit)
I have this code in c# . but I want it in c++ . what is the codes codes in c#: public static string ReadHttpText( String mURL) { WebClient oWeb = new WebClient (); string s = "" ; s = oWeb.DownloadString(mURL); return (s); } Application .DoEvents(); try { textBox1.Text = ReadHttpText( "ftp://username:psword@www.domain.com/filename.txt" ); } catch ( Exception ...Show All
