Click here to Skip to main content
11,412,834 members (74,813 online)

Comments by George Swan (Top 62 by date)

George Swan at 3 days ago View
   
I feel this is a comment, not a solution. It simply expresses an opinion and does not actually solve anything. In my view, the submission is perfectly valid but it has been posted in the wrong section.
George Swan at 3 days ago View
   
Sascha, Thanks for clarifying when anonymous types are required in the equality statement. I take your point about the 'select' statement. Regards, George.
George Swan at 3 days ago View
   
I think that the equality test needs to compare properties that have the same name. So you may need to do this:
join BrugereA in db.brugeres on new {Id=VenA.From} equals new {BrugereA.Id}
Also, there is no need to create an anonymous type in the select statement, you can simply select BrugereA
George Swan at 20-Apr-15 15:47pm View
   
Make sure you have not set the Height or Width properties.
George Swan at 20-Apr-15 11:02am View
   
Check you are not working with a copy of the database
George Swan at 20-Apr-15 1:38am View
   
Make sure you have the following using statement.
using System.Linq;
George Swan at 17-Apr-15 16:00pm View
   
I'm sorry but I can't come up with any other suggestion that may help.
George Swan at 17-Apr-15 12:18pm View
   
Try rebuilding all the projects in the solution.
George Swan at 16-Apr-15 11:54am View
   
In the Solution Explorer window, expand 'References,' right click on Spire.Pdf, select properties, scroll to see the Version number in the 'Properties' Window. Alternatively, in the executing folder of the application, right click on Spire.Pdf.dll, select properties then the Details tab.
George Swan at 14-Apr-15 12:41pm View
   
Looks like you may have the wrong version of Spire.Pdf.dll. I would locate the dll and check its version number
George Swan at 13-Apr-15 5:20am View
   
I think PrimaryPersonID == null; should read PrimaryPersonID = null;
George Swan at 9-Apr-15 15:01pm View
   
Go to this codeproject article .
http://www.codeproject.com/Articles/36468/WPF-NotifyIcon
Download the example project and look at the EncryptDecryptData class
George Swan at 7-Apr-15 9:05am View
   
Shouldn't we think twice before censoring participants, on the grounds that we know what’s best for them? Is that sort of behaviour really appropriate in a free and open forum?
George Swan at 2-Apr-15 17:07pm View
   
The URL string looks incorrect, try :-
"http://flights.makemytrip.com/makemytrip/search/O/O/E/1/0/0/S/V0/DEL_BOM_14-08-2015?intid=homepage_Widget_Search_New-Delhi_Mumbai"
George Swan at 2-Apr-15 11:25am View
   
The default start up Window in a WPF project is set in the App.xaml file. Delete StartupUri="MainWindow.xaml" in the opening tag if you are using an alternative Window.
George Swan at 31-Mar-15 2:40am View
   
