I intend to create a button to run a specified windows shortcut such as windows + E for explorer, Windows + D for Desktop. and i also want my windows form still to be active after running the shortcut.
I am trying to create a desktop shortcut from vb.net code on a Windows 7 box (64 bit). The following code works on XP, but when run on Win7 I just get a message stating the App has stopped working:
Where do I put the shortcut icon for my mobile application in the Installer project for a Windows Mobile project so that when the cab is installed the icon will show on the Programs Menu?
Is there an easy way to get the corresponding keydata (keycode combination) for some value in that enum? I cannot find one, and creating a switch statement for all those is a bit overkill...The integer values of the enum elements are not keycodes, but some 'unknown' big numbers, so simply casting to int won't work.
I wanted to give my user an option for "Start with Windows". When user check this option it will place a shortcut icon into Startup folder (not in registry). On Windows restart, it will load my app automatically.
I'm trying to extract the icon from a shortcut (lnk file), but I end up with the shortcut symbol in the lower-left hand corner of the image. How can I extract a shortcut's icon without this symbol?
Here's the code I'm using:
Dim ico As System.Drawing.Icon = System.Drawing.Icon.ExtractAssociatedIcon("C:shortcut.lnk")
I'm in the process of trying to create a class that will allow me to create windows shortcut; Im using the following PDF file that gives me the shortcut file structure.
Ive been able to successfully load a shortcut file and parse its Lnk File Structure but now Im on the Shell Item ID List structure but I cannot find the Structure of the ITEMIDLIST anywhere
Furthermore I know I could use the Windows script object, but this is a dependency Im trying to avoid if I can, hence writing my own Shortcut class.
I'm porting code that I wrote for use in a Windows Forms application to a Windows Service, but for some reason, the code that worked in the Windows Forms application is now throwing errors in the Service
Dim wiaManager As WiaClass = Nothing ' WIA manager COM object Dim wiaDevs As CollectionClass = Nothing ' WIA devices collection COM object Dim wiaRoot As ItemClass = Nothing ' WIA root device COM object Dim wiaPics As CollectionClass = Nothing ' WIA collection COM object[code]....
I have a VB.net project that i've published through a click once installation which was compiled in Windows XP the application contains a previous version of True DB grid which is not supported windows 7 so i'm trying to get my application to work in Windows 7 so that the true db grid and other such controls work without any issue. i tried compiling the code in x86 mode
Table 7.1 gives us the U.S census bureau projections for the populations (in millions) of the states predicted to be the most populous in the year 2030. Write a program that allows the user to endter the current populations of the states into an array of text boxes, and gives the percentage growth for the collection of five states. The growth is calculated with the formula: Growth = (projected pop - current pop) / current pop percentage growth can be displayed as Formatpercent(growth). [code] why cant I get the code into bigger windows?
I'm compiling and testing the VB programs in a download from MS of the Windows API Code Pack at url...(which is in VS 2008 and needs to be converted to run on VS 2010). So far I've resolved most of the issues, but a couple are baffling.The code as downloaded for the Taskbar demo refers to icons in the project resources as My.Resources.Green and My.Resources.Yellow and Red. Fatal errors, even though all the help pages say this is the correct way to access them. I got the build to run by removing the "My."; has there been a syntax change between VS 2008 and 2010? When I run the app, I get a message from TaskbarDemo.vshost.exe which says "This demo application needs to register .txt files as associated files to properly execute the Task related features. Filetype is not registered." Does that mean that in trying to debug the app, I have to modify the registry to associate the test program with the .txt filetype?
One of my application is taking a lot of time on Windows 7 compared to XP. What application basically does is it creates some PDF files reads the content and emits on a form and then deletes the files. I ran ANT profiler on both XP and Win 7, and i could notice some differences. On win 7 some CAS related methods are widely called and those method calls were missing on XP.. Is this the reason ? If someone has faced similar issues,
I made a bluring tool of some sort and you basicly drag an area of yuor picture and it blurs that certain selected elipsis.. the problem is THis only works on Winsows 7 Im trying to understand the diffrence but I can't. The PC uses the same graphic card same hardware just a diffrent OS but it wont do that Code. Anyways here is how I blur
Private m_ActiveControl As Point Private m_CurrentPoint As Point Private ileft As Integer
Is it possible to create a form, and controls like buttons, and also assign those buttons to their own scripts by code? The reason I'm asking is I've added scripting functionality to my application for users, I want them to be able to add forms for their scripts
What I'm trying to do is monitor a file and if it exists then then copy it's contents to a database, then delete the file. Currently it only adds the data one time and does not delete the file.why it will not keep adding the data or deleting the file?
A job recruiter asked me if I could take over writing code for a device that uses Windows CE. He didn't know much about it except that he thought the previous programmer was using Visual Basic, and he thought it might be Visual Basic.NET, along with SQL Server. I'd like to take over this programming job if I am qualified, but I don't know if I am. I have developed code using VB.NET, C#.NET, SQL Server for standard Windows. I used .NET to build programs that run on Windows desktop, and also the WPF platform. I also built ASP.NET and Silverlight programs for the web. In addition I have written programs that interface with machinery using serial and TCP coimmunications.
Would I be able to get up-to-speed on taking over the coding of a program that targets Windows CE? Does Windows CE allow .NET managed code or just C++ and VB6? Would it be advisable to try to get this job or would taking it lead to problems and disappointment?
I do remember what I did but text in code windows became very blur.Another screens such as option, solution explorer are still very clear.How to fix it?I tried to reset to reset all setting but no luck.
i'm trying to Handle the Micosoft.Win32.SessionSwitch Event, so when Windows is going to be locked by the user, i will simply write a line to the console.When it's going to be unlocked, the same.
Here's the code:
Sub Main() AddHandler Microsoft.Win32.SystemEvents.SessionSwitch, _ SystemEvents_Sessionswitch() Console.ReadLine()
I'm currently starting work on my first windows service and I've encountered what I find to be a strange error. For some reason the compiler is telling me that a whole bunch of typical classes (such as Image, Bitmap, Graphics, etc) do not exist. For example, these simple lines of code, which work perfectly in a normal project, return a bunch of errors:
Bitmap b = new Bitmap(destWidth, destHeight); //Error 13 The type or namespace name 'Bitmap' could not be found (are you missing a using directive or an assembly reference?) Graphics g = Graphics.FromImage((Image)b); //Error 17 The type or namespace name 'Image' could not be found (are you missing a using directive or an assembly reference?)
Basically, if you go to Start and click Computer and then click on the Network link on the left hand side, you'll notice on the right hand side several categories, one of which is titled "Network Infrustructure", in that category, my router is listed, and in my case, it is "LINKSYS WAG160N Wireless-N ADSL2+ Gateway" and when you right-click and select properties, it lists basic info such as internal/gateway IP address, on mine it is "192.168.1.1" I would like to know how to retreive this information in code, preferably a Windows API so that i can call it using a legacy VB6 app. Also, even if you just know a .NET version or a Delphi version, please do list that as well as i can code in both. However, the answer i'm ultimately seeking is a method to access this via VB6 so that would probably be a WinAPI call (will upvote & select this as answer), however, other methods are also welcome incase i can't find a legacy method (i will upvote these).
On a recent project I stumbled across a page of code that looked unfamiliar, but which evidently was the code behind my form design. I'll copy and paste an excerpt to show you what I mean:
'Required by the Windows Form Designer Private components As System.ComponentModel.IContainer 'NOTE: The following procedure is required by the Windows Form Designer
[code]....
I thought this was a useful way to back up my project via email because it's in text form. But now I can't find the same information. I've looked in the Object Browser but couldn't find it anywhere. I think I stumbled on it the first time by right clicking Go to definition, but now that doesn't take me anywhere if I click on say form1. So where will I find this mysterious page that has all the form items information in text, not graphic form? Can't find it anywhere.