Lenny Hoffman's Q&A profile
Visual Basic Opening New Applications
I am trying to create an application which can open a web browser and automatically navigate to a certain page. I've already added the line Process.Start( "iexplore.exe" ) How do I make it so it reroutes to a certain adress I know in Command Prompt you can just type something such as " start iexplore.exe www.msn.com " and it will automatically take you there instead of the home page. Can I do this in Visual Basic ...Show All
Visual Basic File I/O speed in VB.NET vs VB6
I read and write a large data structure in VB.net as: FileOpen(1, TheFileName$, OpenMode.Binary, OpenAccess.Write) FilePut(1, Drawings(DrawingIndex)) FileClose(1) Where Drawings is a Structure and consists of other structures, arrays of arrays etc. In VB.net this is almost 10 times SLOWER than the equivilant from VB6 In other words, the same basic read/write operations seem to take 10 ti ...Show All
Smart Device Development VS 2005 Beta 2 Emulator deployment problem.
I developed a simple "Hello World" application for Windows Mobile 5.0 for Smartphone with VS2005 Beta 2. Then, I ran the program in debug mode. The application compiles fine but the deployment fails. Here is the content of the "output" window: ------ Build started: Project: myTest, Configuration: Debug Any CPU ------ Csc.exe /noconfig /nowarn:"1701;1702" /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE;Smartphone /reference:"C:\P ...Show All
SQL Server SQL2005 Database Schema without Assocated Owner?
I was quite happy to see that schema names and database users had finally been separated in SQL 2005 and used it to finally clean up a mish-mash database that hosts a number of tiny unrelated applications. I created a new schema for each little section, and the schemas are all owned by dbo. There is no associated user with the schema. Really it all works great... ...except... from an ADP project in Access! If an object is in the dbo schema, or i ...Show All
Smart Device Development How to Soft Reset a Device programatically
Dear all, Is there any command in VB to Soft Reset the device Please give an advice. Thank you! Michael Koster wrote: Hi You need do add an Imports statement at the very beginning of the file. Add the following line at the very beginning of your .vb file: Imports System.Runtime.InteropServices Thanks! Michael Great! It works like a miracle. Thanks again Michael. ...Show All
Visual Basic Pardon my ignorance.. Visual Basic ".NET" ?
I've been out of the development loop for over 4 years. What is this Visual Basic ".NET" Is it a different version of Visual Basic I've seen Visual Basic 6 and Visual Basic 2005. What is the latest version, and how does Visual Basic ".NET" fit into all of this I didn't see a ".NET" version of VB for sale.. Clearly I'm missing something. Any help or links to more info appreciated! .N ...Show All
Windows Forms Treeview Nodes.Add Problem
I have a problem when I add a child node. When the tree loads the first time, all the child nodes display correctly. If I add a child node, it gets saved to the database, and I clear out the tree (treeview.Nodes.Clear) and repopulate it for the new node to show. However, now the new node I just added, appears in another location and I end up with 2 child nodes with the same name. Any ideas on how to make the treeview refresh cor ...Show All
Smart Device Development transfer data to pda
hi i want to write an application that transfer data from desktop computer to the pda on remote location through the GPRS connection hwo to do that. ok thaks for reply. will i use the normal .netclasses for the network programming as system.net and receive files on pda. and if i want to test that on the emulator pocket pc 2002 with .net will it work. ...Show All
Visual Studio 2008 (Pre-release) Vector Image Format for WPF?
How can I go about creating vector images for use in WPF. I've heard of different XAML export capabilities, but this simply translates the image into XAML markup, which is not a vector image format. Will there be an image format which will be used for vector images in WPF The reason I ask is that it seems rather painful to have to copy/paste the markup for the image into an elements resource section each time I want to make use of that image. I ...Show All
Windows Forms How can I line up labels with textboxes in a FlowLayoutPanel?
You know how in the VS2005 you have those grid snap lines, which let you align labels with textboxes in the middle (the pink line) Well flow panel still dumps everything aligned at the topmost corner for each component, and all the labels looks wierd. I could adjust the top padding on each control, but it's a pain, is there an easier way This question is better suited for the Windows Forms forum. Please reser ...Show All
Visual Studio Team System Mapping between FxCop Rules and .NET Design Guidelines
Is it planned to implement a mapping between FxCop Rules and the "real" MSDN .NET Design Guidelines (Could be a table on some web page or something in the FxCop CHM). Regards Micha I'll take a look at the updated design guidelines, but I don't believe this information ships in it. We did have notations in the source content for the DG that noted whenever an FxCop rule existed for a specific guideline. ...Show All
SQL Server Error Handling with Execute Package Task
I have a main package that calls several other packages using Execute Package Tasks. I also have OnPreExecute, OnPostExecute, and OnError event handlers at the package level to audit the beginning and completion of each package. I want to prevent each task from bubbling up to the package event handlers as well as prevent each task from bubbling up to the main package event handlers. I've tried setting the Propagate variable for each of the event ...Show All
Visual C# Low Performance
Why this code does not take all the performance that a P4 can take The CPU Usage does not take more than 40%, and this code is very slow. It’s a file that contais 100000 lines, and I use o imports each line into a database table. private void ImportarLista( string f) { progressBar1.Maximum = Convert .ToInt32( FileSystem .FileLen(f)); SqlCommand cmd = new SqlCommand ( "Inserir_Peca" , cnTemp); cmd.CommandType = CommandType .Store ...Show All
Windows Forms Bug on VS.NET 2003 Start Page?
Am I the only one seeing this After opening VS.NET 2003, if I roll over anywhere inside the outline of the list of Existing Projects list, at the very bottom where it says "Ready", it blinks at a steady rate. It doesn't appear to use ...Show All
Visual C++ linking problems (invalid or corrupt file)
Hello experts! I was testing compilation programs with dlls. So I have created simple dll with header: int sum(int size) { return size*2; } And I have compiled it. I have also created simple console application using this library. In project options I have added headers path and libs path, but I have linking errors: Linking... C:\Documents and Settings\Jacek\Moje dokumenty\Visual Studio 2005\Projects\mylib\release\mylib.dll : fatal error LNK1 ...Show All
