Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
73% Quality Score
Upvotes Received
11
Posts with Upvotes
11
Upvoting Members
10
Downvotes Received
4
Posts with Downvotes
4
Downvoting Members
4
6 Commented Posts
1 Endorsement
Ranked #858
Ranked #569
~66.5K People Reached
Favorite Tags

152 Posted Topics

Member Avatar for judithSampathwa

you have a property named 'ShowPlaceHolders', make it false. you will not get '___'. use this 'ShowPlaceHolders' through your code. Thanks, as a senior poster, i hope u knw, please mark it as solved if its working fine. sry, just reminding you

Member Avatar for Renathu
0
8K
Member Avatar for DaveTran

if (!isFinished) { // If the level has arrived at the current destination node and not at the final node // Destination node is based on the interpolated points on the spline if (AtNode(catmullRomSpline.InterpolatedPoints[nodeIndex], node)) { // If we have not reached the final node/interpolated point on spline if (nodeIndex …

Member Avatar for Chris_33
1
2K
Member Avatar for arunkumars

Hi, Need an help in reading a column value where there are addresses which holds data in any language, for now, when i try to read the column value i get ?????? instead of 世田谷. Any idea how to read this exact value back ? The insert worked properly. but …

Member Avatar for cgeier
0
107
Member Avatar for arunkumars

select SUBSTRING('hello 世田谷区経堂世田谷区経堂 ',5,10) as Japanese gives output as "o ????????". Is there any way i can get the substring of above string ? Thanks in advance for your help.

Member Avatar for h4ng4r18
0
265
Member Avatar for bananacat

"UPDATE tblUsers SET UserImage = @file" What does @file hold there ? probably it should hold the path i suppose, so the patch is usually like "C:\Desktop......", the best way to incluse the escape sequence in the query would be to add "@", you can actually read the file path …

Member Avatar for cgeier
0
4K
Member Avatar for Prasadd

are you referring some DLL ? check your references module in the solution explorer. also, it would be good if you specify the exact error message and when you get that, compile time or run time ?

Member Avatar for ChrisHunter
0
193
Member Avatar for 161696e57f

use "using" like below using (SqlConnection connection = new SqlConnection(connectionString)) { // your queries and logic go here. } this will ensure that all the connections are closed without any external action like con.close();

Member Avatar for arunkumars
0
163
Member Avatar for kshahnazari

Copying the file and reading it might cause a data loss, i.e. there might be a few bytes that is still to be written but by that time the copy action is performed. may not be the best option, but can be given a try with this kinda scenario. Do …

Member Avatar for Ketsuekiame
0
305
Member Avatar for redalert8

http://www.daniweb.com/software-development/csharp/threads/437362/getting-started-with-c-the-list you can go through this.

Member Avatar for arunkumars
0
88
Member Avatar for Praise92

your code line numbered 44 should actually be as below. cmd.Parameters.Add("@Roles", OleDbType.VarChar).Value = Emp_role; this should work fine.

Member Avatar for Praise92
0
165
Member Avatar for iConqueror

Console.Read() accepts the first character of the string and returns ASCII code (Integer Value) of the first character. Hence as ddanbe suggested, use Console.ReadLine(), this takes a string and returns a string.(and yea, dont forget to typecast)

Member Avatar for iConqueror
0
174
Member Avatar for jayesh.babu.140

2nd link from jobpencil would be the best option and in that solution 2 is the option i would arrive at.

Member Avatar for arunkumars
0
158
Member Avatar for Praveen_10

obvious, where is your dataGridView1 initialized in "Form2 f= new Form2(dataGridView1);" Plus, if you want to fill the same details from one grid to another, why dont you use the same datasource, rather than having so much circus done inside. The more code you write, the more bugs it leads …

Member Avatar for ddanbe
0
241
Member Avatar for arunkumars

Hi all, We are using TortoiseHg(Mercurial) as a sub version control in our project currently, we are now planning to migrate the sub version control to TFS 2013. 1. is this possible without the loss of any revisions that are exisitng. 2. is this possible without the loss of any …

Member Avatar for pritaeas
1
135
Member Avatar for arunkumars

Hi all, We are using TortoiseHg(Mercurial) as a sub version control in our project currently, we are now planning to migrate the sub version control to TFS 2013. 1. is this possible without the loss of any revisions that are exisitng. 2. is this possible without the loss of any …

Member Avatar for arunkumars
0
222
Member Avatar for TarkiB

When you have the values of a table from the database, why dont you bind that to the gridview directly ? that should help you reduce your code as well. Bind the Datasource of the grid view.

Member Avatar for arunkumars
0
294
Member Avatar for CasianSushin

Textbox is by default in Datagrid. use Rowhandle to use the row and its values in columns and this code should fall under the Submit button implementation. This should solve your problem.

Member Avatar for swadeep.kujur
0
187
Member Avatar for Turismosan

you can use a dictionary to make it more adaptive for future changes, meanwhile solve your current problem, the same way Ancient Dragon's approach.

Member Avatar for kamilacbe
0
205
Member Avatar for GagaCode

You can initialize and fill the details of the combobox after the InitializeComponent() method in your form constructor. That should solve your problem, call this everytime will just refresh your combobox and there is no place where your previous actions are saved like in your web pages.

Member Avatar for arunkumars
0
422
Member Avatar for Trevor_3

the best option would be what deceptikon has suggested. for your problem, seems like the method call has some issues, call dgv_CellContentClick(_tabname,sender,e); instead of dgv_CellContentClick(_tabname,null,null); lets see if this works.

Member Avatar for arunkumars
0
445
Member Avatar for kieky

kieky : could you debug and check if there is any SQLException that is unhandled during an insert, code seems okay. 1. remove the lines 12 and 32, "db.DMSDataContext.SubmitChanges();" and add it in between 33 and 34. 2.1. Ensure you have a transaction present in your insert query, which will …

Member Avatar for arunkumars
0
277
Member Avatar for saiphyn

SqlCommand scmd = new SqlCommand(" SELECT DOB FROM customers where customer_ID = 25", Conn); Conn.Open(); DateTime dt = Convert.ToDateTime(scmd.ExecuteScalar().ToString()); Conn.Close(); This should work.

Member Avatar for arunkumars
0
349
Member Avatar for arunkumars

Hi, I have a VS2005/C#/.NET 2.0 application in which i'm hosting a web browser control. I would like to offer a "record" and "playback" functionality for web page activity. Meaning- Say a user wants to record a certain sequence of actions like (just a raw example): 1) navigating into a …

Member Avatar for arunkumars
0
474
Member Avatar for celineshh

okay, there are quite a few ways to go about this, i would suggest the below one, 1. you should have a placeholder for saving the list of users, either a DB or an XML, add a column to the users table, say 'IsAdmin' and to this you can set …

Member Avatar for arunkumars
0
1K
Member Avatar for Ghost

well, a.If there is only one form in that application you are using, then Application.Exit will close the application itself. b.If there is one more Form that you are navigating to from the main form, then in the new form, use Form2.Close(), this will take you to the back to …

Member Avatar for vasanthmc2
1
10K
Member Avatar for Dark_Omen

Even I have a doubt on @"Network Library=DBMSSOCN..? also, what is 'Persist info', that is in connection string...

Member Avatar for Momerath
0
3K
Member Avatar for denmarkstan

also post the 'AddObject(addstaff)' method, may be there is a problem with connection establishing and record saving or may be you open the connection in savechanges(). Not a serious issue, we can help :)

Member Avatar for arunkumars
0
290
Member Avatar for diya45

You seem to be creating a new thread for the same discusion. I suppose you copy and paste the whole code from internet and want it to work automatically, it wouldnt happen so, what ever you get over the internet is just a generic idea, you will have to customize …

Member Avatar for diya45
0
102
Member Avatar for ComputerFirstAde

There is Math.Round(), you could make a good use of it for the rounding off part. cheers... :)

