JimTan's Q&A profile
Visual Basic Web Browser project
I am working on a very simple browser, mainly for quick web surfing without the need of menus, favorites, and other fancy features seen in other browsers. The problem is, im quite new to this programming language, and i barely got anything out of what little time i had in Introduction to Computer Programming (using Visual Basic 6.0) before being pulled out of that class to make up a required credit. Im clueless as to how to get the WebBrowser object to respond to the input in the AddressBar, and display the site the user types. Any help on this would be really greatful. Thanks yes :-) Me .AddressBar.Navigate(Me.AddressBar.Navigate) 'wrong! Me .theWebBrowserControl.Navigate(Me.AddressBar.Text) 'right! you need t ...Show All
Windows Forms apply WinXp visual style to winforms
hi all. i'v tried the code from the msdn site,regarding " How to add Visual Styles (the Windows XP look and feel) to your C# ", but when i build my project i get an error msg saing: "could not find the "Microsoft.Windows.Common-Controls, Version=6.0.0.0,Culture=*, PublicKeyToken= 6595b64144ccf1df,processorArchitecture="X86",Type=win32" **i'm using WinXp and VS 2005. It will affect anything that XP impacts. Also be aware that the controls must use FlatStyle.System for FlatStyle otherwise the OS settings are ignored. Michael Taylor - 12/6/06 ...Show All
Internet Explorer Development reproducible Access Violation closing x86 version of IE7 on XP Pro x64
There is a reproducible 0xC0000005 Access Violation in IE7. Simply launch the x86 (32-bit) version of IE7 on Windows XP Pro x64 Edition, then close it by clicking the X in the upper right corner to induce the crash. This problem doesn't occur with the x64 version of IE7, or the x86 (32-bit) version of IE7 when run on x86 (32-bit) versions of Windows XP. This type of problem is almost exclusively caused by buggy plugins. Try starting IE without add-ons ( http://www.enhanceie.com/ie/troubleshoot.asp ) ...Show All
Windows Live Developer Forums Robot Invaders - Weekend Madness & $200 Prizes
Invasion of the Robots Contest—Weekend Madness! Build a Robot by Monday and you could be one of 5 people to win $200.00 Who Will Win The 1 st 5 people that submit their valid robot entries, which means: Submitted between today 8/9 11:00am PST and 8/14 11:00am This is for new Robots, those that have already been submitted will not be considered Submitted correctly means: Step 1: Build it, host it, and make it available from the time you submit to the time Weekend Madness closes (11:00am 8/14) Step 2: register your robot with http://gallery.live.com , Messenger, Bots, Submit Step 3: https://www.robotinvaders.com/main/Register.aspx Each person is eligible for only 1 Weekend Madness prize ...Show All
.NET Development How to create a custom .NETProvider to be used in SSIS
I am wanting to create a custom .NETProvider to access a database which does not have a current ODBC or OLE DB provider. I have followed the example MSDN VB.NET example (see http://msdn2.microsoft.com/en-gb/li...697(VS.71).aspx ) and created: .NETProvider called DotNetDataProviderTemplate.dll and the related Sample.exe program which I have successfully complied, created a package, installed and tested on a virtual pc ... all works exactly as I would have expected. Now I come to the problem: How to add this custom .NETProvider to an Integration Services Project created under the SQL 2005 SQL Server Business Intelligence Development Studio All VS2005 gigemboy on th VBForum kindly pointed me in the right direction to ...Show All
Visual C# performance measurement tools in VS2003
Hi, I am using VS 2003. Is there anyway to find out how long it takes for a given function or some line of code to execute I can use DateTime but is there any built-in mechanism in VS2003 for performance measurements Thanks, Don't use timers in code, this will cost you alot of time to putin and to maintain. What you want is a profiler, this will measure all your code and give great resultats that you can sort, filter and more. A free profiler is Nprof , nice, free and easy. When you want a full profiler with just some extra compared to Nprof i suggest ANTS Profiler . Here is a full list of available tools: NCover NDepend ANTS Profiler .NET Memory Profiler AQtime .NET Editio ...Show All
Gadgets Setting and gadget main.html
Hi guys, I have a main.html which have a dropdownlist. My settnig page have a text box for me to enter the text of each element in the drop down list. after i clicked "ok" and store those values in System.Gadget.Settings, i want the values to be shown in the dropdownlist how do i do a refresh or populate the main.html is there any way i can get the document object of the gadget from the setting page Please help thanks!!!! In your main.html, capture the Settings closing event and then add the options to your drop down. System.Gadget.onSettingsClosed = settingsClosed; function settingsClosed() { var tmp = System.Gadget.Settings.readString(" <myOptionSetting> ") ...Show All
Visual Studio Tools for Office deleting checked items from listview in c#
Hi, I'm trying to delete records which are checked in te listview. How can I do this Thanks The ListView property CheckedIndices will give you a collection of integers representing the indexes of all the checked items in the ListView. The ListView property Items gives you access to the collection of items in the ListView and ListView.Items.RemoveAt (index) will let you remove the item at a specified index. Unfortunately you can't just walk down the CheckedIndices collection using foreach. When you remove an item from the collection, that changes the indexes of all items above. The CheckedIndices collection is updated to reflect these changes but the enumerator used by foreach isn't. Here's one way to work ...Show All
Windows Forms how can I have different events?
hello every body Im have a problem with button array event Im try to generate 10 buttons using Button[ ] butarr and 'for' statement for example for(int i=0;i<10;i++) { butarr =new Button(); butarr .name.... .... /// but I can not make different click event for these buttons //becase I want to take diferrent rows in dataset into a //textbox depend on what button have been // click,number of buttons are also depend on number of // rows in dataset butarr .click +=new EventHandler (butarr _click) } any one can help me in this problem , thank you any way DongMT, VietNam Code Snippet try { Windows::Forms::Control^ senderCtl = (Windows::Forms::Control)send ...Show All
Visual Basic Is it possible to host a .NET control in VB6 form?
It looks like most questions in this forum go unanswered, so hopefully someday before I retire I can check back here and find an answer. I am trying to use a component created in .NET on a VB6 form. I've seen information about creating type library's from .NET dlls that you can register so COM can see them, but thats a whole different monkey from turning a .NET dll into an ActiveX control. There's a CTP version available on our blog at http://blogs.msdn.com/vbteam/archive/2006/11/02/interop-roadmap-usercontrols-mdi-and-data.aspx . If you've got any questions on how to use it please post them here and we'll do our best to answer them. Thanks, Jonathan ...Show All
.NET Development Drawing on web pages
After way too much research and study, I have not been able to determine how to draw on web pages (not forms). Is it possible If not, how do I launch a seperate form, and can I draw on that (as the client) Thanks in advance. Martin, Thanks again. I went to the referenced site, and that sure does look like we're getting close. I cut and pasted the simple "oval" line, inserted it into the <body> of an aspx, but got an "unrecoginized namespace" at the "v" in the opening tag, and couldn't figure out how to clear it. I am running IE version 7, but for some unfigured out reason, when the aspx runs, it reverts to IE 6. , although it reports itself to be 7.0. Either way ...Show All
.NET Development .net 2.0 WinForms Application suspends for 6 min at startup
Hi fellows, currently I do have a very strange problem with getting a .net 2.0 application to run smoothly. Used OS: Windows 2003 (1.0/1.1/2.0/3.0), Windows 2000 (1.0/1.1/2.0) The Project has been converted from a 1.1 WinForms project to 2.0 by Visual Studio. After compiling the project and all dependencies I start the executable. There is some activity on CPU and memory for about 30 seconds (loading static data). After that the whole application becomes totally unresponsive; the application main window (which already raised the "Load" event) is only an empty rectangle on the screen. The application stays in that state for about 5 to 7 minutes and then recovers and shows the mainform. Code-wise there's nothing left to co ...Show All
Windows Forms How do I implement copy/paste listview which has multiple colum?
Hi all, Is there anyway properties that I could turn on to allow copy/paste highlight items from listview which has multiple columns Best Regards, Here we go. It works string data = "" ; ListView listView = lvDifferences; if (listView != null ) { foreach ( ListViewItem item in listView.SelectedItems) { string line = "" ; foreach ( ListViewItem . ListViewSubItem subItem in item.SubItems) line = StringUtil .Append(line, "|" , subItem.Text); data += line + "\r\n" ; } Clipboard .SetDataObject(data, true ); } ...Show All
Visual Studio Cannot Open .sln (Solution File)
I installed Microsoft Visual Studio 2005 Version 8.0.50727.42 (RTM.050727-4200). Other information: Microsoft .NET Framework Version 2.0.50727 Installed into: Windows Server 2003, Standard Edition, Service Pack 1 Steps to duplicate the error: 1. Click Start\All Programs\Microsoft Visual Studio 2005\Microsoft Visual Studio 2005 2. Click File\Open\Project/Solution 3. At the Open Project dialogue box, navigate to the location of *.sln file, select *.sln file, click open. I get this error: The application for project 'C:\vbnet03sbs\chap01\MusicTrivia\MusicTrivia.vbproj' is not installed. Make sure the application for the project type (.vbproj) is installed. ------------------------------------------------------------ ...Show All
Visual Studio Express Editions Forms in Visual Express
I have start creating a form even when I am begineer. I was watching a person @ Microsoft. When I try to right a script there is no scroll bar that makes it easier for user to scroll and pick the task of the this rather then writing the whole code but when I type Me. no scroll bar comes. Why and How can I fix it. I think something is wrong with my code. Ok, How do u make the webbrowser open the home page in the form. Using MS Visual C++ Express. ...Show All
