|
Hai Everybody,
Can any one suggest me, how to get the context menu while clicking only on the columns in the list view.
If the items is clicked then the context menu should not be displayed.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
You can respond to the columnclick event and show context menu but the problem is that the event occurs when left button is clicked and not the right one. You will also have to figure out where to show context menu.
|
|
|
|
|
Hi,
How may I use following Dos command?
MKDIR ABC123
Thank you in Advance
|
|
|
|
|
M Riaz Bashir wrote: How may I use following Dos command?
MKDIR ABC123
Why would you want to? Look in System.IO and look for DirectoryInfo
|
|
|
|
|
|
i have a txt file with 1000 names and a table with two fields, id and NAME.
i want to read the contents from the txt file line by line and insert each line to the name field of the table..
how can i implements this using c#..
George Mathew
|
|
|
|
|
|
DaveyM69 wrote: and do your DB inserts instead of Console.WriteLine
-Larantz-
|
|
|
|
|
Hi,
I am already using this command.
Using System.IO;
FileStream fileStreamMainINI = new FileStream("MYWORK.TXT",
FileMode.OpenOrCreate, FileAccess.Read);
StreamReader srMainINI = new StreamReader(fileStreamMainINI);
string strLineValue = null;
while (srMainINI.Peek() > -1)
{
strLineValue = srMainINI.ReadLine();
// and then you may use this string value anywhere
}
|
|
|
|
|
I have a huge problem,i am trying to edit values from gridview and am not using adit command of gridview i want to use stand alone button and inside my gridview i have a checkbox this checkbox when checked on a certain line only that line on a gridview must change to editable mode when i click my stand alone edit button. i.e more like when you have mail on yahoo or anymail if you want to delete a message you check the checkbox and then click delete button so am looking something like that
|
|
|
|
|
You could for instance set the various columns, except your checkbox column, to readonly. Then when you click your editbutton, extract ticked DataRow and edit the data in a custom control. Or set all DataRows.ReadOnly property to 'true' except the ticked one. You could do this in the DataGridView.CellValueChanged event handler.
-Larantz-
|
|
|
|
|
My XML schema passes the validation of XMLSpy
without any problem, however, when I loaded it to
validate an instance XML document in my C# program, I
got many errors and warnings.
Do i need to set any properties for the same behaviour as of XMLspy?
if so what are those?
Can any body pls tell me some thing in this regard.
Thanks.
|
|
|
|
|
Could you please provide us with the error message you're getting?
-Larantz-
|
|
|
|
|
"Empty choice cannot be satisfied if 'minOccurs' is not equal to 0."
and
"Some elements have invalid values according to their datatype"
Can you pls tell me to validate ( as it was done in XML ) with out modifying the input xml file.
Thanks.
|
|
|
|
|
According to the errormessages, I'd say that your xml file violates the rules dictated by your xls schema.
If you don't want to edit the xml file, you'll most likely have to take a look at the xls schema.
-Larantz-
|
|
|
|
|
Is n't there any other choice, like setting some options to make it Valid?
|
|
|
|
|
I'm not sure.
But I don't see the point of having a xls schema to help you form your xml correctly, if you don't follow the schema.
Then you might aswell remove it.
-Larantz-
|
|
|
|
|
Hi Guys,
I wrote a backprop neural net library in C# that is loosely based on the BrainNet articles. And as in the articles, the testing app that I developed is one that trains the NN logical operations (AND OR XOR etc.)
When I train it for AND & OR, it works perfectly. However, it refuses to learn XOR. There is obviously a bug somewhere.
Does anybody have a clue where I can look? I know this is a long shot in the dark, but I am at my wit's end....
Thanks in advance.
|
|
|
|
|
|
Hi !!!
whenever i run my application 2nd time, I get the error... i.e
Unable to copy file "obj\Debug\File1.exe"to"bin\Debug\File.exe".
The process cannot access the file 'bin\Debug\File1.exe'
because it is being used by another process.
wts the reason behind it. I also closed or free all the resources.
plz help me out...
B!Z
|
|
|
|
|
Sounds like your application doesn't exit in an appropriate fashion.
We might be able to help if you provide some sourcecode.
-Larantz-
|
|
|
|
|
Larantz wrote: We might be able to help if you provide some sourcecode.
What source code would you suggest in this particular case?
|
|
|
|
|
I see your point - as he doesn't know where it's happening and it might be a large application.
Though he could show us exitpoint of application, cleanups, anything related to starting/stopping threads perhaps.
-Larantz-
|
|
|
|
|
check the task manager if it is executing
is it could be a virus or an anti virus application .
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
If your app is running, the EXE file is locked and a new build will fail.
Most probable cause is you create some thread that does not finish, and was not
declared a background thread. Background threads don't prevent an app from exiting,
foreground threads do. See Thread.IsBackground
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|