Member Avatar for ComputerFirstAde
0
156
Member Avatar for diya45

Well, see, your stored procedure requires the guest_id as the first parameter, but you dont seem to send that thru the procedure. Hint : you can actually have a variable named guest_id in ur appication and you can fill the varaible when u retrieve it. during an update you can …

Member Avatar for arunkumars
0
217
Member Avatar for xikhari.some1behindu

may be the variable 'n' is more than array length, so even after your array elements are traced, the loop is stil alive, probably this might be the reason for the exception, how ever we cannot confirm this until we know what 'n' is.

Member Avatar for deceptikon
0
215
Member Avatar for PraveenaMani
Member Avatar for diya45
Member Avatar for balaji.murari
Member Avatar for sid.khan.505

If you have installed Visual studio as said above, start the program -> File -> New -> Project / Solution. This will take you to windows forms application by default, further there are options like class library, Windows Forms Application, console application etc, u can choose any of them based …

Member Avatar for arunkumars
-1
204
Member Avatar for semicolon

GridView supports paging directly, give the page property as 5, and u need to bind the gridview with the datatable in the PageIndexChanging Event. Datatable.Select can be used only when you need to filter out some data from the datatable...

Member Avatar for arunkumars
0
330
Member Avatar for vimit

add a reference of Fee management to library mangement and make sure u include the dll of fee management is included in the exe of library management.

