|
I can send you a sample solution if you like.
|
|
|
|
|
Yeah, that would be great
my mail is: gregismurf@gmx.de
Thanks!
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Greeeg wrote: Type entry = dll.GetType("PluginTest.Entry");
You need to specify the fully qualified assembly name AFAIK. ie
"PluginTest.Entry, Plugin"
|
|
|
|
|
I have been through various books to learn C#. The books have simple examples and unrelated examples from chapter-to-chapter. I am now trying to think of a C# Windows Application that I can create to help cement C# into my brain.
I have thought about doing a project that will implement the game hangman. I want to somehow make the project database-driven too (with sql).
But was wondering if anyone might have some other ideas, or thoughts about the hangman idea? Maybe some of you have taken an official class where you had to do a major class project utilizing C#?
|
|
|
|
|
Database is always a good choice - get some values, set some values, display the values on some controls. If your conception of hangman involves graphics (drawing on the windows form), that would not be particularly typical of what a person would do to get a "hang" of C#. But there is no right, no wrong. It is upto you. Drawing on the screen is real fun - but my personal view is most of the time in the professional world, you would not need that unless you are working for may be an ad company. Best of luck!
Koushik Biswas
|
|
|
|
|
In addition to the post by Koushik Biswas I'd say that Hangman is quite a good starting point. You can use the database to store a dictionary of words and phrases. Database interaction is probably the most common activity in the business world (certainly, I spend most of my time writing code that interacts with the database).
To get an understanding of more complex logic code, you might try a strategy game. If you are feeling advernturous you could then refactor it so that the computer acts as one of the players. That will get you learning about design patterns as well - this is an excellent transferrable skill that will go beyond C# into many other languages (very important in the modern world where the language of choice changes every few years)
LuluSailor wrote: Maybe some of you have taken an official class where you had to do a major class project utilizing C#?
When I was in high school (16 years ago now) the project was to create a game like noughts-and-crosses or nim.
When I did C++ classes at university (13 years ago) the project set was to create a simple vector drawing package. You could place various shapes (the model in the View-Controller-Model pattern) onto a drawing surface (the view - you could create a custom control for that). Each shape could be selected and moved or resized. Think of is as a very simplistic powerpoint type of application, but with only one slide. The picture could be saved and loaded from disk (so this gets you some practice with File IO, or XML Serialization) and it gives you practice designing a file format.
I hope this helps. I've sprinkled a few good keywords through that you might like to search on. It's all good practice.
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
Hi friends
I need some help on generating left and right mouse clicks anywhere on the desktop or any window opened in it as a matter of fact, in c#. Elaborating further, i want to develop an application in c#, which when run wud click(left or right click) at any specified position on the desktop screen as if i were clicking on that specified position(say "My Computer" icon) uing my mouse.
can someone pls guide me into creating it, i ll be grateful
thanks.Regards.
SB
-- modified at 17:31 Saturday 18th February, 2006
|
|
|
|
|
http://www.developerfusion.co.uk/show/276/
|
|
|
|
|
How can show a contect menu by left (not right of default) click a button?
|
|
|
|
|
Handle the MouseButtonDown (or whatever the name is) event, which gives you which mouse button is pressed and the point where it was pressed. Display the menu there yourself in your MouseButtonDown handler.
|
|
|
|
|
if i give that coordinates i get the context menu in 0,0 screen coordinate not at the button relative
|
|
|
|
|
This works for me, displaying the context menu at the correct position. Note I'm using the right mouse button, but that shouldn't make any difference. I'm handling the MouseDown event of a control on the form, though.
<br />
private void datagridview_MouseDown(object sender, MouseEventArgs e)<br />
{<br />
if (e.Button == MouseButtons.Right)<br />
{<br />
.......<br />
headerContextMenuStrip.Show(dataGridView, e.X, e.Y);<br />
}<br />
}<br />
|
|
|
|
|
|
I have a program that displays data in a DataGridView in C# (but if you are only familiar with the DataGrid, please read on because any advice you have will still be applicable). The DataGridView is bound to a SQL Server table with a typed DataSet. I need to do a few things that I'm having difficulty with, and I'm hoping someone can point me in the right direction.
1) Some columns of the database table contain numbers, like 0, 1, 2, that represent things. For example, in one column, 0 and 1 in the database table should be shown as false and true in the DataGridView. In another case, a small range of numbers in the database table should be represented as a corresponding value from a list of strings. In the DataGridView, these columns are combo box columns that are NOT bound to any data source (I enumerate the possible combo box values when I create the DataGridView). Currently they contain the numbers from the database. How can I get them to contain the corresponding strings? I tried using the CellFormatting and CellParsing events, but they don't work properly due to the many DataError events caused by changing the cell values from short or int (as in the database table column) to string (as in FALSE/TRUE). Are the ValueMember and DisplayMember attributes of the column of any value to me? Do I have to create an unbound column? If so, how do I keep that column sorted as the user sorts the bound columns in the DataGridView?
2) One combo box column of the table gets its combo values loaded from the keys of another table (not bound to it, but I do it manually). But if my table has "foobar" in a column and the keys from the other table that get loaded into the combo box include "FOOBAR" (upper case), I get a data error event. Is there some way to make it case insensitive?
Thanks for any help.
-- modified at 17:24 Saturday 18th February, 2006
|
|
|
|
|
plz i want a code to make a face detection
i will be grateful if this code be in c# or matlab
and any one have this code send me it in hythem18@hotmail.com
thanks in advance
haitham
|
|
|
|
|
This is cutting edge technology. There are two choices:
1. Read the research papers and figure out how to implement the algorithms presented in a useable form.
2. Buy an off-the-shelf module that you can plug into your application.
Both options are expensive. The first is expensive in time, the second is expensive in cost.
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
the site is under construction so both options are failed
any one else can help?
haitham
|
|
|
|
|
eng:haitham wrote: the site is under construction so both options are failed
The context has been lost from that statement. What site are you talking about?
eng:haitham wrote: any one else can help?
I'd be very surprised if anyone here is expert enough to give you face recognition code in C#. As I said the technology is very new. Most of what is availalble will still be in research labs.
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
hi all !
consider this :
if (ListBox1.Items.Count > 0)<br />
{<br />
ListBox1.SetSelected(ListBox1.Items.Count-1, true);<br />
}
I want to put the current item instead of "ListBox1.Items.Count-1"
to take the current Item in ListBox1.how can it possible?
thanks for any help !
s_mostafa_h
-- modified at 14:18 Saturday 18th February, 2006
|
|
|
|
|
Your question is like "if some aliens would like to choose the current human on earth, what would he do"? Get the point? I mean get the point from the view of other forum users who do not know enough about your specific scenario?
Koushik Biswas
|
|
|
|
|
you are right , my ask is incomplete !
in my app. , I want to save my record (with a sql table ),also I use A listBox for navigate between Records :
private void PopulateListBox1()<br />
{<br />
.....<br />
try <br />
{<br />
strSQL = "SELECT name,id FROM MyTable";<br />
....<br />
while (myDataReader.Read())<br />
{<br />
objListItem = new ListItem(myDataReader["name"].ToString(),<br />
Convert.ToInt32(myDataReader["id"]));<br />
ListBox1.Items.Add(objListItem);<br />
}<br />
if (ListBox1.Items.Count > 0)<br />
{<br />
ListBox1.SetSelected(ListBox1.Items.Count-1,true);}....<br />
And in For Save I use the "PopulateListBox1() Function " :
private void UpdateInfo()<br />
{....<br />
try{<br />
strSQL ="update MyTable......";<br />
.....<br />
PopulateListBox1();<br />
....}<br />
So , when I want to save a Record , immediatly the LastRecord is selected .
(ofcourse my Record is saved).
thanks !
s_mostafa_h
-- modified at 10:41 Sunday 19th February, 2006
|
|
|
|
|
Can any one tell the process how i can get the handle to the MDI client(Not MDI Child) Window using Win32 PInvoke. Any kind of suggesion will be highly appriciated.
Thanks.
|
|
|
|
|
I was wanting to make an application that can display the graphical output of various different other applications specificly built to interact with it.
Example:
The main application is showing all the needed information on the main form... but the bottom right hand corner remains blank. The user can select a specialy created "daughter app" to run in this space by using a file open dialog box.
So if i make a clock or clandar program I want selecting this file to run the clock program excecutable BUT output the clock display inside the selected area of the main appliction.
I want to do this so i dont have to keep re-writing the main application when i change the available functionality of what can be displayed in this space.. so it might start out with only a selection of clock and calander but if I write an app to show weather reports, if your buddies are online or share prices, etc that can easily just be opened and displayed in this space.
Could any one give me a pointer on where to even get started with somthing like this?
Cheers.
|
|
|
|
|
You could try writing the clients as plugins to the main application. You could then pass a reference to that blank space (Panel) to the plugin and have the plugin draw itself.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
That is the sort of thing i was angling at, but It's not a subject i have ever encountered and could use some friendly prods as to the right subjects to google or search for here or on MSDN.
Thank you.
|
|
|
|