Search:

Type: Posts; User: Kezmondo

Page 1 of 5 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    1,402

    Re: WMI from ASP.NET

    Hi Gary,
    Sorry for the delay in replying.
    Interesting development following your post!

    Manually setting the username and password does now allow me to read the installed printers from the...
  2. Replies
    9
    Views
    1,402

    Re: WMI from ASP.NET

    Thanks Gary. Yep, ASP.NET impersonation is on. Pretty sure this is working - certainly if I write
    HttpContext.Current.User.Identity.Name to the page, it displays my username correctly. It seems to...
  3. Replies
    9
    Views
    1,402

    Re: WMI from ASP.NET

    It's null on the localhost and the server - yet it does work on the localhost.

    Would you expect the setting of the Impersonation property to populate the Username property?
  4. Replies
    9
    Views
    1,402

    Re: WMI from ASP.NET

    Thanks for the reply. It's encouraging that you think it can be done!

    Here is the code I've been using for listing the printers:


    ManagementScope mgmtScope = new ManagementScope("\\\\" +...
  5. Replies
    9
    Views
    1,402

    WMI from ASP.NET

    Hi,
    I'm writing an intranet site allowing users to add/remove network printers to their own machines. I'm using ASP.NET/C# for the pages, and WMI for the printer operations.

    All is fine when...
  6. Calling client-side operations from Intranet Page

    Hi, I need to make an intranet site for users to manage their network printer connections. PrintUI.dll offers the functionality I need for this. However, there are issues around the fact that it must...
  7. Re: Property whose type is "class"

    Atheist, that worked great - many thanks.

    For the record, I just needed to change

    if (value.Equals(typeof(IFruit)))to
    Type InterfaceType = typeof(IFruit);
    if...
  8. Re: Property whose type is "class"

    Ah, this looks promising!
    I'm just finishing up for the day so will give it a whirl next week and let you know how I get on.

    Thanks!
  9. [RESOLVED] Property whose type is "class"

    Hi there,
    Is it possible to effectively have a property whose type is "class"? It's probably best to clarify this by example:

    I have a FruitShop class, and a some fruit classes (Orange, Apple...
  10. Re: Get object position during animation

    OK, great - well I'll have a dig around on that but you've definitely set me on the right track so thanks a lot for your time, much appreciated.
  11. Re: Get object position during animation

    Yup, I have the same setup.

    I've just noticed though that your code doesn't have parenthesis after ToString though - I added those in without really thinking about it as I'm using C#. Are you...
  12. Re: Get object position during animation

    Sorry if I wasn't clear.
    I meant that that line of code won't compile for me - I get the red squiggly line underneath "Value", with the error being:
    'System.Windows.Media.Transform' does not...
  13. Re: Get object position during animation

    Hi Chris128, cheers for the response!

    You're right, I can change the TargetProperty in the XAML to Canvas.Left and Canvas.Top and it works - thanks!

    The TargetProperty I had was what Blend...
  14. [RESOLVED] Get object position during animation

    Hi,

    I have used Expression Blend to create a very simple animation where an image moves across the screen.

    In code (c#), I have a DispatcherTimer which puts the image co-ordinates in a...
  15. Authorization roles depending on active configuration

    Hey,
    I have a web application that uses windows authorization. Access to pages is controlled in the web.config under the <location> tag.
    However, I have a set of "test" roles and "production"...
  16. Re: Vertically Aligning a label in a container, or the text in a label

    Hi Mendhak, sorry for the delay in replying

    Setting line-height is fine as long as the text fits on one line. But if the text goes onto mulitple lines you get gaps between the lines as it uses...
  17. Re: Vertically Aligning a label in a container, or the text in a label

    Sorry if I wasn't clear.
    I would like the text to be centered vertically inside a fixed height container:

    So for a single line of text would look like this:


    |------------------------------...
  18. Vertically Aligning a label in a container, or the text in a label

    Hi, on a web page, I want a fixed height space reserved for a message. This message could be multiple lines long, say up to 3.

    When a message is programatically entered into this space, I want it...
  19. Replies
    6
    Views
    690

    Re: Intranet app architecture

    OK, lets use the standard ASPNETDB database.
    I've changed the connection string to
    "Data Source=CAMLL3D5731\\SQLEXPRESS;Initial Catalog=ASPNETDB;Integrated Security=True;" and I no longer get that...
  20. Replies
    6
    Views
    690

    Re: Intranet app architecture

    Thanks for the reply Henrik.
    I've already got something working using Windows Authentication and then using AD groups for roles using WindowsTokenRoleProvider.

    As an alternative, I wanted to...
  21. Replies
    6
    Views
    690

    Re: Intranet app architecture

    ...so in a nutshell, I'd like to authenticate users by checking if their windows username exists in my application's User table.

    What's the approach for this?
  22. Replies
    6
    Views
    690

    Intranet app architecture

    Hi,


    I would like to develop an Intranet application.
    The application should maintain its own user and role info in its own SQL Server database and will provide a front end for user/role admin...
  23. Replies
    3
    Views
    1,380

    Re: Apply skin to individual MenuItem

    Thanks Pirate, but it doesn't look like there's a CSSClass attribute for MenuItem either...
  24. Replies
    3
    Views
    1,380

    Apply skin to individual MenuItem

    Hi,

    I can apply a skin to a Menu control as a whole, but what if I wanted to apply skins to individual MenuItems?

    For example, to give the first and last items a different appearance to the...
  25. Replies
    8
    Views
    722

    Re: GFX Card Issue? [RESOLVED]

    Thanks for your responses guys, especially Lord Orwell - very comprehensive!
    After reading that, I felt very confident it was the video card, and I've just installed a new one which finally arrived...
  26. Replies
    8
    Views
    722

    Re: GFX Card Issue?

    Right, I'll check the device manager and try reinstalling the drivers when I get home tonight. Thanks.
  27. Replies
    8
    Views
    722

    Re: GFX Card Issue?

    I haven't, but I will try that, thanks. Is that the sort of thing that can go wrong out of the blue then?
  28. Replies
    8
    Views
    722

    [RESOLVED] GFX Card Issue?

    Hi,
    I'm have the following problem when starting my PC:

    POST ok.
    Motherboard splash screen displays, but not perfectly - there are artefacts on it.
    Windows splash screen displays (the one...
  29. Replies
    2
    Views
    645

    Integrating DB code

    Hey,

    I'm just starting out in C# and getting to grips with OOD.

    What are people's thoughts on the location of database access code in a C# program?

    Off the top of my head, I see main 3...
  30. Replies
    7
    Views
    567

    Re: Array of Base Class

    Thanks for the info, that makes more sense now.

    Guess I thought that b would be holding a copy of the array element after the cast statement - I didn't realise that it effectively becomes a...
  31. Replies
    7
    Views
    567

    Re: Array of Base Class

    This won't actually update the StockList array though, will it?

    I would have thought that later, if I then try to read the property from the array, I will have the same problem...
  32. Replies
    7
    Views
    567

    Re: Array of Base Class

    Thanks jmchilhinney - but I'm going to have to ask you to put it on a plate for me...I can't get the syntax! :o
  33. Replies
    7
    Views
    567

    Array of Base Class

    Hi

    I would like to declare an array of a base class and add items to this array of a derived class. Finally I want to access the respective properties of these items.

    For a simple example,...
  34. Re: Cookies - making available only from a specific directory

    From reading around, I got the impression they can be directory specific using Path=, like here for example.
  35. Cookies - making available only from a specific directory

    I'm just starting out in Javascript and am attempting to create a cookie that can be accessed across a number of pages - like a shopping cart, for example.

    I can do this, but would like to...
  36. Replies
    12
    Views
    896

    Re: Hammering the CPU

    Heh, that forms prog certainly wreaks havoc on screen but the CPU doesn't go above 60 degrees.

    I've also tried an infinite loop with some mulitplication and divison carried out in each iteration....
  37. Replies
    12
    Views
    896

    Re: Hammering the CPU

    This is my problem...it crashes when i play a 3D game like Enemy Territory or UT. Haven't managed to get the monitor to stay in the foreground while I play...
  38. Replies
    12
    Views
    896

    Hammering the CPU

    Can anybody suggest some simple cope that will be very intensive on the processor? To help me diagnose a PC problem I'm having, I want to run this code in an infinite loop sort of way while I monitor...
  39. Re: Invoking Base Class Constructor

    Great, thanks.
  40. Invoking Base Class Constructor [Resolved]

    I'm very new to C# and have a quick question...

    When a class is derived from a base class, is the base class constructor always invoked when an instance of the derived class is created, regardless...
Results 1 to 40 of 166
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width