|
How do a set a timer to a function in my windows form?
that it will run ( for example every min )
tnx mates!!
|
|
|
|
|
Simplest way: Drag a timer object on your form, set up event handler for tick event and in the event handler call whatever method you want
|
|
|
|
|
how to fire application_end
application_start gets called
but end is not firing
what should i do
thanks
|
|
|
|
|
You should ask questions like this in ASP.NET forums, not here
|
|
|
|
|
Application_End gets called when the application ends, i.e. when the worker process that is running it terminates. To test it's working, put some code in it to write to the event log and then recycle IIS using iisreset.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
i'm writing an addin for VS2005 and need to replace some code in a document.
So far this works using the replacetext on a projectitem.document.
But i can't replace the code in a document when the text in the editor is collapsed, like with a region. a plus sign appears then.
expand it manually and run the addin seems to work...
i tried expandview but that also doesn't work. i suppose this one is for the treeview and not foor the document content.
Thx for your support
Kurt
|
|
|
|
|
Okay i found it myself.
file.Document.DTE.Find.Action = vsFindAction.vsFindActionFind; //vsFindActionReplace;
file.Document.DTE.Find.FindWhat = line; //line is my text
//file.Document.DTE.Find.ReplaceWith = TmpLine; // is my new text
file.Document.DTE.Find.Target = vsFindTarget.vsFindTargetSolution;
file.Document.DTE.Find.MatchInHiddenText = true; // default on.
vsFindResult tmp = file.Document.DTE.Find.Execute();
this opens the collapsed regions in a document.
Greetz
Kurt
|
|
|
|
|
how are you everybody ?
i would like to ask what is the most suitable method for creating chat rooms , to use multicast or unicast methodology ?
and if it is multicast how can i assign a globally reachable multicast address for the server machine
knowing that yahoo uses unicasting in chat rooms ?
uuuh , Yahoo guys are incredible , what about the overhead on the servers , how could they solve it ?
Human knowledge belongs to the world.
|
|
|
|
|
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-
|
|
|
|