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
P

PandemoniumPasha

@PandemoniumPasha
About
Posts
104
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • picturebox help
    P PandemoniumPasha

    mjawadkhatri wrote:

    my image path is in lebal picturebox1.Load(label1.text); i can do this????

    yes, of course.

    regards :)

    C# help question

  • picturebox help
    P PandemoniumPasha

    from what i understand, you want to display the image in the picture box. there should be a Load function for the purpose. you can do something like:

    picturebox1.Load("image path here");

    HTH

    regards :)

    C# help question

  • how to create controls @ run time?
    P PandemoniumPasha

    DaveyM69 wrote:

    Obviously English isn't your first language

    apparently his member profile says he's from US :suss:

    regards :)

    C# tutorial question

  • Client And Server Chat
    P PandemoniumPasha

    from what i understand, every message a client sends goes to the server which then broadcasts to all the clients. is that correct? if so, then the server will receive all the notifications regarding users logging in and logging out. it is just a matter of sending a control message to all the clients and notifying them of the changes that occurred. for that you need to design your own protocol and decide how you would like to handle server-client communication. if you have reached as far as broadcasting the messages to all clients, i presume that you have implemented some sort of protocol for the communication. now, all you have to do is extend it to include some server messages or commands that are handled by the client.

    regards :)

    C# question sysadmin lounge

  • Client And Server Chat
    P PandemoniumPasha

    if you've done all that then it should not be hard to do what you want. the logic is the same. where exactly are you stuck?

    regards :)

    C# question sysadmin lounge

  • Nested try/catch blocks
    P PandemoniumPasha

    doesn't the first finally block close the connection resulting in exception when trying to execute a query in the second try block; and since the second catch block also uses Rollback, doesn't that throw another exception every time the function is called! :omg:

    regards :)

    C# help database sysadmin question

  • Getting Last Two Bytes
    P PandemoniumPasha

    no need to left shift the bits. they are already in the required order.

    regards :)

    C / C++ / MFC question

  • Getting null event in delegate
    P PandemoniumPasha

    That's because you've just declared a event handler, not created it. try something like:

    ButtonClicked += new System.EventHandler(GetData);

    regards :)

    C# question

  • Colour recommendations
    P PandemoniumPasha

    i had a similar experience once. i was developing a web application and the client didn't like the color combination. i tried every color combination that i thought would look good... but i was wrong. then i add pink to the combination and guess what? the client loved it!!

    regards :)

    The Lounge question json

  • SQL cursor fetch problem
    P PandemoniumPasha

    The problem is here:

    mmdullah wrote:

    declare curMain cursor for select @strsql

    the select statement selects a string not a result set! no need to write all that code to generate the error, a simple script of 4/5 lines will do the trick! ;P

    regards :)

    C# help database

  • How can I read this xml?
    P PandemoniumPasha

    d@nish wrote:

    Using eyes and brain.

    :laugh: :laugh: mogaambo khush nahin huwa ;P

    regards :)

    C# question com xml json

  • How can I read this xml?
    P PandemoniumPasha

    Mogaambo wrote:

    is this will work

    you'll never know until you've tried it!

    regards :)

    C# question com xml json

  • Bitmap Image Processing Using C#
    P PandemoniumPasha

    karthick sampangi wrote:

    I want to read the Bitmap Image using C#

    use LockBits() to obtain the bitmat data.

    karthick sampangi wrote:

    i'm trying to display these image in 0's and 1's

    good luck :thumbsup:

    regards :)

    C# help csharp graphics

  • Change background color of an image
    P PandemoniumPasha

    Xmen wrote:

    Color tmp_newColor = ??; // how to get new color ? Multiply, Add ?

    Color tmp_newColor = Color.Green; or Color.FromArgb(....) or Color.FromName(...) or Color.FromKnownName(...) choose whatever... HTH [Modified] one more thing, you are using GetPixel and SetPixel which are extremely slow. try using LockBits() and UnlockBits() for speed. [/Modified]

    regards :)

    C# graphics tutorial question

  • to produce full exe
    P PandemoniumPasha

    Zin Hsu Naing wrote:

    i want to produce full exe with c#

    so, you have been creating a half-exe till now! :rolleyes: i'd like to learn that :)

    regards :)

    C# csharp

  • Saving changes to bitmap file
    P PandemoniumPasha

    You can user the "Clone()" function to get a new bitmap object and dispose the original one. some thing like:

            Bitmap bm = new Bitmap(@"C:\\LEGO.jpg");
            Bitmap tmp = bm.Clone();
            bm.Dispose();
            Graphics gr = Graphics.FromImage(tmp);
            gr.DrawEllipse(Pens.AliceBlue, new Rectangle(5, 5, 50, 50));
            gr.Dispose();
            tmp.Save(@"C:\\LEGO.jpg");
    

    hope this helps.

    regards :)

    C# graphics winforms help question

  • Controls created on one thread cannot be parented to a control on a different thread.
    P PandemoniumPasha

    using delegates will help. you should define a delegate and invoke it to get the required result. there are a lot of articles on how to use delegates here in CP.

    regards :)

    C# help

  • changing desktop colour doesn't work
    P PandemoniumPasha

    Glad to help by the way, my nickname's changed

    regards :)

    C# windows-admin question

  • changing desktop colour doesn't work
    P PandemoniumPasha

    Changing only the registry values will not change the background color. Have a look at the API: SetSysColors. It is present in user32.dll If you want to change the wallpaper and get related information, have a look at SystemParametersInfo which is also present in user32.dll

    regards :)

    C# windows-admin question

  • How to pass a parameter in an event
    P PandemoniumPasha

    The object 'sender' is the button that triggered the event. just cast it to button type and check if it is the one you require. e.g. Button b = sender as Button; if(b == button1) .....; else ...; or you could assign a value in the "Tag" property of the button and check it in the event handler.

    regards :)

    C# csharp 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