User Profile

Collapse

Profile Sidebar

Collapse
nodoid
nodoid
Last Activity: Jul 29 '10, 07:44 AM
Joined: May 26 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Redirecting a video to a picturebox using mciSendString

    Hi,

    I'm using the code (roughly) from http://www.dotnetmonst er.com/Uwe/Forum.aspx/dotnet-csharp/92578/Playing-an-avi-file-in-a-C-app to send a video to a picturebox (in this case, it's an mpeg file).

    My code looks like this

    Code:
        public class video
        {
            [DllImport("winmm.dll")]
            private static extern long mciSendString(string command, StringBuilder returned,
    ...
    See more | Go to post

  • nodoid
    started a topic Implementing a radial control in C#

    Implementing a radial control in C#

    Hi,

    After a fruitless half hour or so of searching on google and MSDN I'm at a loss. I'm trying to implement a radial control in C# - to make things worse, I'm not even sure it's called that.

    What I'm after is something that looks like a hi-fi radio tuner or volume knob.

    My first thought was to mix a standard slider control with a circle; when the slider is turned, the control has a higher value. Only...
    See more | Go to post

  • nodoid
    replied to Porting old VB5 to C# problem
    Looked at that and it may do the job. I think it'll be easier to update the UI and use the correct tools for the job rather than keeping to the old layout... After all, those nice people at MS wouldn't have given us the save and open file dialogs if there wasn't a reason for them ;-)

    Thanks for the reply :-)
    See more | Go to post

    Leave a comment:


  • nodoid
    started a topic Porting old VB5 to C# problem

    Porting old VB5 to C# problem

    Hi,

    I have an old VB5 app which I'd like to bring over to .NET. Most of the code is simple enough to port, but the designer is using what looks to be either an old COM or MFC widget to display directories in a drop down with a tree view under it and then a list of files under that.

    I can do the list of files (not that hard really), but the tree view and treeview filer thing I'm not to sure on.

    I've attached...
    See more | Go to post

  • nodoid
    started a topic Testing if a library exists

    Testing if a library exists

    Hi,

    I'm trying to make an application as cross platform as possible by developing concurrently using Mono (Linux) and .NET (Win32), but I've hit a problem.

    winmm.dll is a Win32 dll which comes with Windows and deals with fun things like mp3 files and certain video files. Okay, it's not the best library going, but does the job. Problem is that it doesn't come with Linux.

    Linux has a multitude of libraries...
    See more | Go to post

  • nodoid
    started a topic Redirecting video to a window

    Redirecting video to a window

    Hi,

    I'm using winmm.dll to display video. Currently it opens the video in it's own window. Is there any way that I can direct it into (say) a PictureBox in an already existent window (or something like that)?

    Paul
    See more | Go to post

  • Would I be better off using a new thread for this?

    Hi,

    I have a sound file playing which lasts 50 seconds say. At 30 seconds, I need a new window to open and load a picture.

    Would I be better off creating a new timer, when it hits 30 seconds, fire the new window or would I be better off creating a new thread, have the timer in the thread, fire at 30 seconds then kill the thread?

    Or is there something I can just use in .NET which does this sort of thing...
    See more | Go to post

  • Looks that way. Export a word formulae as rtf and it's straight in. Thanks :-)
    See more | Go to post

    Leave a comment:


  • Shows up happily in OOo. Not tried with word pad or word.
    See more | Go to post

    Leave a comment:


  • nodoid
    started a topic RichTextBox and RTF problem with a formula

    RichTextBox and RTF problem with a formula

    Hi,

    Not sure if this is a limitation of the RichTextBox or a problem with OpenOffice and it's exporting of RTF files.

    I have generated quite a few RTF files using OpenOffice 3.2 and they've worked without a problem when I've loaded them into a RichTextBox. All of the formatting, fonts, sizes and colours work without a hitch.

    I now want to import equations created using the OOo equation editor. I've created...
    See more | Go to post

  • Ah. Okay, that makes some sense. What happens though with the bits declared within the attribute? Would it become

    Code:
    <Element Name="foo" ElementName="bar" X="100" Y="150" ...
    followed by the other bits declared in Name then something similar for the other attributes or do I need to declare them some other way?
    See more | Go to post

    Leave a comment:


  • Okay, after a chunk of time on this I've come across two problems

    1. The deserializer.

    Currently it's using FormData to read in which gives an error as the first thing sucked in from the XML file is FormList. Okay, not a biggy, alter the references for FormData to FormList.

    Ah. Problem. The foreach is annoyed at foreach (Element fort in f.Forms[].elements) - it's expecting a value in the brackets by the looks...
    See more | Go to post

    Leave a comment:


  • Bloody visual studio 2008 - false positives... move along, nothing to see here...
    See more | Go to post

    Leave a comment:


  • Okay, no idea on this one. I've sorted a few other problems out, but the following is seriously annoying me as I can't see any valid reason for the error occuring...

    Code:
        [Serializable]
        public class FormData
        {
            public List<Element> elements;
            public FormData()
            {
                elements = new List<Element>();
            }
    
            public string
    ...
    See more | Go to post

    Leave a comment:


  • It would probably make life simpler to do that, after all, get the XML deserialize bit correct and the rest should work.

    For your suggestion though, would the Elements class need to be re-written or is it enough just to restructure the XML?
    See more | Go to post

    Leave a comment:


  • It does :-)

    However trying that only gives one thing in the window (in the first case, it's the text box). The XML has multiple objects on a form, but only the last is shown.

    I'm now thinking of setting up a simple for loop which counts how many objects there are with pagenumber == page and loop it through that way but again, that would cause another layer of problems unless I add another XML field with an object number...
    See more | Go to post

    Leave a comment:


  • One solution may be just to read in the data where pagenumber == page, but that would be slightly messy

    Something like

    XmlDocument doc = new XmlDocument();
    doc.Load(path_e nv + "designer-test.xml");
    f = doc.XmlSingleNo de("pagenumber" );

    though that would probably not really work as it would only read one set of data not multiple sets....

    Hmmm.....
    See more | Go to post

    Leave a comment:


  • Hi,

    forward and backward call the delegate which disposes of the window and then calls the makeform method with the new page number...

    Full source (the loaddesign method is called from a button click)

    Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;
    using System.IO;
    ...
    See more | Go to post

    Leave a comment:


  • nodoid
    started a topic How to deserialize and create a form on the fly

    How to deserialize and create a form on the fly

    Having a bit of fun here. I've read in a file in XML and deseralised it. Based on the contents of the XML file, I've generated a page on the fly (and it works).

    However, the XML file contains the data for more than one page to be generated. The idea is that you click the forward button, the event is fired and the new window generated.

    The deserialiser method passes the XML data to the winform generator directly which is...
    See more | Go to post
No activity results to display
Show More
Working...