Forum: C# 28 Days Ago |
| Replies: 9 Views: 419 I think you are stuck with Invoke because that is how C# moves the object pointer into the memory stack of the thread that wants to use it.
A little trick on sending the event to something that does... |
Forum: C# 28 Days Ago |
| Replies: 9 Views: 419 If the receivers of the event absolutely must have the information back into thier own thread (like a Windows App sometimes does) then you would handle the invoke for arguments in those receiving... |
Forum: C# Aug 14th, 2009 |
| Replies: 2 Views: 694 I changed your code so that you can actually click on the other buttons.
public partial class Form1 : Form
{
private int controlnum = 0;
public Form1()
{
... |
Forum: C# Aug 12th, 2009 |
| Replies: 7 Views: 19,271 Post your code that sets up the connection string and I will take a look. The error you mention is a typical syntax issue.
// Jerry |
Forum: C# Jul 6th, 2009 |
| Replies: 5 Views: 625 DataRow[] rows = yourTable.Select(string.Format("ID='{0}'",cbIDs.Text));
yourLabel.Text = (string)rows[0]["Name"]; |
Forum: C# Jun 26th, 2009 |
| Replies: 2 Views: 368 DataTable tbl = new DataTable();
SqlDataAdapter adapt = new SqlDataAdapter(string.Format("select cust_address,customer_city from customers where customer_id = {0}", customerID), con);... |
Forum: C# Jun 16th, 2009 |
| Replies: 7 Views: 862 Maybe posting the rest of the code (or entire project) will help. The adapter.table is a bit of a mystery.
The acceptchanges is not really needed until later after the rows have all been added. I... |
Forum: C# May 18th, 2009 |
| Replies: 8 Views: 1,871 When you scrub off all the fluffy help methods like WriteLn etc, you see that all communications through the comport are actually in byte[] format. Your BMP can be placed into a byte array, and sent... |
Forum: C# May 13th, 2009 |
| Replies: 1 Views: 311 estimatorDataSet.QuoteCalcHeader["estimateno"]. <<== is estimateno correct ? does the QuoteCalcHeader accept a string as the indexer ?
What is QuoteCalcHeader ? (Type?)
You can ignore the code... |
Forum: C# May 13th, 2009 |
| Replies: 2 Views: 205 Place an Applicaiton.DoEvents(); inside of the loop so that the main thread has a chance to service its message queue and this should allow your label to update.
// Jerry |
Forum: C# May 13th, 2009 |
| Replies: 1 Views: 379 Why do you think this is an error.
Your timer is on a 1000 ms loop, and the TryEnter has a max wait time of 1ms. It should always return true, because there was nothing preventing it (IOW nothing... |
Forum: C# May 13th, 2009 |
| Replies: 1 Views: 532 Does the button have a BackColor property ?
button.BackColor = Color.Red; |
Forum: C# May 12th, 2009 |
| Replies: 1 Views: 1,862 Are you saying that when you change rows, you want to know how to set the radio buttons to have the correct one checked ?
The BindingSource has an event for position change. Setup a BindingSource... |
Forum: C# May 11th, 2009 |
| Replies: 9 Views: 506 Jonny,
You can send your code to me at shawjh@meadowcrk.com
Using the forum is more difficult to work out the details, so we can do it through emails.
// Jerry |
Forum: C# May 11th, 2009 |
| Replies: 9 Views: 506 Jonny,
Too bad you had to work today... got to pay the bills though :)
Plugins will certainly work in your case. Before jumping into that, let me offer another option for your situation.
... |
Forum: C# May 9th, 2009 |
| Replies: 9 Views: 506 a) Tell the main exe to find and load the new dll (keeping in mind that the dll file name will not be hard coded)
What some plugin systems use is the file extension or a subdirectory where it... |
Forum: C# May 9th, 2009 |
| Replies: 2 Views: 482 If you are referring to licensing the software application on the target machine, you may want to checkout this website:
http://www.eziriz.com/intellilock.htm
I use this product, and it is very... |
Forum: C# May 9th, 2009 |
| Replies: 9 Views: 506 I think what Jonny wants to do is have two dlls with the same name. Some customers get the one version , and other customers get the other one.
Many programmers have a debug version of a class... |
Forum: C# May 8th, 2009 |
| Replies: 3 Views: 931 Make sure your DateTime value is enclosed in single quotes.
You might find it easier (to read and build) if you assemble the string using the string.Format() method.
SqlConnection conn = new... |
Forum: C# May 8th, 2009 |
| Replies: 9 Views: 506 Have you checked your reference properties for the DLL, and make sure it is not set to version specific ? |
Forum: C# May 7th, 2009 |
| Replies: 4 Views: 1,024 There is a good example at:
http://support.microsoft.com/kb/308507
If this is a clean Select statement to get the data from the databaes, then this works (SqlCommandBuilder). If your data comes... |
Forum: C# May 7th, 2009 |
| Replies: 2 Views: 713 You can search for C# XPATH on Google for tons of information on this subject. I am not sure you will find exactly what you are looking for.
There may be a better alternative, or atleast worth... |
Forum: C# May 4th, 2009 |
| Replies: 2 Views: 625 I may be wrong, but I think you are asking on how to make a static class that all other classes can use.
You can change your classGlobal.cs to be static by changing the class definition to public... |
Forum: C# May 3rd, 2009 |
| Replies: 7 Views: 577 I don't think it is a wrong thing to say at all.
LinkedList<T> is a generic replacement for the old style coded Linked List. |
Forum: C# May 3rd, 2009 |
| Replies: 1 Views: 293 Maybe this link will help
http://www.csharpfriends.com/Forums/ShowPost.aspx?PostID=1
It includes some C# examples, and reasons for the different type declarations. |
Forum: C# May 3rd, 2009 |
| Replies: 7 Views: 577 Maybe this link wil help you understand linked lists.
http://www.c-sharpcorner.com/UploadFile/jeradus/UsingLinkedListInCS11102005005525AM/UsingLinkedListInCS.aspx
Too bad they are still... |
Forum: C# May 3rd, 2009 |
| Replies: 2 Views: 347 First, you should decide if you are going to use the Wizard created class or stick with your own connection objects. Personnally I hate the wizard created class, it is more trouble than it is worth.... |
Forum: C# May 3rd, 2009 |
| Replies: 2 Views: 898 Simple... Just set e.Handled to true
When e.Handled is set to true, then the keypress event stops there, otherwise it is passed up the chain to the TextBox.
// Jerry |
Forum: C# Apr 29th, 2009 |
| Replies: 3 Views: 1,705 As Scott said, use YourStringVariable.IndexOf("Value to Search")
and then use the SubString method to extract what you want. |
Forum: C# Apr 28th, 2009 |
| Replies: 2 Views: 380 External assemblies come in two flavors. Referenced (required at startup), and dynamically loaded at some point when the program wants to use some feature within the external assembly. Dynamically... |
Forum: C# Apr 24th, 2009 |
| Replies: 4 Views: 1,355 I have read about this is several books, and it appears that you will need to build a method that will take the array as a parameter, move all the elements except for the one you want to delete and... |
Forum: C# Apr 24th, 2009 |
| Replies: 9 Views: 928 Ramy,
I was under the same impression that you were, that he just wanted a count of all the words, his reply showed what he really wanted.
Agreed, that a Quick sort is not as efficient or... |
Forum: C# Apr 24th, 2009 |
| Replies: 9 Views: 928 Something like this:
static void Main(string[] args)
{
string text = "bobby crossed the road and fell on the road"; //File.ReadAllText("C:\\SomeFile.txt");
... |
Forum: C# Apr 23rd, 2009 |
| Replies: 4 Views: 1,271 Please mark it as solved, only you can do that. |
Forum: C# Apr 23rd, 2009 |
| Replies: 4 Views: 1,271 ASP or WinForm ?
I can help if it is a Window Form... |
Forum: C# Apr 22nd, 2009 |
| Replies: 3 Views: 697 Code Project just got a new Chat project added this week, suggest you check that out. If your chat works on the network, then is should work in the internet as well unless it is just a UDP client.... |
Forum: C++ Apr 22nd, 2009 |
| Replies: 7 Views: 662 Thanks Guys, this is a major help.... I sure I will be back with more questions.
In C# the conversion was string xyz = Total.ToString("X4");
or if I still want an array then:
int Total = 123;... |
Forum: C++ Apr 22nd, 2009 |
| Replies: 7 Views: 662 Thanks for the quick response & the link.
So in my example, I would expect the 123 long to be formated as follows:
checkSum = 01230
or checkSum = 007B0
See my delima ? checkSum is a... |
Forum: C++ Apr 22nd, 2009 |
| Replies: 7 Views: 662 Hello,
I typically hang out in the C# forum, however I hope someone here can help.
I am converting a C++ program to C#, and I need to know how to handle a couple things: IOW I know almost nothing... |
Forum: C# Apr 21st, 2009 |
| Replies: 5 Views: 804 namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
// Class level variable
private IDatabaseWriter _myDbWriter = null;
private string... |