mjawadkhatri wrote:
my image path is in lebal picturebox1.Load(label1.text); i can do this????
yes, of course.
regards :)
mjawadkhatri wrote:
my image path is in lebal picturebox1.Load(label1.text); i can do this????
yes, of course.
regards :)
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 :)
DaveyM69 wrote:
Obviously English isn't your first language
apparently his member profile says he's from US :suss:
regards :)
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 :)
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 :)
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 :)
no need to left shift the bits. they are already in the required order.
regards :)
That's because you've just declared a event handler, not created it. try something like:
ButtonClicked += new System.EventHandler(GetData);
regards :)
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 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 :)
d@nish wrote:
Using eyes and brain.
:laugh: :laugh: mogaambo khush nahin huwa ;P
regards :)
Mogaambo wrote:
is this will work
you'll never know until you've tried it!
regards :)
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 :)
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 :)
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 :)
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 :)
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 :)
Glad to help by the way, my nickname's changed
regards :)
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 :)
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 :)