- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 11
- Posts with Upvotes
- 11
- Upvoting Members
- 10
- Downvotes Received
- 4
- Posts with Downvotes
- 4
- Downvoting Members
- 4
152 Posted Topics
Re: 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 | |
Re: 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 … | |
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 … | |
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. ![]() | |
Re: "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 … | |
Re: 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 ? | |
Re: 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(); | |
Re: 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 … | |
Re: http://www.daniweb.com/software-development/csharp/threads/437362/getting-started-with-c-the-list you can go through this. | |
Re: your code line numbered 44 should actually be as below. cmd.Parameters.Add("@Roles", OleDbType.VarChar).Value = Emp_role; this should work fine. | |
Re: 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) | |
Re: 2nd link from jobpencil would be the best option and in that solution 2 is the option i would arrive at. | |
Re: 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 … | |
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 … | |
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 … | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Even I have a doubt on @"Network Library=DBMSSOCN..? also, what is 'Persist info', that is in connection string... | |
Re: 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 :) | |
Re: 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 … | |
Re: There is Math.Round(), you could make a good use of it for the rounding off part. cheers... :) | |
Re: 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 … | |
Re: 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. | |
Re: why dont you try using delegates to work this out. ? | |
Re: there is no difference as such, both mean the same. | |
Re: 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 … | |
Re: 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... | |
Re: 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. | |
Re: 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 | |
Re: the line 23 has the magiclogic, add "numberTotal += r.Next(100, 1000);" on line 23. your problem is solved. it worked for me. | |
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 … | |
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 … | |
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, … | |
Re: shepri, your question doesnot seem to be understandable, please be more clear on your requirements, thanks, and also show what have you done. | |
Re: > 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); > } … | |
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 … | |
Re: 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. | |
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 … | |
Re: 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. | |
Re: 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 = … | |
Re: 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? |
The End.