Search Results

Showing results 1 to 40 of 436
Search took 0.03 seconds.
Search: Posts Made By: JerryShaw
Forum: C# 13 Days Ago
Replies: 9
Views: 318
Posted By JerryShaw
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# 13 Days Ago
Replies: 9
Views: 318
Posted By JerryShaw
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: 615
Posted By JerryShaw
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: 6
Views: 18,488
Posted By JerryShaw
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: 599
Posted By JerryShaw
DataRow[] rows = yourTable.Select(string.Format("ID='{0}'",cbIDs.Text));

yourLabel.Text = (string)rows[0]["Name"];
Forum: C# Jun 26th, 2009
Replies: 2
Views: 357
Posted By JerryShaw
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: 846
Posted By JerryShaw
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,709
Posted By JerryShaw
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: 289
Posted By JerryShaw
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
Solved: Thread
Views: 200
Posted By JerryShaw
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: 351
Posted By JerryShaw
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: 479
Posted By JerryShaw
Does the button have a BackColor property ?
button.BackColor = Color.Red;
Forum: C# May 12th, 2009
Replies: 1
Views: 1,695
Posted By JerryShaw
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: 489
Posted By JerryShaw
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: 489
Posted By JerryShaw
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: 489
Posted By JerryShaw
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: 449
Posted By JerryShaw
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: 489
Posted By JerryShaw
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: 874
Posted By JerryShaw
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: 489
Posted By JerryShaw
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,003
Posted By JerryShaw
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: 665
Posted By JerryShaw
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: 590
Posted By JerryShaw
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: 550
Posted By JerryShaw
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: 290
Posted By JerryShaw
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: 550
Posted By JerryShaw
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: 343
Posted By JerryShaw
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: 819
Posted By JerryShaw
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,570
Posted By JerryShaw
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: 349
Posted By JerryShaw
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,252
Posted By JerryShaw
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: 849
Posted By JerryShaw
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: 849
Posted By JerryShaw
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,212
Posted By JerryShaw
Please mark it as solved, only you can do that.
Forum: C# Apr 23rd, 2009
Replies: 4
Views: 1,212
Posted By JerryShaw
ASP or WinForm ?
I can help if it is a Window Form...
Forum: C# Apr 22nd, 2009
Replies: 3
Views: 661
Posted By JerryShaw
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
Solved: sprintf format
Views: 594
Posted By JerryShaw
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
Solved: sprintf format
Views: 594
Posted By JerryShaw
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
Solved: sprintf format
Views: 594
Posted By JerryShaw
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: 787
Posted By JerryShaw
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
// Class level variable
private IDatabaseWriter _myDbWriter = null;
private string...
Showing results 1 to 40 of 436

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC