|
What is 'star of david' ?
Obviously, no-one is going to answer this, because the question is too broad. The best we can do, is give a broad reply. You want to install DirectX if you want to write anything but the most trivial of turn based games. It comes with plenty of examples you can work through. If your game is simple and turn based, then you should be fine using just GDI+.
Either way, make sure you know VB well before you embark on a game project, games are amongst the most complex things you can try to write.
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 )
|
|
|
|
|
Your request is too vague. You need to be specific. Even a game as simple as noughts-and-crosses (tic-tac-toe in some parts of the world) would be too much to answer for a forum post.
You should start by planning your game. What are the rules? What do you need to display on the screen? Is it a single player game, or multi-player? Will you compete against the PC or a player across the internet?
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
A lot of your posts are obvious homework questions. If you are not willing to do the work yourself, drop out of school now.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Hi
i am working in VB.net using .net 2.0. i have a requirment to disable a listbox control's single item ....i searched msdn which says..
"You can disable an item in a list box or combo box by adding a single backslash to the beginning of the expression. "
i tied the following code
ListBox1.Items.Add("good")
ListBox1.Items.Add("\bad")
but it didn't worked and "bad" did not appeared disabled..
dispite this my requirement is to disable an item when mouse double click event occurs...
hope someone will come with solution
Faith is higher faculty than reason..
shaz jazz
|
|
|
|
|
A listbox contains listitems. The listitem object has an enabled property on it. Find the correct listitem and mark the enabled property to false. There is a double click event on the listbox. The sender passed it should be the listbox. You should be able to cast the sender as a listbox and get the selectedindex. Use the selected index to get the listitem and set the enabled = false.
Hope that helps.
Ben
|
|
|
|
|
kubben wrote: The sender passed it should be the listbox. You should be able to cast the sender as a listbox and get the selectedindex. Use the selected index to get the listitem and set the enabled = false.
but its not possible because there is no class in whichi save that item further there wasn't any need to use selectedindex for selecting item but i can use selecteditem for such purpose..
so the origanl question is as it is...
May God help u solv ur problems as well,thx in advance!!
|
|
|
|
|
So using SelectedItem would work fine too.
inside the method you would have:
DirectCast(Sender, ListBox).SelectedItem.Enable = false
Pretty sure that should work.
Ben
|
|
|
|
|
no its not working at all.. i did just as mentioned..it gives this exception message
"Public member 'Enable' on type 'String' not found."
its windows application i hope you are not misinterpretting that its web application.
May God help u solv ur problems as well,thx in advance!!
|
|
|
|
|
Would you post your code, so I can see what you are doing?
Thanks,
Ben
|
|
|
|
|
sure here it is:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ListBox1.Items.Add("good")
ListBox1.Items.Add("bad")
End Sub
then here is 2nd chunk of code:
Private Sub ListBox1_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseClick
DirectCast(sender, ListBox).SelectedItem.Enable = False
End Sub
hope you'll get to the problem.
Thanks..
|
|
|
|
|
Well, I guess you were right I was remembering the web control listbox. Still I think you can get something to work. The listbox has a SetSelected method on it, which takes an index and true or false if the item should be selected. So I would suggest you keep track of the index of the items that are double clicked and then on the click method check to see if they just clicked on one of the indexes that is not suppose to be selectedable and then call the SetSelected method and set that index back to false.
Hope that helps.
Ben
|
|
|
|
|
ok thankyou very much, your idea wud be indeed helpfull.
May God help u solv ur problems as well,thx in advance!!
|
|
|
|
|
now i made this code
cmd.CommandText = "select distinct * from reglz where fatrname LIKE '%" & TextBox1.Text & "%' "<br />
DataGridView1.Refresh()<br />
<br />
ad.SelectCommand = cmd<br />
ad.Fill(ds, "reglz")<br />
DataGridView1.DataSource = ds.Tables("reglz")<br />
this code will give me some data in the datagride
so what i need to do now is ,to select a number of records to edit in the "fatrname" filed
from datagrideview
but after i select these number of records i dont know how to edit all the field of this "fatrname" or any field for all the records that i select
please help me
very importnat
|
|
|
|
|
1 - use real variable names
2 - this code is ripe for SQL injection attacks, you should read up on this and fix it
3 - try using sensible subject lines, so people know what you want
At the end of all that, I'm not sure if a datagridview supports editing fields. What does google say ?
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 )
|
|
|
|
|
Almost all his posts are 'help' or 'urgent.' He's now on my list.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
I am creating deployment setup for windows based application by cutomising deployment project, using User Interface editor and Custom Action editor.
In my custome action i want to know the path(location) at which this application is being install.
Basically when setup program runs the first screen pop's up and ask user to select the location to install the application. This path i want to access in my later custom actions.
If any one knows how, please kindly let me know. I appreciate your help.
Thank you very much.
|
|
|
|
|
Hi forum,
i like to create a UserControl with some textboxes, buttons and so on.
This is no problem, starting with a UserControl project, placing the textboxs, buttons on the control panel, compiling, adding the dll to any project. It works perfect.
My problem now is: Placing MyUserControl on any form, it is possible to code in the calling form MyUserControl.Controls.Items(...).... to get a collection of controls.
Using this collection, it's possible to get direct access to all controls placed on MyUserControl.
Who to prevent direct access from any forms to the controles placed on the MyUserControl using the Controls Collection ?
Any comments pls ?
|
|
|
|
|
There's really no way to stop people accessing your controls this way. Why would you want there to be ? I mean, if someone starts manipulating the controls on your control, then that's their problem.
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 )
|
|
|
|
|
Thank you for your quick reply, this answer i expected, after some testing, that there is no way.
Why to prevent modifying the control - well, isn't a control just some code for any specific task? Istn't it better to prevent modifyiny?
But ok, you are right, people modifying an control my be it's there problem .....
|
|
|
|
|
Hello Friends,
I am creating one vb6.0 project and i have the reqirement to display Crystal Report in Picturebox,so can anyone tell me how this is possible pls send me te code to dispay Crystal report on picturebox control in vb 6.0.
Thanks and Regards,
Girish B, Shukla
GIRISH
|
|
|
|
|
A picturebox shows a picture. Therefore, you need to render your report to a bitmap, then you can put that bitmap in a picturebox.
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! i am using vb.net 2003. but now i have started getting an error "object reference not set to an instance of an object" and that too as soon as i start coding. as soon as i enter the editor, the first thing i do select an "oledb connection control" from the toolbox. and next in the property tab of the oledbconnection, as soon as i select the connectionstring value, the abovementioned error occurs. i just can't understand y this is happening as i haven't even started coding! ne1 ever encountered this error b4???
|
|
|
|
|
Prem Ranjan wrote: ne1 ever encountered this error b4???
Please stick to English...
What you can do is open a second instance of the IDE, attach the debugger to the first instance, and see where you end up when it crashes.
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: stick to English...
Text speak is turned off right now...b4 didn't compile for a minute there
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
hi guys
i have a string
like "12007" or "112007"
in this string last four characters denotes to a specific year and the rest shows month ,
i want to get a the month either ir is 1 or 12 or 10 ,, i cannot use sunstring because i am not sure about its lenth it might me 1 or two , so how could i get the exazct month ,,,
thansk in advance
hello
|
|
|
|