|
Use a picture box to show Gif image, it will show animation effect.
-Dave.
------------------------------------
http://www.componentone.com
------------------------------------
|
|
|
|
|
i making a game in C# and directx 9 and need to know about collision detection in C# 2005. please help.
Software Engineer
|
|
|
|
|
|
your in the wrong forum! try graphics[^]
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
i google things like: application commands, drag & drop, console command, etc. But no clue on geting what i needed, also if any1 know how its this called, & a lilte example in this site ill be so tankful
|
|
|
|
|
Command-line argument[^]
You get them in your program by using this Main signature
static void Main(string[] args)
{ }
Eslam Afifi
|
|
|
|
|
ty so much, now i can google it & get good info, thx again
|
|
|
|
|
You're welcome
Eslam Afifi
|
|
|
|
|
Hi,
I created the Gridview and has some boundfield columns to display(invisible or visible). I used a parameter to pass to display some particular fields. However, I need to search the column index before visible it. How am I going to do that?
protected void Page_Load(object sender, EventArgs e)
{
String selectcolumn = this.Request.QueryString["Selected"];
string[] columnID = commaStringToArray(selectcolumn);
// how to find the datafield of each column and visible them.
}
private string[] commaStringToArray(string strComma)
{
string [] strArray;
strArray = strComma.Split(new char[] {','});
return strArray;
}
In the web, they were all searching the headertext. But, I want to do the datafield.
|
|
|
|
|
|
I have a textbox with AutoCompleteSource set to CustomSource. AutoCompleteCustomSource has to be of type AutoCompleteStringCollection. During suggestions, .NET uses--I believe--sort on strings and gives suggestions. So if the string collection contains: 22, 26, 2162, 2052, 2002 and user types in 2 it will suggest 2002, 2052, 2162, 22, 26 because this is ascending order for strings. However, I want it to suggest in ascending order for integers so suggestion will be: 22, 26, 2002, 2052, 2162.
Even if the source for AutoCompleteCustomSource is sorted it get resorted based on string sort. Any ideas how I can show them in ascending order of integers?
|
|
|
|
|
Hello,
This will not be possible to implement. Reason being that the AutoCompleteSource only takes String
collection and would sort the colection only in string format.
Regards,
Allen Smith
ComponentOne LLC
www.componentone.com
|
|
|
|
|
I have two date values
date1 = 23/11/2008 16:00
date2 = 30/11/2008 21:30
I want to know how many days in total which I can obtained by TimeWSpan
bu I also want to know if any hours and minutes are remaining out of the date difference?
how can I do it?
|
|
|
|
|
TotalDays
TotalHours
TotalMinutes
TotalSeconds
TotalMilliseconds
And
Days
Hours
Minutes
Seconds
Milliseconds
properties of a TimeSpan
The difference between TotalDays and Days is that they return, for example, 1.5 and 1 (the whole elapsed days) respectively.
Eslam Afifi
|
|
|
|
|
TimeSpan ts = (new TimeSpan(date2.Ticks)).Subtract(new TimeSpan(date1.Ticks));
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
but that will show the total hours between date1 and date2 when i just want the remaining hours after (date2 - date1)
|
|
|
|
|
jrahma wrote: but that will show the total hours between date1 and date2 when i just want the remaining hours after (date2 - date1)
No, the TotalHours property gives you the total hours. The Hours property gives you the remaining hours.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Mbah Dhaim wrote: TimeSpan ts = (new TimeSpan(date2.Ticks)).Subtract(new TimeSpan(date1.Ticks));
That was a complicated way of getting the time difference... Just do like this:
TimeSpan ts = date2 - date1;
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
thanks
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
In SQL Server 2005 Express, I created a database the I right clicked to view the Properties then I went to Exended Properties. Now I have I have added a new Property called DBVersion and the value is 1.0
how can I read that property in my C# Windowx Application?
|
|
|
|
|
Hi,
I have a setup for MDI forms.
When I open an MDI client , i want the parent MDI opacity to be 50 % and back to 100 % when I close the client form.
My problem is that I am unable to access the Parent MDI form.
????????
Looking froward for your response.
Thank you!
Nauman
"Mess with the Best, Die like the rest"
|
|
|
|
|
you can set parent form opacity to be 50% after show the child form, and add event FormClosed on your child form, in that event set back parent opacity to 100%.
but...
when you set parent form opacity this will also affect to your child forms.
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Dear Dhaim,
This is the plan i have in mind,
But Wht i am confused is
How can I access / change property of MID Parent while i am standing on MDI Chile.
Some sort of reference or something ??
Thx,
Nauman
"Mess with the Best, Die like the rest"
|
|
|
|
|
Two solutions both from the parent not the child.
1. Subscribe to the child's FormClosing event (in the parent form after creating the instance).
2. Use the parent form's MdiChildActivate[^] event - this is fired every time a child is opened or closed.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
M. Nauman Yousuf wrote: But Wht i am confused is
How can I access / change property of MID Parent while i am standing on MDI Chile.
use this.Parent.Parent from your MdiChildForm
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|