|
dsProductTableAdapters.productTableAdapter pa = new EBMS.dsProductTableAdapters.productTableAdapter();
int result = pa.InsertQuery(tbxProductName.Text,tbxDesc.Text,Convert.ToInt32(tbxModelNumber.Text),Convert.ToDecimal(tbxMSRP.Text),Convert.ToDecimal(tbxRetailPrice.Text),1,0,1);
the int results return 1. which shows its successfully insert. but inside my access database file does not show the new row..
how do i commit the changes
|
|
|
|
|
Hi,
my application runs some code in each interval.
There the first line looks like int sec = Settings.Default.Intervall;
in my case, the interval setting doesn't change and holds a value of 20, so every 20 seconds Settings.Default.Intervall; is accessed.
the problem is, that sometimes an exception occurs. this happens once a week or so. any idea what the point could be?
FATAL 02.08.08 06:07:52 [ thrCounter]: Ein unbehandelter Fehler ist aufgetreten (sender: Name:Umm.exe
There are no context policies.
, exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at System.Configuration.SettingsPropertyValueCollection.get_Item(String name)
at System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
at System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
at Umm.Properties.Settings.get_Intervall() in D:\VSSTools\Umm\Entwicklung\Properties\Settings.Designer.cs:line 31
at Umm.App.Controler.runIntervallWaiting() in D:\VSSTools\Umm\Entwicklung\App\Controler.cs:line 213
|
|
|
|
|
It looks like your SettingsPropertyValueCollection is getting corrupted, so that the values in the _Indices HashTable doesn't correspond to the size of the _Values ArrayList.
The class itself should be pretty well tested, so there might be something in your code that is accessing some memory that it shouldn't. Typically that's only possible when using reflection, unsafe code blocks or calls to unmanaged code.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
greetings,
I am trying to write a program that will communicate with another application using xml messages over tcp/ip.
The host machine has a public IP address and i will send the xml messages to a particular port number.
The documentation of the host application makes numerous references to socket programming so i'm guessing that is a hint to any potential users.
So I was wondering how i can use dot net (C#) to the following:
firstly, create the xml documents(xml messages)
secondly, send these xml documents over the network over tcp/ip sockets
thirdly, view the response from the host machine
|
|
|
|
|
Use XmlDocument to create XML. Then you can send the complete string of that XML (xmlDoc.OuterXml) using TcpClient. Then using TcpClient you can also wait for the response.
|
|
|
|
|
You can send them as byte array after adding headers to distinguish messages from each other.
Edit: removed typo
modified on Monday, August 4, 2008 4:44 AM
|
|
|
|
|
I have same type of problem, so pls provide a solution...
|
|
|
|
|
Hi,
Kindly let me know or give me examples link that how to add combobox into datagridview?
Thank in advance
(Riaz)
|
|
|
|
|
|
I have used the web browser control in my C# Windows Application. And i have written following code in that application for previewKeyDown event of webbrowser control.
But when user press the key M , Message box should be displayed once. But it is displayed twice.
Source code:
private void webBrowser1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
{
if (e.KeyData== Keys.M)
{
MessageBox.Show("User has pressed key M", "Key press alert");
}
}
actually event of key press occurs once. But message box is displayed twice . Need help ?
Thanks in Advance.
|
|
|
|
|
it comes only once in my test app. see first, if :
this.webBrowser1.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.webBrowser1_PreviewKeyDown);
called twice...
|
|
|
|
|
First message box comes but when you click on Ok button same message box appears again on the screen. that event occurs again. how this happens ?
|
|
|
|
|
Have you accidentally added the event hook twice somewhere? That would be the most logical explanation.
|
|
|
|
|
hi all,
I want to add a custom plus minus control infront of every node in a treeview structure in c#. But i don't want to use DrawDefault property.Can anyone help me in doing this.
Thanks
|
|
|
|
|
is this the same question as clickety[^]
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi,
Ya this is the same question.But i have not got the answer to the question. i want to do it in c#.
Thanks
|
|
|
|
|
if u know plz let me know.
Suresh
|
|
|
|
|
Hi
Is it possible using GDI+/.Net Framework to draw text along a path. For example, I want to draw a bezier curve that looks like an "S" shape, and I want the text to render along the shape.
Thanks
|
|
|
|
|
I'm sure it is possible. You'll probably have to create a custom text control in order to do so.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
Can anyone tell me how to convert a .doc/.pdf file to an .swf file via C#?Do I need to know the file formats for every file type?How is this being done.Kindly suggest.
Thanks,
Joan.
|
|
|
|
|
|
Hi,
How can set focus to the next row in the DataGridView? (triggering a event like button_click)
|
|
|
|
|
|
Hi,
I'm trying to change the background colour of my desktop. Here's the code I'm using:
RegistryKey rkWallColor = Registry.CurrentUser.OpenSubKey("Control Panel\\Colors", true);
rkWallColor.SetValue("Background", "0 0 64");
rkWallColor.Close();
I'm sure that I'm doing it right, but the desktop colour wont change. I've checked the registry key and it has been changed. Am I accessing the wrong key?
I'm using windows xp.
Can anyone see what I'm doing wrong?
Thanks
|
|
|
|
|
Changing only the registry values will not change the background color.
Have a look at the API: SetSysColors.
It is present in user32.dll
If you want to change the wallpaper and get related information, have a look at SystemParametersInfo which is also present in user32.dll
regards
|
|
|
|