Deleted
Your 'for' statements look to be incorrect. Try : for (i=0; i
George Swan at 30-Mar-15 17:51pm View
   
This is a good well-written solution +5. You can further simplyfy the 'if' statement as: if (e.Alt && e.KeyCode == Keys.X)
George Swan at 30-Mar-15 15:41pm View
   
Have you checked that the image file's build property is set to 'Resource'?
George Swan at 16-Mar-15 4:45am View
   
Can you post a sample of your Vendas.xml file please?
George Swan at 9-Mar-15 13:03pm View
   
It looks to me like you need to create a new E2E_Mstuserdetails object inside the 'if' statement.
entities.E2E_Mstuserdetails.Add(new E2E_Mstuserdetails{email=txt_inviteemail});
George Swan at 5-Mar-15 5:04am View
   
It refers to the namespace in which the Model is defined. There should be a project in the solution with the name WinformMVC.Model or something similar.
George Swan at 3-Mar-15 8:38am View
   
It is not sufficient for you to be logged on as an administrator, you need to right click on the application and select 'Run as Administrator'
George Swan at 26-Feb-15 13:02pm View
   
Is the Type of account.Alias exactly the same as that of studentMaster.stdACID?
George Swan at 20-Feb-15 13:46pm View
   
</p>Why not declare a new serializable class and pass the std class into its constructor to initialise the class properties that you want? Then serialise the new class.</p>
George Swan at 17-Feb-15 14:44pm View
   
You need to set the height property of the ScrollViewer to some value
George Swan at 12-Feb-15 1:54am View
   
The 'using' statement calls the Dispose method on your streamWriter so it is closed after your first 'using' statement
George Swan at 11-Feb-15 16:59pm View
   
I think it is because you have called obj.Dispose() before closing it.
George Swan at 9-Feb-15 14:58pm View
   
I suggest that you check the inner exception.
George Swan at 7-Feb-15 18:21pm View
   
Have you tried changing
thistable = sortthistable;
to
thistable = sortthistable.ToList();
George Swan at 2-Feb-15 15:03pm View
   
Try changing the first parameter of the EditAction method from int Idt to int? id.
George Swan at 2-Feb-15 3:46am View
   
Another suggestion, if you are using a microsoft server, is to execute the statement directly in Management Studio and check the message window.
George Swan at 2-Feb-15 3:38am View
   
That's true. It's a common problem with Entity Framework and the like, as they tend to pluralize table names in their classes.
George Swan at 2-Feb-15 3:06am View
   
Have you checked that the table name on the server is actually 'Products' and not 'Product'?
George Swan at 29-Jan-15 18:34pm View
   
It's a great solution. I'd have declared an array of delegates and indexed into the required one in the Where statement.
var TestFunctions = new Func<users, bool>[6];
TestFunctions[0] = c=>c.id.Contains(textBox7.Text);
TestFunctions[1] = c=>c.name.Contains(textBox7.Text);
//........................
var qsearch = db.users.Where(testFunctions[selectedIndex]);
George Swan at 29-Jan-15 18:18pm View
   
I think you may have forgotten to compile the Expression.
var predicate = Expression.Lambda<Func<user, bool>>(check, parameter).Compile();
George Swan at 26-Jan-15 13:24pm View
   
Try setting the DataGrid's DataContext in code
this.pgeDataGrid.DataContext = dTable.DefaultView ;
And setting the ItemsSource in the Xaml
<datagrid name="pgeDataGrid" itemssource="{Binding}"></datagrid>
George Swan at 26-Jan-15 3:41am View
   
Sorry that I couldn't be of more help to you.
George Swan at 24-Jan-15 17:28pm View
   
I cannot see where you are updating the txt_bal.Text to reflect the new balance. If txt_bal.Text does not change the txt_pstatus.Text will not be changed.
George Swan at 24-Jan-15 10:07am View
   
Is this any use to you?
http://www.codeproject.com/Articles/24330/WPF-Bind-to-Opposite-Boolean-Value-Using-a-Convert
George Swan at 23-Jan-15 9:16am View
   
Have you seen this article on how to reduce flickering? http://www.codeproject.com/Tips/390496/Reducing-flicker-blinking-in-DataGridView
George Swan at 23-Jan-15 1:51am View
   
Could you please provide some more information?
Which column is the key that links the two databases?
Which column do you want to group the data by?
Which entries are credit and which are debit transactions?
Is the balance a running balance ordered by date?
George Swan at 23-Jan-15 0:54am View
   
You are very welcome.
George Swan at 23-Jan-15 0:53am View
   
You are very welcome - I'm sorry that I couldn't be of more help.
George Swan at 22-Jan-15 9:26am View
   
I think that your problem arises because part of the normal functionality of the textBox is to place the caret at the position of the cursor when the left mouse button is clicked, as this facilitates editing. By changing this functionality you will lose operational consistency between related controls which may both confuse and frustrate users. My only suggestion is that, to achieve the effects you want, you may have to replace the default template for the control with your own version. This is not a trivial task. Best wishes.
George Swan at 22-Jan-15 5:13am View
   
I think you may be getting confused between cursor and caret. The flashing vertical bar is the caret. Its position is determined by the caretIndex property.
George Swan at 19-Jan-15 7:34am View
   
It means that your app is requesting a file that cannot be found. It could be that the JsonfilePath string is not a valid filepath
George Swan at 18-Jan-15 9:15am View
   
Pleased you have managed to sort it out.
George Swan at 17-Jan-15 5:57am View
   
I think you are doing this the hard way. Try downloading FileHelpers from https://github.com/MarcosMeli/FileHelpers
With FileHelpers.dll you can the read your file straight into a Proccess[] with just a couple of lines of code and it's free.
George Swan at 13-Jan-15 2:22am View
   
As it stands, your test does not actually test anything. You need to Assert (test) that some value is correct or that a certain method has been called. Unit tests should run entirely in memory and not rely on external services such as a database. A useful technique is to fake the database and to test that the values passed to it are correct. In effect, you are testing how your program relates to the database rather than testing the database itself. It’s good to keep the statements simple so as not to introduce bugs into the test.
George Swan at 12-Jan-15 12:12pm View
   
I'm keen to improve my coding so I would be most grateful if the guy who down-voted this solution could please explain the reason why.
George Swan at 9-Jan-15 1:29am View
   
I suggest that you have a look at the Prism QuickStarts, especially the interactivity sample.

http://msdn.microsoft.com/en-us/library/gg430879(v=pandp.40).aspx
George Swan at 9-Jan-15 1:20am View
   
I suggest that you add the above code to your method and return the GroupModel list instead of the IQueryable. Best wishes.
George Swan at 7-Jan-15 5:44am View
   
I would suggest that the reason that your 'not implimented' method is being called is that there is an implicit conversion between a byte array and a Binary, so the method will accept both types. I suggest that you remove that method and convert any Binary you may wish to use to a byte[] before passing it to the other method. You can use the binary.ToArray() method to do the conversion.
George Swan at 11-Jan-12 12:00pm View
   
Deleted
It looks like Linq is built for comfort, not speed.
George Swan at 21-Nov-11 2:12am View
   
Deleted
Have you seen this excellent Snippet Designer plugin http://snippetdesigner.codeplex.com/
George Swan at 4-Oct-11 2:46am View
   
Deleted
Shouldn't the tbxAnswer.Text = total.ToString("n0"); statement be outside the while loop?
George Swan at 12-Sep-11 2:11am View
   
Deleted
Could I ask, why can't you use the default TreeView Sort method? mytree.Sort();
George Swan at 9-Aug-11 2:21am View
   
Deleted
Hasn't Blowfish been replaced by the AES compliant ciphers such as Twofish and Rijndael? So why not use the Aes class as detailed here?
George Swan at 5-Jul-11 5:24am View
   
Deleted
Shouldn't the IfLengthInRange extension method use the && operator and not the || ?
George Swan at 5-Jul-11 1:54am View
   
Deleted
I think a typo my have crept into the spelling of maintenance both in the heading and the code blocks.
George Swan at 28-Jun-11 12:59pm View
   
Deleted
Sorry Charles, I thought the subkey already existed. I've tested my new version and it now works ok . Best wishes George.
George Swan at 24-Jun-11 2:16am View
   
Deleted
Think there are syntax errors in the code. list.Aggregate should be sList.Aggregate?

Advertise | Privacy | Mobile
Web03 | 2.8.150427.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid