|
SelectionStart property
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Guys I've been able to write the program to load and display and save the file but I want the code that will check to see if the file is a bitmap file before it displays it .
So what I want from u and the code that will help me check whether the file is in a bitmap format.
Thanks.
tony-yeyo
|
|
|
|
|
do you mean .bmp ?
if so then how about checking the extension of the file?
Hope I am right
|
|
|
|
|
yeah that will work alright but i've been asked to check the bitmap file header size.
So if u can kindly give me the code to check the bitmap file header size.
thanks
tony-yeyo
|
|
|
|
|
search the net what the header contains exactly. Then read in the file binary. Check if the header is the same.
I know it should start with BM ... (see a bmp in a hex editor)
hope this helps.
I've found a living worth working for, but I haven't found work worth living for.
<marquee>
|
|
|
|
|
I have Windows 2003 Server, and I want to stream live content.
I'd also like to record the stream on the server, for later playback.As far as I know, I shouldn't use the encoder to create the archive this enhances the processing load on the encoding computer . I'd learnt to configure media server with media server management console to record it on the server, but I don't know how to control my Windows Media server programmatically to create an archived copy.I could have archived the streamed content in the client from where encoding initiates , that would be big overhead as archived files is to be uploaded in the server ultimately .
I didn't find the answer in the online help. Any suggestions would be highly appreciable
Many thanks,
imspratik
imspratik
|
|
|
|
|
Hi there!
i want to develop a keylogger with auto hide functionality in C#
please guide me how to implement winsocks.
2nd. I want this application to automatically download and execute through the web browser by java/vb script .... is this possible or not??
Naveed
|
|
|
|
|
Naveed Noor wrote: please guide me how to implement winsocks.
What does winsock have to do with keylogging?
Naveed Noor wrote: I want this application to automatically download and execute through the web browser by java/vb script
Oh... So you don't want to give the user any choice. It just installs itself. And I guess the winsocks is so the keylogger can report back to base.
I would suggest that what you are asking for is on the verge of the illegal and we are not going to help you commit illegal acts.
|
|
|
|
|
You want to write some kind of spyware / virus, write ?
Get out from here...
|
|
|
|
|
Better make your legs form a rotating disc.
(Short: Get lost!)
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Liek OMG! I wan 2 HAX!!!!! plz giv me cod to be l33t hax0r!!!!
|
|
|
|
|
how to make certain columns editable and certain ones not editable in
the dataGrid control,...
for example if the input dataset for the grid was filled using query
"select a1,a2 from table1 "
i wanna show both columns a1,a2 in grid but only wanna let a2 to be
changed from datagrid...
Thank you
Ahmed
|
|
|
|
|
make that column read only..
some thing like this
<asp:boundfield headertext="ID" datafield="MasterId" sortexpression="MasterId" readonly="True">
abhinav
|
|
|
|
|
sorry some problem with the post
here it is:
<asp:BoundField HeaderText="ID" DataField="MasterId" SortExpression="MasterId" ReadOnly="True" />
in the html view of the grid, on that column add this attribute
-- modified at 6:48 Monday 7th August, 2006
abhinav
|
|
|
|
|
My question remains still there..
how ?
Ahmed
|
|
|
|
|
i have modified the post please check it bro.
abhinav
|
|
|
|
|
Thanks for the reply,
i just forgot to tell that i am woking on Winforms not ASP.Net..
how would be do it in Winforms.. ???
Thanks...
Ahmed
|
|
|
|
|
Hi all,
I would like to know what is the difference between those 2 methods: Int32.Parse() and Convert.ToInt32().
Also, in your opinion, which method shall we use to convert a string to an integer and why?
Thanks,
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
I would use Int32.TryParse as it deals with strings that are poorly formatted ( are not just numbers )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks for the info, I didn't know about this TryParse method
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
That works only in VS2005, not in VS2003.
|
|
|
|
|
stancrm wrote: That works only in VS2005, not in VS2003.
You can also use TryParse on a double and set its options accordingly so that it parses only integers.
|
|
|
|
|
I always use Int32.Parse, because I can add also NumberStyles, for example if I want to parse a hexadecimal number.
|
|
|
|
|
The only difference when converting from a string is the way a null value is handled.
If you use Convert.ToInt32 on a string, it will return zero if the string is null, otherwise it will use Intr32.Parse to convert the string.
---
b { font-weight: normal; }
|
|
|
|
|
Hi All,
Is it possible <Without opening the file to display it to the users> to send a file directly to the printer to be printed as the user click on a print button instead of on the preview button? If it is would you know how to do so?
Thank you in advance.
He who laughs last...
|
|
|
|