|
can sum1 kindly lemme know how shouldi make a snooker game in C#??
all kinda tips and tricks..
do share plz..
i need them for my project
waiting anxiously
umair
|
|
|
|
|
First step - learn C#
Second step - learn DirectX ( probably )
Third step - learn some physics
Fourth step - write the code
Your question is far too broad, all you can hope to get are broad answers. You'd do better to tell us what you do know, what you're looking to learn about, etc. Even then, really, the best way to get help is to write some code, and ask questions about specific issues.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
And cut down the textspeak, too
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Oh, that goes without saying.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am curious to see if people that textspeak alot on these forums are at a computer or posting messages through a pda...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I suspect at a PC, but just used to communicating that way.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
It could be just a force of habit kind of thing.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I think it's two things:
1 - force of habit, as you say
2 - young people have always found new ways to express themselves, so that us old folks can't understand them.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: us old folks can't understand them
Yep. Us old guys who talk about Twisted Sister and when I Wanna Rock was out on video :->
Christian Graus wrote: young people have always found new ways to express themselves
Our way of expressing ourselves to them is a simple or
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I think most of them are not english-natives, and use/used IRC too much.
|
|
|
|
|
Those are also possibilities.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Zoltan Balazs wrote: and use/used IRC too much.
anyone talking like that would be driven off by the natives where I hang out in IRC.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
Christian Graus wrote: 2 - young people have always found new ways to express themselves, so that us old folks can't understand them.
Which is ofc stupid when they need adult assistance. OTOH I can believe it readily enough remembering how much trouble I had getting through to my brother that even if his friends all emailed back and forth in smsspeak (which was doubly sad since he didn't have a cell at the time) without capitals or punctuation it's not an acceptable style to use if trying to get advice from a college prof on a science fair project. I (think I) finally did get through to him and he's generally used something resembling English when emailing me since but getting past 'all my friends do it this way' was maddening.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|
|
well.. i know hell more bout C#
probably not bout directx and i dont think its needed!
i know physics..
i know i have to write code..
but i just dont know how to start.. where to start from?
how to move out images? i mean.. all dat crap!!
|
|
|
|
|
Hi Chumairr
You hell know more about C# , so we won't get any more programming posts. But, if you want tricks and tips about writing pool / snooker software - this is a good site to start with.
Good luck!!
http://www3.sympatico.ca/eric.perreault/tipshtml.html[^]
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
Please read the forum guidelines. Hightlights include:
1. Do not use text speak.
2. We are here to help with code you are stuck on, not to do your homework/job for you.
______________________
stuff + cats = awesome
|
|
|
|
|
Hi everyone,
I'm trying to write a simple swap function for two items in a combo box (this is used for moving an item in a combo box up or down depending on the button the user clicks).
My problem is that when I set ComboBox.DroppedDown = true, when the user clicks the button again while it is dropped down, (or anywhere else besides the combo box) it switches back to selecting the index that was initially selected. This is a problem when they want to move the same item more than one position -- it doesn't follow the user's selection.
private void SwapFrameNames(int oldIndex, int newIndex)
{
cmbFrames.DroppedDown = true;
object temp = cmbFrames.Items[newIndex];
cmbFrames.Items[newIndex] = cmbFrames.Items[oldIndex];
cmbFrames.Items[oldIndex] = temp;
cmbFrames.SelectedIndex = newIndex;
}
The code works fine if I comment out the first line of the function -- it follows the selection as expected.
Any ideas?
Thanks,
Phil
|
|
|
|
|
Not really a fix, but the swap is going to take a split second to occur, right ? So why not drop it AFTER doing the swap, if having it open stops the swap from working ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Christian,
Thanks for your suggestion, doing as you said fixed the problem of it not following the user's selection, but it uncovered what was part of the root problem: when the ComboBox is open, and the user clicks anywhere that isn't part of the dropdown/box, it consumes the mouse event(s) so that the button that is clicked on is not activated -- this means the user has to click twice to continue moving the item down the list.
So I guess this is a new question now: is there any way to pass the mouse events on to the rest of the form after the dropdown closes itself?
Thanks again,
Phil
|
|
|
|
|
Hi Phil,
two ideas:
1.
the DroppedDown property manipulation should not be there at all; it is not
needed to swap frame names; if your app needs it, put it elsewhere (or
modify your method name)
2.
you might want to use SelectedItem instead of SelectedIndex; this should
even work if the selected index is different from oldIndex/newIndex;
it will fail if your ComboBox holds duplicates (not a good idea anyhow)
private static void SwapFrameNames(ComboBox cb, int oldIndex, int newIndex) {
object sel=cb.SelectedItem;
cb.SelectedItem=null;
object temp = cb.Items[newIndex];
cb.Items[newIndex] = cb.Items[oldIndex];
cb.Items[oldIndex] = temp;
cb.SelectedItem=sel;
}
Hope this helps.
|
|
|
|
|
I wasn't sure where to put this dilemma, but here it goes.
I have a web application wrapped around a state machine workflow that allows the user to pick search parameters from one content pane and then displays the results in the parallel pand via a gridview. I've wrapped both panes in and am using ajax extenders (Calendars and Watermark) in the search pane. I also have the search parameters saved into a Dictionary object.
Unfortunately this is slowing down this portion of the application to a crawl. I'm at a loss as to what is causeing the delays, which happen both on ititial page load and when search button is clicked. I'm using some ajax extenders in other portions of the application with no detriment. I would provide code samples if you think they'll help, just ask
Any suggestions or leads would be much appreciated.
Thanks,
An American football fan -
Go Seahawks!
Lil Turtle
|
|
|
|
|
AJAX means I'd have stuck with the ASP.NET forum ( where you've also posted this )
Perhaps your code is making too many AJAX callbacks and that is slowing it down ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I was maybe thinking that the ajax may have been slowing down the Dictionary of search parameters, the search inputs first try and get any previous parameters when the page is initialized.
Sorry for cross posting, I was just trying to cover my bases.
Thanks for the response, I'll look into it.
An American football fan -
Go Seahawks!
Lil Turtle
|
|
|
|
|
How do you build up the rows in your grid? Do you create an array of rows and add them all at the end, or do you add one at a time?
I've seen codes adding items to DataGridView one at a time and I think the grid does some 'OnAddedItem' handling like trying to refresh etc because when I changed it to adding arrays of data instead, the processing time was cut down to 1/3d.
-Larantz
|
|
|
|
|
Larantz wrote: How do you build up the rows in your grid?
I retrieve a Data Set from a database table via NetTiers.
How did you handle populating the GridView? Using the DataBound to create array, then ItemCreated?
Thanks for the insight though.
An American football fan -
Go Seahawks!
Lil Turtle
|
|
|
|