Click here to Skip to main content
Page 1 of 3
Page Size: 10 · 25 · 50


Author filtered by: Pheonyx [x]
Answer 14 May 2013   license: CPOL
There are various approaches you could take to achieve this.one could be to do a foreach loop on the form.controls collection where you are searching for a control of type MenuItem, then collect the name property from it and put that in an array. Then when you want to retrieve a control you...
WPF
Answer 14 May 2013   license: CPOL
You issue is this:FacId varchar(40) as a result when you do this:ON F.facid = B.facid you are trying to compare a Varchar(40) with a Bigint which you cannot. Hence your error.
C#
Answer 14 May 2013   license: CPOL
you cannot do a logical comparison on an event.ValueChanged is an event on the control not a property.Hence your error.
C#
Answer 13 May 2013   license: CPOL
This article was linked in todays CodeProject news letter, it might give you some hints and tips on how to achieve what you are after:http://endyourif.com/entity-framework-beginners-guide-done-right/[^]
Answer 13 May 2013   license: CPOL
Your issue, I believe relates to the fact that Skip uses defered execution.(see remarks on the following link)http://msdn.microsoft.com/en-us/library/bb358985(v=vs.90).aspx[^]I would suggest breaking the code down a bit:IEnumerable allines =...
C#
Answer 13 May 2013   license: CPOL
You are not setting the Array list to have any objects.You should change your code to do something similar to this:if(MyData.Count
C#
Answer 10 May 2013   license: CPOL
Ahh, I found my issue.It was actually further down in my user control.For those that are interested I was using stackpanel to contain my listbox.As the listbox grew so did the stackpanel (which is how it is meant to behave). However the stackpanel does not stop growing when it reaches...
Question 10 May 2013   license: CPOL
Hi guys,I have an issue that I don't know how to resolve.I am building a WPF C# application using a MVVM approach (well trying).I have a container window that has a menu on the left hand side, on the right different views are loaded depending on which menu option is...
Answer 9 May 2013   license: CPOL
How are you inserting the text to SQL. If you are not already I would suggest using a parametrised query as this should overcome that issue.
C#
Answer 9 May 2013   license: CPOL
I think you are better off doing something like this:Dim elapsedTimeList As New List(Of TimeSpan) elapsedTimeList.Add(sw.Elapsed)Then you can use Linq to get the largest and smallestdim min as timespan = elapsedTimeList.Min();dim max as timespan =...
Answer 9 May 2013   license: CPOL
This might give you a starting point,http://stackoverflow.com/questions/14259262/implementing-ivalueconverter-to-convert-string-to-image[^]You will want to look at how to access resources within a resource dictionary through code as well because that will be how to retrieve the image.
Answer 8 May 2013   license: CPOL
Break it down into chunks. It is only the individual message size limit that is being reached so, if for example you are transmitting a collection of data, send it in chunks rather than all at once.
Answer 8 May 2013   license: CPOL
Yes it should be possible.Have a read of the following links they should provide a good starting...
Answer 8 May 2013   license: CPOL
Somthing like this might do the job:private string CellCombination(IEnumerable values){ string result = ""; foreach (string s in values) { if (!string.IsNullOrWhiteSpace(s)) result += string.Format("{0},", s); } return result.Trim(',');}Or the same...
C#
Answer 8 May 2013   license: CPOL
try{ DataTable dt = new DataTable(); con.Open(); string qry1 = " SELECT * from Stock WHERE (ProductName LIKE @ProductName)" ; SqlDataAdapter da = new SqlDataAdapter(qry1, con); da.SelectCommand.Parameters.AddWithValue("@ProductName" , cmbProductName.Text); ...
Answer 7 May 2013   license: CPOL
I believe your issue is here:da.SelectCommand.Parameters.AddWithValue("@ProductName", cmbProductName.Text);You need to change it to:com.Parameters.AddWithValue("@ProductName", cmbProductName.Text);As it is the com you are executing and not the data adapter.
Answer 7 May 2013   license: CPOL
Try reading this link, was the first link when googling "WCF error code 10061" http://social.msdn.microsoft.com/forums/en-US/wcf/thread/58e420e9-43a3-4119-b541-d18158038e36/[^]Based on the information you provided that looks like it could be same issue and there are various solutions...
Answer 7 May 2013   license: CPOL
You could look at the following links, combine the information and you should be able to achieve what you are...
Answer 7 May 2013   license: CPOL
You said you've tried a few things, have you read this article and tried its approach?Seven simple steps to enable HTTPS on WCF WsHttp bindings[^]
Answer 7 May 2013   license: CPOL
I think you need to change:v_startdt.AddDays(v_adddays).ToString();to be v_startdt.AddDays(v_adddays).Date.ToString(@"dd/MM/yyyy");Also, I would advise looking up how to use parameters in your SQL queries to prevent against SQL...
C#
Answer 7 May 2013   license: CPOL
1) I would not use Textboxes instead use DateTimePickers for the date information.2) Use a NumberUpDown for the number of days to increment by.So you have 3 controlsDateTimePicker StartDateDateTimePicker EndDateNumberUpDown NoOfDaysEndDate.Value =...
C#
Answer 7 May 2013   license: CPOL
You could have a separate table that stores the next companyNumber to use. then append that to the end of the string. If you did this in SQL when you insert the record it would prevent multiple clients getting the same number.Each time the InsertCompany statement runs, you read the current...
Answer 3 May 2013   license: CPOL
First thing, Arrays start at 0, not 1 so changefor (int i = 1; i
C#
Answer 3 May 2013   license: CPOL
Try changing:BthID = TxtBthNo.Text.ToString().Trim();To BthID = Convert.ToInt64(TxtBthNo.Text.Trim());
C#
Answer 3 May 2013   license: CPOL
Test it, but at a quick look yes it should show the ID value for each row in your list.
C#
Answer 3 May 2013   license: CPOL
https://www.google.co.uk/search?q=implement+sorting+to+datagridview+in+winforms+c%23&aq=f&oq=implement+sorting+to+datagridview+in+winforms+c%23&aqs=chrome.0.57j62.473j0&sourceid=chrome&ie=UTF-8[^]
Answer 2 May 2013   license: CPOL
Have a read here:http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/60affc28-364a-4a8a-8f03-ec976918c2ca[^]They appear to be attempting to do the same thing, there are some ideas you could try.
Answer 2 May 2013   license: CPOL
Have a read up on SQL Parameters.http://www.dotnetperls.com/sqlparameter[^]http://csharp-station.com/Tutorial/AdoDotNet/Lesson06[^]
Answer 2 May 2013   license: CPOL
When you load the UserControl set the focus to it. The Key Press event is a bubble event that travels from the currently focused control down the control tree. So if the user control is loaded but not has focus then a control beneath it will receive the key press bypassing it.At least based...
Answer 2 May 2013   license: CPOL
Remove these two lines: Debug.Fail("ERROR : We should never get to AddToCart.aspx without a ProductId."); throw new Exception("ERROR : It is illegal to load AddToCart.aspx ...
Answer 2 May 2013   license: CPOL
I would suggest using the Background Worker class.An example is here BackgroundWorker Class Sample for Beginners[^]But if you google it there are alot of other really good tutorials.
Answer 2 May 2013   license: CPOL
Solution Guide 2:Dim sql as String = "Select * From Company Where CompanyName=@CompanyName"Dim objDA As System.Data.SqlClient.SqlDataAdapter = _ New System.Data.SqlClient.SqlDataAdapter(sql, connection)objDA .Parameters.Add("@CompanyName",...
Answer 1 May 2013   license: CPOL
I would do something similar to the following:Dim cmd3 As New SqlCommand("select * from Company Where CompanyName=@companyname", connection)cmd3.Parameters.Addwithvalue("@companyname", mycombobox.SelectedValue)cmd3.ExecuteNonQuery()Dim da As New SqlDataAdapter(cmd3)da.Fill(dt)if...
Question 1 May 2013   license: CPOL
Hi guys,So I am working on a routine that validates and imports some data between two systems.both routines output their results into a list of objects and I am trying to bind to this list in my GUI.What I would like to achieve is that each type of result, be it a validation result...
Answer 1 May 2013   license: CPOL
Have you even done any research?It took about 2 seconds of typing into google and found this:http://social.msdn.microsoft.com/Forums/en-US/sqlsmoanddmo/thread/fda283ef-5a8b-424d-b549-074ccc19c8d7[^]Start here and see where you get.
C#
Answer 1 May 2013   license: CPOL
Build a Setup Project and make the .Net framework a pre-requisite. This will install the .Net framework / prompt you to install it. Then install your application.http://support.microsoft.com/kb/307353[^]
Answer 1 May 2013   license: CPOL
Assuming the actual SQL statement you are trying to run is correct I would change your code as follows:SCon.Con.Open(); string str = "Select count(*) from Studdet where studid = @studid"; SqlCommand cmd = new SqlCommand(str, SCon.Con); cmd.Parameters.AddWithValue("@studid",...
C#
Answer 30 Apr 2013   license: CPOL
There are various options to you, and this is a very broad approach to things.It also depends how you want to operate.If the sites do not need 100% up to date information then you could use Data Synchronisation approaches:Choose a Data Synchronization Technology[^]If they do need...
Answer 30 Apr 2013   license: CPOL
Change 33 to 31 and give that ago.Sorry mean change it to 32 not 31.The reason for this is that indexes in c# start at 0 and not at 1, so in order access column 33 you need to pass index 32.
Answer 30 Apr 2013   license: CPOL
Kenneth is correct, your Style overlays ontop of the original backgroundI'm not sure if which of these you need but if you force their background to be from the parent then it should resolve the issue. CornerRadius="10,10,10,10" ...
Answer 30 Apr 2013   license: CPOL
Try looking here:http://www.ehow.com/how_6530417_use-grouping-crystal-reports.html[^]OrStep by Step Creation of Crystal Report using its Features Group, Graph, Cross-Tab and Sub Report[^]
C#
Answer 29 Apr 2013   license: CPOL
In the textbox validating event query the database (unless you already have the data in memory) for an entry with the given ID. If it returns nothing then there is no entry. If it returns something then it is valid. And you already have the students info in memory if you need it.
C#
Answer 29 Apr 2013   license: CPOL
Have you installed the 32bit runtime? And is your program set to compile to "Any CPU" or have you chosen a specific one? If you haven't chosen one, try setting it to x86.
Answer 29 Apr 2013   license: CPOL
Solution was devised with the help of Johannesnestler. Moved the initial creation of the main form to the start of the method, but kept the show at the end after the configuration check.Kudos to Johannesnestler for the help.
Question 29 Apr 2013   license: CPOL
Hi Guys,So I have created an application that has a custom OnStartUp event handler.The code within which is similar to this:m_ConfigurationManager = ConfigurationManager.InitializeInstance(Assembly.GetExecutingAssembly().GetName().Name, Code.StringToSecureString());if...
Answer 26 Apr 2013   license: CPOL
Your issue is here:public void Populate(){ ProcessInstance selectedItem = m_SelectedItem; SelectedItem = null; Items = null; List processInstances = new List(); foreach (Process process in Process.GetProcesses()) { ...
Answer 26 Apr 2013   license: CPOL
The solution here:Linq Query - Call Method.[^]might solve your issue.
Answer 25 Apr 2013   license: CPOL
With a bit of casting you could do the followingFor(int i = 0; i
C#
Answer 23 Apr 2013   license: CPOL
Try some initial research, there are various approaches you can take depending on the context of your e-mail system.http://bit.ly/11gXx2Z[^]
Answer 18 Apr 2013   license: CPOL
Your error, I would guess, occurs on one of these three lines:string sub1 = (Convert.ToString(dateTimeDate.Value)).Substring(3, 2); string sub2 = (Convert.ToString(dateTimeDate.Value)).Substring(8, 2); orsub = (Convert.ToString(sub)).Substring(0, 3);Before you attempt any substring...

Page 1 of 3
1 2 3


Advertise | Privacy | Mobile
Web04 | 2.6.130513.1 | Last Updated 15 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid