|
Why don't you make changes to the data in the TableAdapter then use TableAdapter.Update to send the changes back to the database?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Hi all:
In VS2005.NET, when I select an item from a dropdown list(combobox), I want the detail view to display the corresponding content of the row. I added the following code into the SelectedIndexChanged event of the combobox
DetailsView1.DataBind();
But this doesn't work. Does anybody know how to achieve this functionality please?
Thanks in advance!!!
Asura
|
|
|
|
|
Hi,
How can I copy a file from PC to Pocket PC Emulator? (I'm using VS .NET 2005)
Thanks much,
Hung.
Hung
|
|
|
|
|
You use the remote file viewer and select the emulator that is running.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Can you explain more details! Thanks!Hung
Hung
|
|
|
|
|
Run the application so that the Emulator is running.
Goto:
Program Files->Microsoft Visual Studio 2005->Visual Studio Remote Tools->Remote File Viewer
It will ask what you want to connect to, choose the Emulator.
You can copy files back and forth in the same way you use Explorer.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
mmmm, What if I wanna do this in Visual Studio 2003??
In its directory I only found "Visual Studio .Net tools" which doesn't contain "Remote File Viewer"
|
|
|
|
|
|
Hi,
I'm writing a Chess program. I have a problem with inheritance in .NET:
I think the Queen can inherit both Rock, Elephant because the queen move like the rock + elephant. But .NET does not support multi inheritace.
So, what must I do to implement the move() function of the queen?
Thanks in advance!
Hung.
Hung
|
|
|
|
|
Use interfaces
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
But both Elephant and Rock are "class". I can't change it to "interface" because some object of those need to be created.
Hung
|
|
|
|
|
The interfaces would declare the functions. You would implement the functions in the class that derives from the interface.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
-- modified at 6:40 Thursday 30th March, 2006
|
|
|
|
|
I'm fairly new to C# and .NET (I have not done anything before .NET 2.0) so please bare with me.
It appears that the epoch for System.DateTime within .NET 2.0 is 30/12/1899 where as the epoch for smalldatetime within MSDE (v8 stuffs) is 1/1/1900.
Therefore when using the ToOADate() method the value returned is 2 days out (i.e. 2.0 greater than the value I ought to be passing to the database)
I know I can adjust the value so that the difference is taken into account but I was wondering whether this is a mistake introduced in .NET 2.0 or is a known difference that we need to accommodate for.
Thanks for your time
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
I'm developing a windows application which must have a user login procedure, to provide different system access capabilities to different users.
Each user must be allowed to change his password at any time (so the passwords (or better: the password md5 hashes) cannot be "hard coded" in the software); therefore I'm looking for the best way to store the passwords, and I would like to avoid using the windows registry.
Of course I cannot simply write the user/md5hash pairs in a regular text file, otherwise anyone could simply replace the md5 hashes with the hashes of known passwords and get full access to the system.
Can anybody help me?
Thank you.
|
|
|
|
|
It is probably best practice to encrypt the storage data file and therefore not possible for someone to tamper with the contents.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Yes, but what kind of encryption do you think would be the best for this kind of problem?
Thanks.
|
|
|
|
|
Use any symmetric-key algorithm such as AES (aka Rijndael), Blowfish, RC4, TDES.
|
|
|
|
|
Can somebody help
I have sample.aspx.cs file and BL.cs file which includes my interface "INode" declarations and class "Man" declarations. my problem is "How do i call that interface or class. how can i use that interface or class.
soso
|
|
|
|
|
Your question is too vague for you to get an answer.
--------
"I say no to drugs, but they don't listen."
- Marilyn Manson
|
|
|
|
|
why my search function at Web Forms Report Viewer Toolbar cannot work, even i can display the view toolbar with search function in my form... should i write my own code for tat search function??
angela
|
|
|
|
|
Hi all,
I have an app which starts and automates winword. Sometimes on error word doesn't close correctly and stays unmotivated and blocking in memory. This apps can not continue until word is cleaned from memory. I have no ideas where and how I can get these proc-ID's. But in an very useful app called "Process Explorer" you can see the relationship between the apps who called sub-apps (master - slave).
Who can show me a codesnippet, which returns the proc ID's of apps which were started from my (master) application. With this information I could kill the lazy blocking (word)-exe's.
Thanks for all your good ideas in advance.
Frank
-- modified at 5:00 Thursday 30th March, 2006
|
|
|
|
|
Depending on how you are starting the process you might want to look at System.Diagnostics.Process
<br />
Process process = new Process();<br />
<br />
ProcessStartInfo processStartInfo = new ProcessStartInfo(executableFile, commandLine);<br />
process.StartInfo = processStartInfo;<br />
<br />
process.Start();<br />
<br />
int procId = process.Id;<br />
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Hi Ant.
Tnx alot.
that's great, that's so easy to handle and saves hours and hours of time !
Frank
|
|
|
|
|
Hello everybody,
I want to connect a computer on one LAN to a computer on another LAN using a modem and a phone line (a HyperTerminal sort of thing).
I want to be able to dial a number from a list and send and receive messages and files, preferably with acknowledgement.
I also want the whole stuff in c# (v2003) using Windows Forms (GUI), not the console type.
Can anyone of you help me out with this or point me to a link where it might be available.
Thanks a lot.
BIK
|
|
|
|
|
If i want to draw a piece of image inside another i use this:
g.DrawImage(img, rect1, rect2, unit);
but if i want to cut a portion of image from g as i'm using a rubber, how can i do?
I've tried with
To simulate a rubber i create an empty image then i place it on the zone of the Big image i want to cancel:
Image img = new Bitmap(20, 20); // 20 is the dimension of the rubber
then
rect2.Width = rect2.Height = 20;
g.DrawImage(img, rect1, rect2, unit);
but it doesn't work.
WHY??
|
|
|
|