Windows API Code Pack
Nov 22, 2010
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?
View 4 Replies
ADVERTISEMENT
May 26, 2011
How to programmatically refresh the ExplorerBrowserControl? I can press F5 to refresh, but I want to put a refresh button for it.
View 5 Replies
Apr 14, 2010
I recently downloaded the Windows API code pack for .net, and seeing there was VB.net examples inside there, I opened them up. Upon building I get a warning that the referenced components 'Core' and 'Shell' could not be found. Looking in the code pack folder I see there are no DLLs at all, but instead a whole load of C# sources.
Do I have to download C# Express (which I want to avoid) to use the code pack or are there precompiled DLLs somewhere?
View 3 Replies
Jun 5, 2011
I am looking for verification on whether Application Restart and Recovery APIs work on Windows Vista or not. In the documentation the introduction says it designed for both Windows7 and Vista. Windows API Code Pack for Microsoft® .NET Framework provides a source code library that can be used to access some features of Windows 7 and Windows Vista from managed code.I did surf thru the issue tracker on the API home page, nothing mentioned on restart/recovery issues.
In the download, there are two sample projects specific to restart/recovery of an application, which has stopped responding (AppRestartRecoveryDemo), one in VB.NET and the second in C#. I tried both with dbWin32 to monitor that various operations ran and that there were no exceptions raised. All operations ran without raising an exception other than the restart failed and the initial recovery worked. Before working with the above projects I did rebuild the core libraries rather than use the supplied binaries.
When first running the project you must wait 60 seconds for recovery/restart mode to be possible along with registering for recovery using the following.
ApplicationRestartRecoveryManager.RegisterForApplicationRestart( _
New RestartSettings("/restart", RestartRestrictions.None))
I changed the restrictions above seeing if this would make a difference in regards to restart failing but it did not.In RegisterForApplicationRestart a check is made to ensure the app is running at least under Vista ThrowIfNotVista It works as I am on Vista. Next RegisterApplicationRecoveryCallback sets up the callback method (see figure 1) to invoke when the app crashes. So when a crash occurs I have verified all code up to Debug.WriteLine("Application shutting down...") executes in the Recovery callback and assume that ApplicationRestartRecoveryManager.ApplicationRecoveryFinished(True) and the return statement execute, as there are no exceptions thrown.
After the recovery callback method finishes I expect the app to restart. The "application is not responding" dialog says that the application will now restart but instead the application closes and never restarts. I am curious if someone else has worked with recovery/restart API and had success on Window's Vista to restart an application.' This method is invoked by WER.
Private Function RecoveryProcedure(ByVal state As Object) As Integer
Debug.WriteLine("ARR: Recovery procedure called!!!")
PingSystem()
[code]....
View 1 Replies
Apr 14, 2010
is this even necessary in VS2010 & .NET 4.0? I've been trying to take advantage of the new Windows 7 taskbar interfaces like the Jump List. The MSDN documentation/tutorial instructs me to include a System.Windows.Shell, but apparently Shell isn't a member of System.Windows. I downloaded the API code pack, but I am unsure of what to do with it. The instructions say to open the main solution file and build it:QuoteTo build the library (except the DirectX related features) in Visual Studio 2008, please extract the contents of the �WindowsAPICodePack.zip� file in a new folder and build the included �WindowsAPICodePack.sln� file.And so I did that, but that is the extent of the instructions. I thought maybe it was a Visual Studio extension, so I tried accessing Shell again to no avail. Do I need to add each of the respective namespaces' projects to the target solution to use the API Code pack?
View 6 Replies
Nov 29, 2010
I decided to have a play around with the Windows API Code Pack and so far it has had some very interesting things. Something which I like in particular is AeroGlass. I have created a project to mess around with it to see how it works etc. and I am having some difficulties with the tranparency. If I put a textbox on the form for example, it displays fine. The text however is barely readable unless the form is over a dark background. The solution seemed obvious. Change the transparency key. However, there wasn't one set. Adding one stops the glass effect from working.
View 2 Replies
Jan 19, 2010
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
View 7 Replies
Jul 18, 2011
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]....
View 2 Replies
Oct 25, 2011
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
View 2 Replies
Apr 4, 2012
I'm currently writing a small app that uses sqlite database.there's is system.web.sqlite.dll required to use this database and it isn't installed with .net framework by default.My client wants his app to be only 2 files (.sqlite database + exe file) with no additional DLLs etc.How to pack this DLL into exe?I tried adding this to resources and creating this file dynamically when the form loads, but it didn't worked.
View 6 Replies
Aug 26, 2009
i need to add framework3.5 with my application insatalation pack (.msi)so i don't let the customer download framework3.5 from internet i have to add the gframework3.5 with msi
View 11 Replies
Jul 12, 2010
component id for Visual Basic Power Pack 3.0.I need to determine if or not it is installed on my system for my setup.
View 3 Replies
Oct 22, 2010
There's plenty of examples out there for other languages. Are there any examples for vb.net?
View 1 Replies
Nov 27, 2011
i am trying to get the value from this code:
<DIV id=lcm_simlive_countdown>00 Days, 06 Hours, 40 Minutes, 35 Seconds</DIV>
I have tried the following to do so:
Dim theVidURL As String = doc.DocumentNode.SelectSingleNode("//DIV[@id='lcm_simlive_countdown']").Attributes("value").Value
But it tells me Object reference not set to an instance of an object.
View 1 Replies
Dec 6, 2010
I know how to use My.Computer.Info.OSFullName to get the version of the OS. How would I go about getting the Service Pack version?
I need this to work on all versions of Windows.
Also, is there a way to check and see if the activation has been successfully completed?
View 1 Replies
Mar 19, 2009
Is there a Service Pack 1 for Visual Studio 2005 (Professional Edition)? The only one I see is for Team something or other....
View 3 Replies
Apr 5, 2010
How to pack mine program ..to be protected from edit with Resource Hacker or Hex ?
View 1 Replies
Oct 22, 2009
I have to pack and unpack a 16bit Int from/into a Ushort in VB.net This is how I thought I could do it (doesn't work, gives me overflow exception)
'Pack Int16 into ushort '
Dim usPacked = CType(Data, UShort)
'unpack Int16 from ushort '
Dim unpacked = CType(data,Int16)
View 2 Replies
May 29, 2011
Anyone have working code which can determine the Office versions from 2003 to 2010 and the ServicePacks installed for each?
View 3 Replies
Dec 13, 2011
I am not sure how to do this, I need to output what service pack is installed on a windows 7 machine along with what antivirus is installed. Any idea on how I would get that information using VB?
View 5 Replies
Jul 14, 2009
I've been trying to find the Feature Pack for Visual Basic 2008, but all I seem to be able to find in the one of C++.
View 1 Replies
Jan 19, 2009
I can get the current version of the os but i cannot get its service pack.
Dim OSSP As String = (Environment.OSVersion.ServicePack) Is what i tried using but i get nothing
View 3 Replies
Dec 2, 2011
I am looking to learn as much about the free source html aglity pack but 99% of what I am running into is code mostly in c sharp. Is VB.NET not the preferred language for html agility pack?
View 2 Replies
Jun 2, 2012
i need to scrape a p tag which has h3 tag after it but does not have a closing p tag. It looks like this :
<script ad>asdasdasd</script>
<p>Translation companies are
-----------------------
-----------------------
<h3 class="this_class">mind blown site</h3>
There is no </p> tag so i cannot parse it completely. Now i have two questions :
1) can this be parsed using httpagility xpath ?
2) i have a function to find text between two strings (getbetween). But i have a doubt - If i use "asdasdasd" and " is it always 100% that vb.net will use the script tag which is just above h3 because there are 2-3 same lines - "asdasdasd"
View 2 Replies
Dec 2, 2011
I haver been struggling trying to match the output of the PHP PACK and MD5 functions.The PHP scenario I am trying to recreate in .NET is this.A 32 character hex string is passed to the PHP pack function. It returns a binary string. At this point both the .NET and PHP methods return values are the same. It works up to this point.The binary string then has a password appended to the end. This result is then sent to MD5 and it returns a hash.
When i try to do the exact same thing in .NET i never get the same result. What i have figured out is if i send a regular string to MD5 (NOT a binary string created from the pack functions) I do get the same result every time both in .NET and PHP.However, if i send the binary string to MD5 in PHP and .NET I get different results.
View 1 Replies
Feb 21, 2011
I have been using these forums regularly for getting on 3 years now, and I must say you are all extremely clever! I am adding in a few rectangle at runtime, but I can't seem to display where I want. I want them in a panel I have on the form, I have tried 'me.panel1.controls.add' but because a rectangle isn't a control it naturally doesn't work.
View 1 Replies
May 9, 2009
I have finished project, now i want to pack my software. i have used publish method as well as using install-shield 11 but the thing which i want: i need to pack windowinstaller3.1, netframework 3. 5, and my exe file into only a file. And when user click install symbol, program will automatically install:
first : windowsinstaller3.1
second: netframework3.5
thirth: my software.
View 1 Replies
Dec 7, 2009
I created my program in VB 2005 on my XP machine at home and installed PP3 to take advantage of the printform component. It worsk great for my purposes and was easy to install and code.However when I brought my un-compiled code to my office which runs Win 2000 I got an error, saying I didnt have the correct version. I assumed it would be back ward compatible, never assume especially in programming.
So my question is can I just delete all references to printform component on my program and install power pack2 , which does support Win 2000 and XP then re-install print component.Or is there another way to make this work? I am not finding alot of information on the web other then Power pack 3 doesnt support Win 2000?
View 6 Replies
Mar 19, 2012
I'm trying to use HAP to scrape the data from this web page.I would like to get the stats into a structure of some sorts, preferably a Datatable. I've managed to read the webpage into an HtmlDocument object, but I can't figure out how to parse the data from the rows & columns. This is what I have so far:[code]
View 1 Replies
Sep 3, 2011
I'm using HtmlAgilityPack and I want to get the inner text between two specific tags, for example:
<a name="a"></a>Sample Text<br>
I want to get the innertext between and tags: Sample Text
View 1 Replies