Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. adrianjohnson

    WPF: How to drag a label within a custom canvas control

    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...
  2. adrianjohnson

    Create user stored procedure

    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...
  3. adrianjohnson

    WMP Now Playing

    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
  4. adrianjohnson

    WMP Now Playing

    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...
  5. adrianjohnson

    Add menu item at runtime

    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
  6. adrianjohnson

    Add menu item at runtime

    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...
  7. adrianjohnson

    Pick random file - .net 3.5

    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...
  8. adrianjohnson

    Pick random file - .net 3.5

    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
  9. adrianjohnson

    Pick random file - .net 3.5

    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...
  10. adrianjohnson

    Convert field text to html ok in VS 2005, not in PDF

    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;
  11. adrianjohnson

    Convert field text to html ok in VS 2005, not in PDF

    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...
  12. adrianjohnson

    Convert field text to html ok in VS 2005, not in PDF

    Thanks for the reply, but we're already doing that: Any other ideas?
  13. adrianjohnson

    Convert field text to html ok in VS 2005, not in PDF

    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...
  14. adrianjohnson

    Add drag 'n drop item to ListView group

    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...
  15. adrianjohnson

    C# &amp; Access 2003 - TableAdapter query with parameter

    It's ok, I've sorted it now. Used a rowfilter on the DataGrid. Adrian Johnson http://www.amanian.co.uk http://www.adrian-johnson.com
  16. adrianjohnson

    C# &amp; Access 2003 - TableAdapter query with parameter

    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...
  17. adrianjohnson

    Distribute app with MSDE 2000

    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...
  18. adrianjohnson

    Distribute app with MSDE 2000

    I don't have Office 2000 developer. Is that the only place this file is??
  19. adrianjohnson

    Distribute app with MSDE 2000

    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...
  20. adrianjohnson

    Distribute app with MSDE 2000

    Thanks for the reply. I'll have a play and see what happens. Adrian Johnson Assystance - i.t. solutions http://www.assystance.com

Part and Inventory Search

Back
Top