Hello,
I've got a Window which has a treeview in the left column and a canvas control in the main area. The canvas control is based on the custom control from the WPF Recipes in C# 2008 book published by Apress.
I've managed to get the drag and drop to work to a standard canvas control, but...
I'm trying to use the stored procedure that asp.net uses to create a new user on a web database. The reason I'm doing this is because the user wants to export a list of over 400 username and passwords from Excel into the aspnet_users table without having to create new users manually.
So, I've...
Oops - forgot to add the code I already have:
using WMPLib;
...
WMPLib.WindowsMediaPlayer Player;
IWMPMedia media;
media = Player.currentMedia;
string test = media.name;
Adrian Johnson
http://www.adrian-johnson.com
Quite a simple question really, but a search on Google & Windows Live hasn't produced much of a result.
How do I capture the track currently playing in Windows Media Player 11?
I've added the reference to WMPLib, but from there on in the examples get complicated. Do I need to add a WMP control...
It's ok, I've managed to find a solution.
http://msdn2.microsoft.com/en-us/library/ms171651.aspx
http://msdn2.microsoft.com/en-us/library/ms171652.aspx
Adrian Johnson
http://www.adrian-johnson.com
I seem to be struggling with this, yet it should be so easy.
I've got a winform, with a main menu already created. However, I want to add items to the main menu when the program is running.
I've already tried the code from here: http://msdn2.microsoft.com/en-us/library/aa984267(VS.71).aspx...
Thanks Alex. I did try that before, but get the following error message:
The type name 'FromFile' does not exist in the type 'System.Windows.Controls.Image'
Next, I added the System.Drawing dll and the directive, but it opened up a whole host of error messages about it getting confused between...
Thanks for the code Jason, but I now get an error:
Error 1 'System.Windows.Controls.Image' does not contain a constructor that takes '1' arguments
on the line:
return new Image(listOfFileNames[randomNo]);
Adrian Johnson
http://www.amanian.co.uk
http://www.adrian-johnson.com
I'm trying to write a program which picks up an image at random. Here is some of the code:
string nextImage = "";
int fileCount = 0;
// Get a count of images within the folder.
DirectoryInfo imageFiles = new DirectoryInfo(Properties.Settings.Default.ScreensaverImagePath);
// For each image...
Sorted it. It was me being a bit dim.
whileprintingrecords;
stringvar sample := replace(replace({FieldName},"</p>",chr(13)),"\n","");
sample := replace(replace(sample,"<br>",chr(13)),"\n","");
sample;
Thanks lbass. Your idea worked ... sort of.
I'm quite new to formulas in Crystal, and as you can imagine, there are a number of tags in the field that need replacing.
Here's my code so far. I removed the html interpretation and added this formula to the Display String of the field...
Hi all,
We've developed an ASP.Net application in Visual Studio 2005. The data is stored in a SQL Server 2005 table, and the field concerned is of type nvarchar.
We then created a Crystal Report (version 11.5 SR 2), and added the field into it. Next, we formatted the field to display as html...
Hi all,
I've implemented a drag and drop facility on a ListView (WinForms) application. The drag and drop itself works fine, as I write to the console the name of the file to be dropped.
However, my list view shows it's items in detail view (just 2 columns) and they're all bunched together in...
Hi all,
I'm trying to add a query to an existing TableAdapter using VS 2005 and Access 2003. I add the query ok, including the parameter field, add the name, but when I save the DataSet it changes the (@ to underscore. This means I cannot access the new query.
My Query:
SELECT * FROM Contacts...
I've given Chris' post a star because I needed a certain file and he provided it.
However, I've given ip trying to use it, as I stumble across so many problems! I already had the project in VB6 and was trying to salvage it, but will probably head towards .net - I know how to use and deploy...
The link provided, and any search I've done, actually didn't help. When it comes to deploying MSDE they all request msdex86.exe - can I find that file. No? Searched in Google/Microsoft - they say it doesn't exist, or I need to download 400Mb of the Windows 2003 SDk to get it. Is it on my VB...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.