- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- Interests
- Programming
38 Posted Topics
Hi I am a beginner in game programming and would like to make a rocketmania clone using opengl, the display and interaction part is done. I also have a classes named gameboard and tiles with their properties. but I am having problems on game logic, where the fuel flows into … | |
Re: note that month part should be in caps "dd/MM/yyyy" small m is for minutes Here is a link: http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx | |
Re: Question: is the datagridview connected to a database? if you have a database like access or mssql, you would like to have another table that logs employees who made changes. to know that the employee has made changes on some row call on datagridview.CellEndEdit Private Sub datagridview_CellEndEdit(ByVal sender As System.Object, … | |
Re: I'll just give you some important parts For inputbox, the user's input will be stored in the variable input_value Dim input_value as String input_value = InputBox("Enter a number: ") Then to check if input_value is an integer Dim test_integer as Integer if Integer.TryParse(input_value,test_integer) then 'What to do if the test … | |
Re: Call the fill method of the bound data table, something that looks like this TableAdapter.Fill(Dataset.Table) Checking if a certain form was closed should be easy. | |
Re: For newbies express is fine, what's different is that express has limited processing power and memory. Source: http://www.microsoft.com/en-us/sqlserver/editions/2012-editions/express.aspx | |
Re: First of all try to enclose the code with a try catch. for better error handling. Try 'Your code Catch ex as Exception Msgbox("An error has occured. " & ex.Message) End Try | |
Re: if your try to run the query in mysql, what is the result? and please put a proper error message to your catch block. ex: Catch myerror as MySqlException Msgbox("An error has occured. " & myerror.Message) End Try this will display a specific error message for easier debugging | |
| |
Re: What you must do first is to create a unique index Open the table in design view in MS Access, select the firstname and lastname columns to make add them into the unique index, and then click the little key on the toolbar. then refer to here on how to … | |
Re: You should add MsgBox(ex.Message) in your catch block, for further error messages. A sample code 'Variables Dim myConnection As DbConnection Dim factory As DbProviderFactory = DbProviderFactories.GetFactory("System.Data.SqlClient") Dim command As DbCommand Dim dr As DbDataReader Dim adapter As DbDataAdapter = factory.CreateDataAdapter() Dim row as integer = 0 'Initialize values myConnection = … | |
Re: try this DgvLedger.Rows.Item(GRNO).Cells(6).Value = Val(DgvLedger.Rows.Item(PRNO).Cells(6).Value + DgvLedger.Rows.Item(GRNO).Cells(3).Value) | |
Re: First create A unique index of customerID in the foreign table customer_detail I used the name IX_CustomerID for the unique index in my sample then use the code below to catch the duplicate entry error. Try 'Do insert here Catch ex As Exception If (ex.Message.IndexOf("IX_CustomerID") >= 0) Then 'IX_CustomerID is … | |
Re: Here is how I get my data from the datareader while (reader.Read()) { Console.WriteLine("\t{0}\t{1}", dataReader.GetString(dataReader.GetOrdinal("column1")), dataReader.GetString(dataReader.GetOrdinal("column2"))); //column1, and column2 are the column names from your dbtable } Source: College Though there is also another way, by using a datatable but I haven't tried it in C#. My sample is in … | |
Re: First Rule of Programming/Debugging ... Use try catch statements ^_^ do it like this ... Private Sub addakoordr_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles addakoordr.Click Try 'Your very long code here Catch ex as Exception MsgBox("An unexpected error occured: " & ex.Message) End Try End Sub | |
Re: Searching for duplicates is built in your sql provider Run this query ALTER TABLE <table_name> ADD CONSTRAINT <constraint_name> UNIQUE(<column_name>) then you can use try catch Try 'Initialize factory, connectionstring, adapter, command , etc. doInsert() Catch ex As Exception If ex.Message.IndexOf("IX_code") Then MsgBox("Duplicate data entry found") Else MsgBox("An unexpected error occured: … | |
Re: Handles txtsanc_date.TextChanged should be Handles txtsanc_date.KeyPress | |
Re: try select Round(column) from: http://dev.mysql.com/doc/refman/5.0/en/mathematical-functions.html#function_round | |
Re: I'm finding it hard to understand the problem, so here is my question - Are those data retrieved from some database?, how are they inserted in the first place? - For what purposes do you check for duplicates? | |
Re: Cannot insert explicit value for identity column in table 'group' when IDEN ???? Please post the full sentence of your error message ... I think the problem lies in your primary key, maybe its not set to auto-increment or something... Hope this helps. | |
Re: First set the view property of your listview to 'list'. By the way you can directly use listView1.Items.Add("Text"); you should add more info on what kind of information, or what kind of output you are expecting for your listview. then maybe I can add a little more info. Hope this … | |
Re: What I did when I encountered this problem ... Go to MyProject>References Find the one you need and set CopyLocal value to True Hope this helps | |
Re: Hmm... I think binary is wrong since it can only store 0's and 1's or is that your real purpose? If not then try using varchar. | |
Re: Hmm, I haven't tried using datagrid or gridview but you can try using alias example: Select m_address as address From table The 'address' there is the alias Executing this query will change the header name from m_address to 'address' Hope this helps | |
Re: Hi, I'm using mssql 2008 and the following code works for me Dim rawData() as Byte fs = New FileStream("filelocation", FileMode.Open, FileAccess.Read) Dim FileSize as Integer = fs.Length rawData = New Byte(FileSize) {} fs.Read(rawData, 0, FileSize) fs.Close() the "filelocation" is the full address like "C:/Pics/image.jpg" or "./Pics/image.jpg" rawData is then … | |
Re: Try this While sdr.read() ListBox1.Items.Add(sdr.GetString(sdr.GetOrdinal("ColumnName"))) End While I used GetString since we are just adding items to a Listview doing this doesn't require the iterator "i". also try adding MsgBox(ex.Message) in your catch block. Hope this helps :) | |
Re: Hi, what seems to be the problem? What the code you posted does is ... once a buttonis clicked, it will check if textbox1 is empty, if it is empty it will show the ErrorMessage. If you want to validate for correct input, use RegularExpressionValidator Hope this helps. | |
For our android app project, we will be developing on java eclipse I am going to use opengl for graphics part. but what data structure should I use for the gameplay? | |
Hi I am experienced in ASP w/ C# but a beginner in PHP: How do I get the value of a unique index of a column of mySQL in PHP: [CODE=C#] try{ //do connect //insert data } catch(Exception ex){ if (ex.Message.IndexOf("Column_Name") >= 0) //<-- how do I do this in … | |
I am using VS2008 with TaoFramework's freeglut and OpenGl Can someone help me? I always get "CallbackOnCollectedDelegate" error when I apply this rotation and scaling with mouse and timer on my 3D Tetris game project, but if I don't apply timer the scale and rotate will be out of control.... … | |
Hi, C# in VS2008 using Tao.Freeglut and Tao.OpenGl I am required to create a 3d Tetris game. I have a menu named BuildMenu [CODE=C#] private static void BuildMenu(){ submenu1 = Glut.glutCreateMenu(selectMessage); Glut.glutAddMenuEntry("New Game(N)", 1); Glut.glutAddMenuEntry("Reset(R)", 2); Glut.glutAddMenuEntry("Quit(Q)", 3); Glut.glutAttachMenu(Glut.GLUT_RIGHT_BUTTON); } [/CODE] using these code I can make a menu pop … | |
Re: nested loops are loops within loops [code] for(outer=1; outer<4; outer++){ for(inner=1; inner<5; inner++){ //do something here ... } } [/code] in the sample: first iteration: outer = 1, inner = 1 second iteration: outer = 1, inner = 2 third iteration: outer = 1, inner = 3 fourth iteration: outer … | |
| |
Re: In Database Management we have something like security level for each user, the number 0 represents an ordinary member, 99 is administrator. the webpage will redirect the user to a "member's area page" or an "admin's area page" depending on the security level. I hope this helps | |
[URL=http://img690.imageshack.us/i/12946613.jpg/][IMG]http://img690.imageshack.us/img690/7592/12946613.jpg[/IMG][/URL] why is there a hole in my cube when I rotate it like this? colors: front side is red back side is white left side is blue right side is green top side is yellow bottom is teal | |
I'm Daniel, a Chinese living in the Philippines currently 3rd year Computer Science. and has no experience in developing software. I know how OOP works and basic programming in C#, Java create simple website with ASP.net with C#, SQL server and MySQL | |
Re: hi, is this what you are looking for? My example: using SQL datasource... configure data source ... specify SQL statement option [code=SQL] SELECT MemberID, Age, PositionID FROM Members WHERE Age = @Age AND PositionID = @PositionID [/code] this SQL code will select member id with age of @Age and position … | |
Hi everyone, Creating a software with C#, does it require many forms? because I want to create a elementary grade 4 math courseware, but I only know how to create a basic calculator with C# >_<. I just started 3rd year computer science and, our group's thesis proposal has been … |
The End.