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
M

mmikey7

@mmikey7
About
Posts
134
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • C#:OnPaintBackground in Component and User Control
    M mmikey7

    Hi, you can override OnPaintBackground, I haven't have any problem with that so far. If you want to draw over default background, be sure to call base.OnPaintBackground as a first thing in your override method. If you want to draw your background completely by yourself, don't call base.OnPaintBackground at all. hope this helps

    Teamworkc Cafe - my blog and smart project management software

    C# csharp css graphics question

  • Book or other reference recommendations needed [modified]
    M mmikey7

    I have read Essential Windows Presentation Foundation [^] which is very good and gives you general idea about ho WPF works and how it is designed as well as some insights into design decisions. Now I'm reading Windows Presentation Foundation Unleashed[^] which is also good, and is written more in "how to" style. A book that absolutely every .net programmer should read is Applied Microsoft® .NET Framework Programming [^] which gives you insight into how .net framework works inside. Very good introduction into C# for C++ programmer is Inside C#[^]. I have read and recommend you all four books. Hope this helps.

    Teamwork Cafe - my blog and smart project management software

    The Lounge csharp c++ wpf tutorial learning

  • So how well do you know English?
    M mmikey7

    Wow! I got 44! And I'm not even native english speaker. I'm proud of myself for this :) Cool game, it was fun actually, thanks.

    Smart project management software that involves cafe :-) under development. Get involved!

    The Lounge csharp php visual-studio com question

  • Creating a company in US
    M mmikey7

    You may find some useful information here.[^]

    The Lounge question

  • Generic data fetch with IDataReader [modified]
    M mmikey7

    regarding GetValue you may check this link[^]

    RubensFarias wrote:

    Thank you for your comments, I really appreciate them.

    You are welcome. Those are just my thoughts, that may be wrong. And practical solution is often far far away from ideal design. Important thing is to get things done. I wish you luck with your project.

    C# business sales regex question discussion

  • Constructor of Structs.
    M mmikey7

    Hi Lenus, there is nothing wrong with your code. In struct newStruct you defined constructor with parameter that is called when you create instance of newStruct: newStruct abc = new newStruct(10); In struct anotherStruct you also defined constructor with parameter, but this constructor is never called. anotherStruct def; //here you create object def of type anotherStruct. no costructor is called def.x = 250; // here you just assign value 250 to variable x, no constructor is called def.method1(); //this writes 250 to output which is totally correct since you set x to 250 before Compiler won't compile code if you do not set def.x. I was probably wrong when I said there is default parameterless constructor. There is no default parameterless constructor at all and you can not declare your own.

    C# question

  • Generic data fetch with IDataReader [modified]
    M mmikey7

    I would consider two things. First would be performance of return (T)_dataReader.GetValue(i);, I don't know exactly how GetValue works internally but I think that it is a bit slower than type specific method like GetInt32 becase there is more type conversion stuff. Plus by using type specific Get method you would save one of your type conversion return **(T)**_dataReader.GetValue(i). Disadvantage is that you would have to use IF statement to determine which specific Get method to call. Second thought is that I'm not sure if it is a best practice to have GenericDataReader to create businness objects. In my opinion objects like data readers should just get you a data and that is it. They should not be creating any business objects. Also I think that Business object should not work directly with data reader. It has lot of other work to do anyway. So I would suggest to create some BusinessDataObject that would take care of getting data from database, using GenericDataReader. And then any business object would just use relevant BusinessDataObject to load data.

    C# business sales regex question discussion

  • Generic data fetch with IDataReader [modified]
    M mmikey7

    Hi, can you please edit your post and place code in <pre> and <code> like this?: <pre><code>your code</code></pre> that would really help me to at least read your code. Thank you.

    C# business sales regex question discussion

  • String Array question..
    M mmikey7

    You can not add element to array. Array has fixed lenght. You can only change any element in array any time: myArray[0] = "hey bob!"; if you need to add element to array you need to create a new array(with more elements) and copy elements from old arrray to it together with you new elements. But this is pretty much what List does, so if you need to add elements to array often at runtime I would recommend you to use List which also has a method called ToArray which return current state of List as regular array. hth

    C# question data-structures lounge

  • Another JOTD
    M mmikey7

    Hans Dietrich wrote:

    Ole Zeke has therefore concluded that 300 years ago, Kentucky had already gone wireless.”

    I didn't see that coming :laugh: :laugh:

    The Lounge com question html sysadmin tools

  • Constructor of Structs.
    M mmikey7

    You declare(override) parameterless constructor? I'm lost here, can you past piece of code with your struct?

    C# question

  • ControlStyles.OptimizedDoubleBuffer increases my flicker problems
    M mmikey7

    Hi, first of all, do NOT you this.CreateGraphics(). Just use e.Graphics available from parameter like this: protected override void OnPaint(PaintEventArgs e) { //using(Graphics g = this.CreateGraphics()) //{ using(Brush brush = new SolidBrush(Color.Magenta)) { e.Graphics.FillRectangle(brush, rect); } //} base.OnPaint(e); } second of all, interval is in miliseconds so this timer.Interval = 10; will redraw whole form 100 times per second. It may flicker even on good computer. hth

    C# csharp asp-net graphics hardware testing

  • Constructor of Structs.
    M mmikey7

    SPanicker* wrote:

    Not in the other case when we declare it without the new operator(as if it was a value type variable).

    Now I know what you were asking, it was not clear from your initial post. In that case, default parameterless constructor is called and as I said before you cannot declare or override paremeterless constructor.

    C# question

  • I love Microsoft FrontPage
    M mmikey7

    Let's assume you're not kidding :doh: If you like FrontPage and it fills all your needs then good for you!

    The Lounge html com tutorial lounge

  • Constructor of Structs.
    M mmikey7

    Limitation is that structs cannot contain explicit parameterless constructors. But you certainly can use Console.WriteLine in sturct's constructor. See this example: using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Test t = new Test(7); Console.ReadLine(); } } public struct Test { public Test(int x) { Console.WriteLine("I'm Test's constructor and this is my x parameter: "+ x.ToString()); } } }

    C# question

  • Deathmatch: XP vs Vista
    M mmikey7

    I'm not saying that if Vista works fine for me it also works for you. I'm just saying, it's here, it' new and it's different. Use it or don't. I don't care. If you're happy with XP, good for you! I just don't know why so many people have to discuss same things again and again, compares it again and again for a year now and write articles in which they are trying to prove their opinion is right.

    The Lounge c++ php database visual-studio com

  • Deathmatch: XP vs Vista
    M mmikey7

    Rajesh R Subramanian wrote:

    I don't see why this has to be put up here. If you don't have the right codec to play a movie, it won't play. This has nothing to do with the operating system.

    What I meant was that on XP I just installed AllInOne codecs pack all worked, while when I installed same pack on Vista, some movies could not be played. So there is something different inside Vista regarding video playing. Not a big deal though. New codec packs are being made.

    The Lounge c++ php database visual-studio com

  • Deathmatch: XP vs Vista
    M mmikey7

    I don't get it. There must be something wrong with me. I don't know what this is all about. I love Vista and never had problem with it. The only thing that don't works without problem are codecs but after I installed GOM player I can play any movie. I turned off UAC so no problem with annoying warnings. And working on Vista is so much more pleasure than working with XP. Breadcrumbs is brilliant. Search in start menu is brilliant. And it is fast, quite fast on any reasonable today computer. Sure, it uses much more memory but what the hell, visual studio starts up in a half of second on Vista, I have never seen that on XP. I remember all of this going around in 2002 with XP, it was slow, too colorful, not more secure and blah blah. We got thru that. Don't get me wrong, I love XP, it is nice, robust and stable OS. But it is time to move on. Keep XP on your current computer, get Vista on new one. Love XP too much? OK then, get it also on new computer and wait for system seven if you see coming it any time soon(year or two). But please, for God's sake can we just leave it now?

    The Lounge c++ php database visual-studio com

  • Populate PropertyGrid from XML
    M mmikey7

    This is not an easy task. You need to create type descriptor for values you want to display in property grid. There is a great article about this topic: Bending the .NET PropertyGrid to Your Will[^] hth

    C# css xml tutorial question

  • Hashtables and DataGridView
    M mmikey7

    Can you see any datagrid at all? I do not see line where you add dataGridView1 to Controls collection. Just a hint.

    C# csharp css visual-studio tutorial question
  • Login

  • Don't have an account? Register

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