|
MasterSharp wrote: I really just don't understand how you get a sprite from the class. (?)
However you like. You either store an image ( or sequence of images ) statically in the class ( and an image index if you're using a sequence ), or whatever. Are you using DirectX ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Oh sorry, XNA.
- I love D-flat!
- Need. More. Code.
|
|
|
|
|
I see...
- I love D-flat!
- Need. More. Code.
|
|
|
|
|
Hi all,
i was wandering, if it is possible to create a picture of a loaded Form ?
Janko
|
|
|
|
|
You mean a Screen Capture? Click the button on your keyboard that says PrtScn, or something that would mean Print Screen. Then open up your favorite image editing software and paste it in. MSPaint works well.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
I mean doing it programaticaly (in code)
|
|
|
|
|
There are a number of articles on this site on screen capture, I know Nish has one.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Well what i am looking for, is the possibility to draw a form into image without displaying it...
|
|
|
|
|
Yes, the form class apears to have a 'DrawToBitmap' method that you could use.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
OMG i must have been blind :P
TY
|
|
|
|
|
Use the DrawToBitmap method of the form.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
I need a free obfuscator so no one can see my C# code.
any recommendations?
Thanks
|
|
|
|
|
|
|
If you've got Visual Studio Professional or above then you've got a Community Edition obfuscator in there.
|
|
|
|
|
Hi evrybody,
I want to create a program to play a sound or video stream by windows media player com object (= wmp) .
I have a wmp in my windows form.
I have a stream from that file(sound or video) not a path(file address on HD) .
I wery tried to find out some thing about this problem in internet.
----------------------------
hope to your help.
?
---------------------
Areff Bahrami(KAVEH)
Areff.HB@Gmail.com
---------------------
|
|
|
|
|
I read it 5 times and I still don't understand what your problem is, or how you think we have enough information to try and help you. What have you done ? What is the code ? What is the error message ? Wat goes wrong ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
tanx Christian Graus,
my problem in my programm is that i have a stream containig video or sound and i want to play it in my windows app via windows media player control .
this code can tell windows media player (=wmp) to play a file in internet
AxWindowsMediaPlayer1.Url = "some address";
this code meaning that wmp can play a video or sound streamly .
and my question is how can i play my stream when it is in memory ?
i find something about creating protocols to do something like the url passing to wmp
hope to your help.
---------------------
Areff Bahrami(KAVEH)
Areff.HB@Gmail.com
---------------------
|
|
|
|
|
|
Hello every one,
I am working on TCPClient and TCPServer software, I am using c# .net 2005 for writing this software,It works fine only for text messages if i am sending structure via tcp client then i need to convert the message to bytes and i have to send it via tcp client, in my application its working fine only for the first time, then after that neither Server side application nor Client side application is able to send or receive any byte and even its not giving any error message, can any one help me out for this, Thanks in advance.
|
|
|
|
|
hi there,
I have written a code using C# 2003 in the past I need to run it on the 2005 environment , I changed every thing but I still got this :
var q =
from device in _manager.DiscoverAllDevices() select device.Name;
device and _manager are objects for bluetooth connection ,
the var q should contain every thing returned by the select,
but I do not know what should I change !
I think that the problem is from the statement, but I do not know how
Please help!
Note:the error was about missing (;) after device , _manager,..
There is always something to learn
|
|
|
|
|
Knowledgestudent wrote: I have written a code using C# 2003 in the past I need to run it on the 2005 environment , I changed every thing but I still got this :
var q =
from device in _manager.DiscoverAllDevices() select device.Name;
Your example won't compile on either 2003 or 2005. It will only compile on 2008.
The equivalent code (roughly) in 2005 is:
Collection<string> q = new Collection<string>();
foreach(Device device in _manager.DiscoverAllDevices())
{
q.Add(device.Name);
}
I'm assuming that _manager.DiscoverAllDevices() returns something that when enumerated results in lots of Device objects. If not you will have to change the variable type for device .
Does this help?
|
|
|
|
|
Thank you ,
you are right , I do not know how did not I recognize it,
thanks again it really helped
There is always something to learn
|
|
|
|
|
Hi
iam in windows application in c#
my database is "Firebird Database";
iam saving an picture into database.but iam unable to retrive same picture from database
mycode is :
This code is in DataAccess layer.
string query = "select photo from cust1 where id=" + id;
FbDataAdapter adb = new FbDataAdapter(query, cnn);
DataSet ds = new DataSet();
adb.Fill(ds, "cust1");
if (ds.Tables[0].Rows.Count > 0)
{
DataRow dr;
dr = ds.Tables[0].Rows[0];
if (!dr["photo"].Equals(DBNull.Value))
{
byte[] content = (byte[])dr["photo"];
MemoryStream stream = new MemoryStream(content);
photo = stream;
}
}
Bitmap img = new Bitmap(objcls.photo);---------------"ERROR"
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
pictureBox1.Image = img;
it is giving error "parameter is not valid"
please inform where the exact problem is
murali krishna
|
|
|
|
|
avvaru.murali wrote: please inform where the exact problem is
We can't tell you the "exact" anything unless you explain your problem better. You need to give us more information:
What is photo?
What is the error?
|
|
|
|