Member Avatar for arunkumars
0
270
Member Avatar for AngelicOne

adapost was correct. dataGridView1.DataSource = null; This would completely clear the data grid and the values it has, if u populate it again, u ll get a all new set of datas

Member Avatar for creations1220
0
1K
Member Avatar for michael.vertreese

the line 23 has the magiclogic, add "numberTotal += r.Next(100, 1000);" on line 23. your problem is solved. it worked for me.

Member Avatar for arunkumars
0
1K
Member Avatar for arunkumars

Hi, There has been a doubt on DataTable.Select method. I do not get an expected result when i query a datatable, if there is an 'AND' condition, i do not get a resultant data back into rows again. The code i have done is // clone to get the structure …

Member Avatar for Mitja Bonca
0
1K
Member Avatar for arunkumars

Hi all, I know that one advantage of method overloading is that the implementation can be overridden for the same method name, but wanted to know how is that going to be an advantage for us. All the links explain how to do it, and not why to do it …

Member Avatar for Mitja Bonca
0
226
Member Avatar for arunkumars

Hi, We have been using Log4Net to log errors and exception in my application, its a pretty huge project, and I know the messages are logged Asynchronously, but for a few cases the method and message that is getting logged is empty, Ex : Date:09-05-2012 22:16:13,Level:ERROR,Message:,Method:MonitorTimer,ClassName:ABC.DEF.BO.SchedulerBO.Scheduler,Parameters:,User:Admin, The Message is empty, …

Member Avatar for thines01
0
121
Member Avatar for selfuser

shepri, your question doesnot seem to be understandable, please be more clear on your requirements, thanks, and also show what have you done.

Member Avatar for thines01
0
340
Member Avatar for spowel4

> try > { > StreamReader sr = new StreamReader(new FileStream(fileName, FileMode.Open, FileAccess.Read)); > while ((fullLine = sr.ReadLine()) != null) > { > row = fullLine.Split('\t'); > parsedData.Add(row); > } > sr.Close(); //define a string[] of your choice or the string that you want, ex string[] rowAdditional, parsedData.Add(rowAdditiona); > } …

Member Avatar for thines01
0
189
Member Avatar for arunkumars

Hi, I have a doubt in MS SQL, The below condition in the WHERE clause as you can see, "Where COTDetails NOT BETWEEN 32 AND 63 OR COTDetails is NULL", I want to the WHERE clause in such a way that the COTDetails is not between 32 and 63 and …

Member Avatar for ChrisHunter
0
152
Member Avatar for JasonWung

but, i dont think you wil need a thread for this, in Start_Click event write your logic, in that have a loop which can read 50 rows, disable the start button until 50 rows are read, then enable it, again for the next click, read the next 50 rows.

Member Avatar for JasonWung
0
120
Member Avatar for arunkumars

Hi, the problem statement is that, i have written my code Process.GetCurrentProcess().Kill() to kill my process while the application exits, i know it happens automatically, but my application is a relly big application, there were scenarios where the application was not exitted properly and the only way to exit was …

Member Avatar for arunkumars
0
187
Member Avatar for M.Waqas Aslam

Instantiate your struct which has serial no as a variable and then access the serial number using the object of that struct. the struct has not been initialised, hence you are getting "object refrence is not set to an instance of an object." exception. try this out.

Member Avatar for arunkumars
0
183
Member Avatar for JasonWung

Do you want to log the time or do u watn to find the time difference between your start and end, and log the difference into your log. to get the time difference, Datetime dt = Datetime.Now; //Call your function which does the start of the logging. TimeSpan ts = …

Member Avatar for arunkumars
0
207
Member Avatar for IKhan123

Well, its a little confusing what you are trying to say, u either have a table in a sql server or your have your data stored in excel sheets as a file. OR do u have a datatable filled with values already and then merge them to one datatable?

Member Avatar for IKhan123
0
114

The End.