|
Consider MC++ instead of C#. The C# compiler does not let you export unmanaged functions.
|
|
|
|
|
Hi there:
Can u help me to update my MS-SQL database using DataSet & DataAdapter.
i need a sample to update my database (inert, update, delete).
using both Stored procedure & text.
I'll be so thankful to get ur help ASAP.
Always, Hovik Melkomian.
|
|
|
|
|
Very simple. There are some articles in this site.Search C# Database section.
Hint: DataSet.GetChange() & DataAdapter.Update() is what you need.
Mazy
No sig. available now.
|
|
|
|
|
Hello all,
I am working on an application written entirely in C# and I am at the point that I need shell context menus. Is there a good example of shell context menus written in .Net? I want functionality similar to what WinZip offers from the shell. Has anyone written these things for .Net?
Thanks for your help,
Scott
PS: The app targets only Win2000 and above so a solution does not necessairly have to work on Win9x.
|
|
|
|
|
|
I know that releasing a program in C# to the wilds out there is practically giving the source code along with it.
Does anyone have experience with the commercially available Obfuscators that scramble up your code to make it harder to access? If so, does this hinder reflection at all? How secure does it make the code, just a little obstruction to the source code or more like a vault?
Anyone have any favorites?
Rocky Moore <><
|
|
|
|
|
|
DotFuscator[^]. MS distributes a freeware version of it with VS .NET (the freeware version is also available for download). The freeware version doesn't do as much as the buyware version, though.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
|
I agree. It's really not worth much.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Hi, I am trying to input a value from a textbox into my sql database. The problem is, is the data type in the database is currency. So how do i pass this through? I had tried to use decimal, but this does not work. There is no currency type in C# that I can see. Any ideas? The line of code I am using is
newRow["invCost"] = System.Decimal.Parse(itemTextBox4.ToString());
|
|
|
|
|
Is itemTextBox4 the name of the control? If so you need to the text property, itemTextBox4.Text.
|
|
|
|
|
Hey, thanks for that. I felt a bit stupid when I saw that I had left out the Text. It works though, so thank you.
|
|
|
|
|
Hi!
I need to paste window from some external program (let's say it's MS Outlook for example) to one of tabs in my application. Is it possible?
My first tought was to find hWnd using win32api, and then try to manipulate window like this:
System.Windows.Forms.Control c=Control.FromHandle(a);
It works fine, but only for current window and its children, returns null for other windows.
I tought about playing with some security setting but have no idea hot to apply them to application.
|
|
|
|
|
I want to change the title of my form. BUt not in the properties window...
i want to do it in the code....
like click on a button and the forms title would change...
/\ |_ E X E GG
|
|
|
|
|
In your button_Click event, write this code:
this.Text="thetext";
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
dope, thanks.... that reply took about 30 seconds...
/\ |_ E X E GG
|
|
|
|
|
Inside your form any tiem you want to change the title, use:
this.Text="New title"
Rocky Moore <><
|
|
|
|
|
Wow.. Others are up tonight also
Rocky Moore <><
|
|
|
|
|
thank you for your effort tambien.
/\ |_ E X E GG
|
|
|
|
|
I have two theads in my windows app- the main GUI thread, and a constantly listening worker which runs an infinite while(true) loop.
The problem is, when I quit the app, the worker thread keeps running and sucks up 100% CPU time. So, I have the main gui thread set a bool variable to false when the app's window closes, and then in the loop for the worker, it listens for that and kills itself when it sees that the bool is false.
That's all fine, but my fear is what if the main window of the app gets blown up, and it's "window closing" event never fires? Like, if the main window is closed because it throws some low level error or something. I've seen it happen already.
In that case, the worker thread would never get the signal to die. Is there some other way to make the worker check on the existence of the gui thread?
thanks
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
On your worker thread, set the IsBackground property to true .
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
Thanks, it turns out that the worker thread is not my problem after all. My problem is much deeper and more anoying. So much so that I'll make a whole new post about it.
thanks,
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
Ok, I have a button, "buttonDeath" with the text, "Automatic", and a groupebox, "groupeBoxCarnage".
"groupeBoxCarnage" is greyed out when the form loads... enabled=false;... ok.
now, when I click on my button, my groupe box becomes un greyed, enabled=true...
now, what I want is... when I click on my button (buttonDeath) it's text will change... from "Automatic" to "Manual".
To do this right now I have...
this.buttonDeath.Text="Manual";
but here's the part that keeps getting me...
I want to click on buttonDeath again, and have his text change back to "Automatic" and also gray out the groupe box "groupeBoxCarnage" again...
how could I do this???
/\ |_ E X E GG
|
|
|
|
|
Something like this will do that:
private bool bDeathClicked;
private void OnbuttonDeath_Click(object sender, EventArgs e)
{
if(bDeathClicked)
{
this.buttonDeath.Text = "Manual";
this.groupeBoxCarnage.Enabled = true;
bDeathClicked = !bDeathClicked;
}
else
{
this.buttonDeath.Text = "Automatic";
this.groupeBoxCarnage.Enabled = false;
bDeathClicked = !bDeathClicked;
}
}
-Nick Parker
|
|
|
|