Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
3 Endorsements
Ranked #486
Ranked #1K
~11.7K People Reached
Interests
Programming

38 Posted Topics

Member Avatar for daniel955

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 …

Member Avatar for Nisa_1
0
536
Member Avatar for mavtcr

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

Member Avatar for G_Waddell
0
969
Member Avatar for jared.geli

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, …

Member Avatar for jared.geli
0
4K
Member Avatar for spac

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 …

Member Avatar for Jamblaster
0
260
Member Avatar for spyros.lois

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.

Member Avatar for GeekPlease
0
160
Member Avatar for ar.vhin04

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

Member Avatar for daniel955
0
89
Member Avatar for chdboy

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

Member Avatar for chdboy
0
182
Member Avatar for monching

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

Member Avatar for monching
0
177
Member Avatar for Gaving30
Member Avatar for lkallas

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 …

Member Avatar for RobCr
0
155
Member Avatar for Dili1234

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 = …

Member Avatar for Dili1234
0
439
Member Avatar for PM312

try this DgvLedger.Rows.Item(GRNO).Cells(6).Value = Val(DgvLedger.Rows.Item(PRNO).Cells(6).Value + DgvLedger.Rows.Item(GRNO).Cells(3).Value)

Member Avatar for PM312
0
133
Member Avatar for khair.ullah

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 …

Member Avatar for daniel955
0
521
Member Avatar for WDrago

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 …

Member Avatar for Pamilerin
0
168
Member Avatar for willjohn.wrar393

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

Member Avatar for daniel955
0
105
Member Avatar for khair.ullah

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: …

Member Avatar for daniel955
0
232
Member Avatar for prancode

Handles txtsanc_date.TextChanged should be Handles txtsanc_date.KeyPress

Member Avatar for Pgmer
0
291
Member Avatar for Shizuo

try select Round(column) from: http://dev.mysql.com/doc/refman/5.0/en/mathematical-functions.html#function_round

Member Avatar for Shizuo
0
103
Member Avatar for danielgr

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?

Member Avatar for TnTinMN
0
170
Member Avatar for ppstyle

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.

Member Avatar for atinobrian
0
293
Member Avatar for morgan.wowk

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 …

Member Avatar for Mitja Bonca
0
285
Member Avatar for Cameronsmith63

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

Member Avatar for Cameronsmith63
0
101
Member Avatar for krunal1986

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.

Member Avatar for krunal1986
0
281
Member Avatar for darthswift00

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

Member Avatar for daniel955
0
137
Member Avatar for thiemebr

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 …

Member Avatar for daniel955
0
230
Member Avatar for vbmanDan

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 :)

Member Avatar for daniel955
0
202
Member Avatar for keyur.smith

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.

Member Avatar for dnanetwork
0
99
Member Avatar for daniel955

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?

0
87
Member Avatar for daniel955

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 …

Member Avatar for perfectweb
0
138
Member Avatar for daniel955

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.... …

0
96
Member Avatar for daniel955

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 …

Member Avatar for daniel955
0
620
Member Avatar for Coemgen3

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 …

Member Avatar for kplcjl
-1
133
Member Avatar for WhistleTips
Member Avatar for vincezed

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

Member Avatar for daniel955
0
84
Member Avatar for daniel955

[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

Member Avatar for daniel955
0
153
Member Avatar for daniel955

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

Member Avatar for daniel955
0
63
Member Avatar for BrunoRosales

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 …

Member Avatar for daniel955
0
113
Member Avatar for daniel955

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 …

Member Avatar for octavia
0
107

The End.