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
F

Frankidoze

@Frankidoze
About
Posts
28
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Code Project goes to 11
    F Frankidoze

    Well, Having the possibility of sharing/downloadable little projects/designs/concepts with whoever gets to CP is a treasure. Plus the daily news...Cherry on top of the cream...no need to spend half a day surfing for what tickles... Anyway...Got to CP coz Google brought me to it... And thx a zillion...CP helped me to switch tech in no time...(went from private language to .NET in no time) Wish you not +1 but at least +10 more good years... Thx guys!

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

    The Lounge question

  • Why does so much stuff in WPF not work ? [modified]
    F Frankidoze

    agolddog wrote:

    The people I work with are just in love with forms applications

    My bet... They will have to learn how to do web app used as win app... Plus don't forget the cost of rewriting everything... It's easier to choose the technology on new project but there is often no cost effective returns on rewriting (unless your existing app needs to address new goals)... There is no web vs winapp: There is a need and a goal to serve...Choose the technology that will answer it... Cheers!

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

    The Lounge question help csharp wpf com

  • Why does so much stuff in WPF not work ? [modified]
    F Frankidoze

    The frustration of learning and finding the solution... 4 me 2 lines of code: private void Popup_Opened(object sender, EventArgs e) { this.myTextBox.Focus(); this.myTextBox.SelectAll(); } This selects the entire predefined text I have in a textbox embedded in a pop-up... And I use MVVM. WPF is awesome...needs lots of research/reading/googling to get it (like anything) but once there...drooling.......

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

    The Lounge question help csharp wpf com

  • offices full of hens.
    F Frankidoze

    jgasm wrote:

    i said "well maybe you should date her"

    Excellent... Dang girls/women are so nosy!!! Or, if this Laura is single, it could be a way of finding out where you're standing... :-?

    jgasm wrote:

    and for some reason people thought my response was innapropriate.

    And people are losing their sense of humour or may be never had one... :-\ One answer could be: "There is no place for my personal life at work!" This only if you don't want to swim there...as somebody else mentioned... Have a good one!

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

    The Lounge question java

  • Looking for an SFTP Server for business purpose: Any suggestion...
    F Frankidoze

    Hi all! I'm doing some research to buy an SFTP server (no FTPS). This server will be deployed on a "black box" our client will buy. We need of course remote admin and specially localization features. If you have any experience to share or opinion on the subject, I'll appreciate any comment!!! Thank you for your answers. Franki

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

    IT & Infrastructure com sysadmin business learning

  • That's it! It's happening: Free energy - No fuel magnetic motor
    F Frankidoze

    Yes, and well, looks like they trying to get it approved (see international patent) and it can take 10 years to get it. So we could be close to the point of seeing that motor... :)

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

    The Lounge com question

  • That's it! It's happening: Free energy - No fuel magnetic motor
    F Frankidoze

    Thx James

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

    The Lounge com question

  • That's it! It's happening: Free energy - No fuel magnetic motor
    F Frankidoze

    If you haven't seen that yet: http://www.youtube.com/watch?v=SvB3PiPBozU[^][^] Can't wait to get one but where are we going? This will change the face of earth and our economy... I bet OPEC won't like that at all!!!

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

    The Lounge com question

  • Console application with args: Is there a way to pass args from VS when debugging?
    F Frankidoze

    Hi all, I want to run a console application in C# from visual studio in debug mode (by pressing F5). Is there a way to enter the arguments thru VS? Thank you.

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

    C# csharp visual-studio com debugging question

  • Windows services: Looking for a book... Any suggestion, Please
    F Frankidoze

    Hi all, I am looking for a book or the bible on .net windows services... Thank you

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier http://wlwilliamsiv.com

    IT & Infrastructure csharp com learning

  • Mens rules
    F Frankidoze

    Agree!!! Solution: Each time you find yourself is a situation described in the rule, just give them a printed version you have stashed all around your place with the rule corresponding to your situation high lighted. But unfortunately, you will still have to argue and discuss about "the rule" and the list because they will need explanation :( as they had already forgot about it. So be prepare to repeat yourself and perhaps after a while (10/15 years) they will get it. Not because you had explained it for that long, it will be because they got a bit more patient about who/what you are... Conclusion: We are doomed to argue :)

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier

    The Lounge help tutorial question

  • Server Switch Unit...Help need some general explanation
    F Frankidoze

    about what is a server switch unit and when/why do you need one? I'm not into servers nor networks. I'm trying to help my sister-in-law whose tech told her to get a $5K Server Switch Unit (for a private network of 25 desktops and 3 servers) without giving an explanation about what it is and what does it do (Who's you daddy and...? - :-D, feel like Schwarzy there...). So if one of you has the light, I will appreciate the sharing or if I should post this under a specific topic, just let me know. Thanks in advance. PS: Googling didn't brought me the light on this one :(...

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier

    The Lounge sysadmin question help lounge

  • Loading image at run time in a custom control used in a page. How to code this?
    F Frankidoze

    Here is the solution to How to dynamically load images within a custom control with images embedded with it! Context: You have a project of type "Class Library" where you create your custom control MyCC. 1/ Add a new item: Resources File: Resources.resx 2/ Drag your images onto this resource file you had open. This will generate a sub folder named Resources containing all images dragged. 3/ Under "Solution Explorer", select each image file to change their "Build Action" property to "Embedded Resource". 4/ Set the image url property as follow in the overrided Render() or RenderControl() method depending which one you are using to generate the HTML of your custom control:

    this._myImage.ImageUrl = Page.ClientScript.GetWebResourceUrl(this.GetType(), "MyNameSpace.Resources.MyImage.gif");

    The second param is of structure: [Namespace].[Resources Folder].[Resource File Name] 5/!!!! Carefull, the Namespace above and below has to match the default one defined in the project properties (Tab "Application"). 6/ Last, either in your custom control .cs file or in your AssemblyInfo.cs, add this line for each image: [assembly: System.Web.UI.WebResource("MyNameSpace.Resources.MyImage.gif", "image/gif")] Conclusion: Like this any page using your custom control will be able to display any image declared in your custom control. Note: If you look at your page source when you run it, the src attribute of your image uses a WebResource.axd. Enjoy. If I have missed anything, I apologize.

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier

    ASP.NET help tutorial question

  • Loading image at run time in a custom control used in a page. How to code this?
    F Frankidoze

    :)

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier

    ASP.NET help tutorial question

  • Loading image at run time in a custom control used in a page. How to code this?
    F Frankidoze

    pmarfleet wrote:

    The images would need to be stored as image files on your web server.

    I understand that. But how to do so when the images are defined with the custom control (within the custom control project). Do I need to use a resource file?

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier

    ASP.NET help tutorial question

  • Loading image at run time in a custom control used in a page. How to code this?
    F Frankidoze

    It doesn't work because the image is not loaded when I run the page. There is no error. It shows the traditional "image missing" image :). The situation is this: My custom control MyCC is a class (it's not a user control) compiled into a dll. All images I need to use for MyCC are defined in a folder named Images. So I guess they ended up in the dll somehow. My page uses MyCC. When MyCC is rendered, the image set for the Image control is not found because their is no such file on my web server. In order to access those images from the page I guess they need to be extracted from the dll. I want to defined those images with my class so wherever you use the control no extra step need to be done. Just drag the CC from the tool bar onto your page. I guess at some point I need to manage those images as resources. I hope my explanations will help you to help me. :)

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier

    ASP.NET help tutorial question

  • Loading image at run time in a custom control used in a page. How to code this?
    F Frankidoze

    pmarfleet wrote:

    So you need to add a property to your custom control for getting/setting the image url that internally maps to this property

    Well, the Image is not set by the user but at render time because the image to set depends on different conditions. What I need to know is how to build the URL dynamically in the Render() method so it would work wherever the control is used. I'm looking for something like:

        protected override void Render(HtmlTextWriter writer)
        {
            this.\_ico.ImageUrl = "imageUrl.gif";
            this.\_ico.RenderControl(writer);
        }
    

    I just need to know how to build a correct URL as the image is embed in the custom control dll. Thank you for your answers.

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier

    ASP.NET help tutorial question

  • Loading image at run time in a custom control used in a page. How to code this?
    F Frankidoze

    Well here is what I have: I have a custom control MyCC deriving WebControl composed of an Image control and a Label control. This custom control is defined in an assembly and used by an aspx. Here is what I want to do: I want to set the Image url at run time in the Render() method of MyCC. How am I supposed to code that? Setting the ImageUrl property of the Image with "~/Images/myImage.gif" doesn't work. My assembly is defined like this: Project Name: MyProject Class component: MyProject.cs Namespace: MyNameSpace Class: MyCC All images are stored in a folder: Images under MyProject. Thanks for your help. PS: Tell me if I'm in the wrong forum. :)

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier

    ASP.NET help tutorial question

  • Lazy day(s)
    F Frankidoze

    Then just do some paperwork or/and clean up your desk from all those documents that lay around... As you know we don't do that often. Like this you won't feel losing time and perhaps after 2 hours of updating/reorganising your documents, cleaning up the place you'll find yourself more motivated to do some real conceptual work... Enjoy your long week-end :)

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier

    The Lounge business architecture question career

  • Got dazzled by Firefox!!!
    F Frankidoze

    Thx didn't know this one :)

    "Nothing is lost, Nothing is created, Everything is transformed" Lavoisier

    The Lounge
  • Login

  • Don't have an account? Register

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