Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Simon_uk

@Simon_uk
About
Posts
37
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I am tired and the work just never ends
    S Simon_uk

    Suzanne Boyle wrote: 50% staff reduction 50%? We are going for 66.6%! 45 to 15! :wtf:

    The Lounge

  • What to do....
    S Simon_uk

    Door-to-door .Net salesman! That sounds fun! :-D Unfortunately, I don't think I quite have the experience to venture off on my own yet (although some collegues disagree with that so maybe it's more a lack of confidence!). Well, the vote is at 4.6 / 5 so that means go.... The vote is interested though - most people have advised staying! Think the people that voted are just having a laugh! :)

    The Lounge csharp asp-net winforms question career

  • What to do....
    S Simon_uk

    I think it would be difficult to see this place as a paradise anytime in the next few years! Daniel Turini wrote: I agree with CG, start looking for a job tomorrow. If you find a job soon, you may even be able to get a few money more Keep your fingers crossed! :-)

    The Lounge csharp asp-net winforms question career

  • What to do....
    S Simon_uk

    Negotiating isn't an option - they aren't interesting in making things easy. Don't seem to care about how much they screw with people's lives. Full pay calculator is at: http://www.dti.gov.uk/er/redundancy/ready.htm[^] - thank god i'm not 20! :-) Ted Ferenc wrote: There is always the argument that it is easier to get a job when you are in employment, rather than if you are unemployed. Looks like I'm best sticking it out then... at least I have a 3Mb web connection to job surf there!! *Note to IT department - I'm just joking! ;-)

    The Lounge csharp asp-net winforms question career

  • What to do....
    S Simon_uk

    Ted Ferenc wrote: If the 3 weeks pay counts as redundancy isn't this tax free in the UK, up to around £30,000? Spot on... but this is just extra notice in affect, so is taxed at standard levels. Redundancy pay is statutory minimum (270 for every year of service - except that as I'm only 24, despite having 4 yrs service, it only counts as 3!!! Grrr!).

    The Lounge csharp asp-net winforms question career

  • What to do....
    S Simon_uk

    Christian Graus wrote: I'd stay, and look for another job at the same time. That's definitely the sensible thing... I'm just not sure how much longer I can handle working there!!! :-)

    The Lounge csharp asp-net winforms question career

  • What to do....
    S Simon_uk

    Christian Graus wrote: IS there a payout on the redundancy ? Does the payout change if you stay ? The difference between voluntary and forced is 3 weeks pay (at most) which is about £1400 less tax. But I may get that with forced redundancy anyway - it's not 100% clear yet.

    The Lounge csharp asp-net winforms question career

  • What to do....
    S Simon_uk

    Hey people... I have the option of voluntary redundancy, or I can stick it out for a month and see if they want to keep me. The chance of that is relatively slim, as the new department size will be 25% of the current size! :doh: If I take voluntary, I get an extra 3 weeks pay compared to forced redundancy. I can just about afford to live until christmas (assuming I don't spend a lot on presents!). The place is a bad place to work at the moment, but do I take the risk of leaving and hope I can find another job in a month or two? Or try and stick it out, in the knowledge that I may be forced out in a month anyway? I have 2 years .Net (WinForms and ASP.NET) experience, plus 5 years OOP - how quickly am I going to find a job at this time of year? I haven't a clue, so... Vote 1 to stay, 5 to go! :sigh:

    The Lounge csharp asp-net winforms question career

  • Trouble getting designer for a component
    S Simon_uk

    Hi, Thanks for your information. Yes, the designer is in the same assembly as the control it is designing. This assembly is seperate to the assembly containing the designer host, but as the designer host can 'see' the control, I'm sure it must have access to the designer as well. Both assemblies have full trust (they will only be used on intranet, and security protocols are already in use in other parts of the app, so it's not really a security risk). I have now resolved this problem. I used Reflector to see what TypeDescriptor.CreateDesigner(IComponent comp, Type designerBaseType) was doing, and copied the code to a local method so I could debug it. If you are interested, the problem appeared to be that Type.GetType(designerBaseType) was returning null. (the designerBaseType parameter was hard-coded to IDesigner). I got around this problem by changing all the controls (no, users will never add their own controls to this designer!) to use the constructor of the DesignerAttribute that accepts two parameters, and set the second one to the same type as the first. When the component is then added to the design form, I get the DesignerAttribute for that type, and call TypeDescriptor.CreateDesigner with the type specified in the second parameter of the attribute. OMG :omg: I don't really understand what I just wrote! :) - it you are really interested, feel free to email me and I'll try to explain in more detail!!! Thanks for your reply. Simon. PS: Is Reflector the most AMAZING tool for .NET development?!?!

    C# help question

  • Trouble getting designer for a component
    S Simon_uk

    Good morning, I have a custom (windows) user control, which is my own designer host implementation. It all works fine when I run the control in a windows app. I have toolbox, property window, etc. However, I require this form to be implemented in a web page. I am using the <OBJECT> tag to achieve this, and the control is displayed correctly. It all works as per the windows app, with one small problem! In my implementation of IContainer.Add, I call IDesigner designer = TypeDescriptor.CreateDesigner(component, typeof(IDesigner)); This works fine when hosted in the windows app. In the web however, it returns null. ARGH! If I remove the [Designer] attribute from the control, its ok. I've tried specifying the designer type using typeof and as a fully qualified string. Also tried adding the second parameter (BaseDesignerType) as typeof(IDesigner) and that hasn't helped either?? Apologies for the long post :sigh: its driving me mad!! Anyone have any ideas? Thanks in advance, Simon.

    C# help question

  • Enum's in different assemblies
    S Simon_uk

    No, I thought I had tried that, but obviously not because it now works!! Thanks very much for your help - most appreciated! Cheers.

    C# help question

  • Enum's in different assemblies
    S Simon_uk

    Thanks for your response. Colin Angus Mackay wrote: I use enums from different assemblies all the time. In fact you probably do too when ever you use an enum from the Framework itself. Yes, I realise this, which is what makes it even stranger (to me anyway!). Ok, to recreate this problem create a new solution and add two new projects (I added a class library (proj1) and a windows control library(proj2)). I added a new file to proj1, which contained the following enum definition: public enum MyEnum { Monday, Tuesday, Wednesday } In UserControl1 in proj2, I added a new property of Type MyEnum. This builds successfully. I then added the line: [assembly: CLSCompliant(true)] to the AssemblyInfo.cs file (and added using System;) Now re-building gives this error: "c:\Working\testenum\controls\UserControl1.cs(43): Type of 'controls.UserControl1.Day' is not CLS-compliant". Any clues? Thanks again for your help, Simon.

    C# help question

  • Enum's in different assemblies
    S Simon_uk

    Hi all, I have just moved some Enumerations from one assembly to a new one. However, the solution no-longer builds, as the enum's have suddenly become non CLS-Compliant. Moving them back to the old assembly fixes the problem! Is it really the case that you cannot use enum's from different assemblies? I have google'd for the problem, but the only things I could find said to explicity define the enum as type int, which I have done without success. Any ideas? Thanks in advance, Simon.

    C# help question

  • orkut?
    S Simon_uk

    Hi, If are you still happy to gave out invites, I'd be interested in checking it out. jDOTsmithATtinyonlineDOTcoDOTuk Cheers

    The Lounge com question

  • wat is the matrix code in visual basic
    S Simon_uk

    KaЯl wrote: Thierry Henry is currently the best football player Zidane is actually the best in the world, although Pavel Neved is the best in Europe (which doesn't make sense as Zidane plays in Europe also!). KaЯl wrote: (Is there any supporter of Arsenal here ?) Like anyone will admit to that!! ;P

    The Lounge tutorial question

  • What song is it?
    S Simon_uk

    Although I don't know the song (or even the film!), UK CPian's may find the shazam [^]service useful... Dial '2580' when you here a song and hold your mobile close to the source. After approx 20 seconds, you will receive a text message with the track name and artist. 1 million+ songs have been indexed, including remixes, covers, etc. The call costs 50p from most networks - ask the bill payers permission first! ;P (If the song isn't found though, I believe the call is refunded.) Simon.

    The Lounge question

  • Server controls and DOM events?
    S Simon_uk

    Yes, you can do this. Remember that the DOM events are client-side so you must set attributes on the controls. You can only do this in code AFAIK...

    TextBox test = new TextBox()
    test.Attributes["onmouseover"] = "JavaFunction();";
    

    This should do the trick. HTH, :) Simon.

    ASP.NET html design sysadmin question

  • Custom Control Help...
    S Simon_uk

    Can you not descend directly from DropDownList instead of WebControl?? If not, then look up the help on the OnBubbleEvent method and override yet in your class. HTH, Simon.

    ASP.NET help design

  • Find component at run-time
    S Simon_uk

    Sean Winstead wrote: At design-time, I would use ISite.Container.Components to do this very thing. But at run-time, ISite is null. Hi Sean, You were very close with this, but the code should be this.Container.Components (in c# anyway). You can then loop around this count times until you find the ID of the control you want. Hope this helps, Simon.

    ASP.NET design sysadmin docker question

  • Enter the Matrix
    S Simon_uk

    Yeah, I used to be a big fan of FIFA too. Guarantee you won't be after you try pro evo though!!! Go on, pro evo 2 is on platinium in a month or two for 17quid on www.play.com[^]!!! Worth every penny (all though you may end up gutted that you've wasting all these years on FIFA though! ;) Simon.

    The Lounge game-dev question career
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups