|
Sorry, ToolStrip Property of what?
pkoeppe
|
|
|
|
|
This Propertie:
ContexMenuStrip
it got the same name that the way i forgat, Sorry
kobkob
|
|
|
|
|
When I set the ContextMenuStrip Property of the MenuStrip the context menu appears only when I right click on the MenuStrip but not when I click on any inferior ToolStripMenuItem.
Sorry but I need the context menu for the sub items of the MenuStrip.
pkoeppe
|
|
|
|
|
The Items inside do not have that options
i would suggest tcontinue use the rightclick event & to add mouseEnter/Leave
if i'll encounrt any other i'll let u know
have a nice day
kobkob
|
|
|
|
|
HI,
first :
i would like to know how to run sevrel forms that each one is independent
second :
a year ago i wrote an app that had a while() stat' that would run an algorithm so the all app was frozen. i could'nt do anything but wait.
how can i improve it do other things in the app while the "while()" Runs
any suggestions?
all will be welcomed
THNKS
kobkob
|
|
|
|
|
To run several forms independantly, you just instance your class:
myForm newForm = new myForm();
then call Show(), not ShowDialog();
newForm.Show();
A new window should appear and run, and both windows will run at once.
Also, for long while loops, you can either run your algorithm in a new thread (see below), or add 'Application.DoEvents()' into the while loop, that way you can still move the form around, and it doesn't seem to be frozen.
To start a method in a new thread:
Thread myThread = new Thread(new ThreadStart( -method name- ));
myThread.Start();
If the method has input parameters, its a little emore complicated.
My current favourite word is: Waffle
Cheese is still good though.
|
|
|
|
|
THNKS man
have a great day
kobkob
|
|
|
|
|
can we make DIV Read only?. is it possible to Make in server side?
sathimailin
|
|
|
|
|
Hi,
I need to load data from .csv to SQL Server(2005).I may have to do it often thus need a simple,cost-effective way of doing it.
I tried using Bulk Insert but there are issues with delimiter(they are not same all files)
Any pointers would help!!!
(May be c# .net too)
Aswini Kumar.A.V.
Hyderabad, India
|
|
|
|
|
Do you mean a scripted method? If not its pretty straightforward using the import menu in Sql Management Studio.
Regards,
Rob Philpott.
|
|
|
|
|
I want to get extension of file that the user has selected to open.
OR i want to allow the user to open only specified types of file in the
"FileType" field............
Regards,
chanzeb chaudhary.
|
|
|
|
|
Have a look at the Path class. It has methods that allow to manipulate with the string that represents a file path. You can retrieve the name of the file chosen through the openfiledialog by its filename property.
If you want to allow the user to open only specified types of file using openfiledialog then use the Filter property of openfiledialog class.
|
|
|
|
|
Hi,
here.. i am checking the extension of file name extension to jpg..
for image files
if(Path.GetExtension(photoFile.FileName).ToLower()!=".jpg")
{
MsgLabel.Text=" File should have .jpg extension ";
return;
}
Aswini
|
|
|
|
|
As I said you can use Filter property of openfiledialog class to restrict files with jpg extension
|
|
|
|
|
Use filter for the openfiledialog eg: C# files(.cs)|*.cs makes only .cs fileextensions to be selected.
Koushik
|
|
|
|
|
hi !i wanna msdn and visual studio.net 2005 setup!please give me a link to download it!
thanks
|
|
|
|
|
Check this[^] out. If you want a non-Express version, then you will have to buy it.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
I’m working on developing a simple WPF application that will need to get its data source from a SQL2005 Database. The question I’d like to ask however is what would you consider to be the most appropriate Database connectivity for such an application?
(The application is geographically local to the server and serving several dozen simultaneous users (later in the development cycle). The application will be using touch screen technologies and the application its self will be deployed as a click-once application)
Here are a few of the technologies I’m considering, and what I see as their pros & cons:
1, The application contains it’s own CLR to connect to the DB:
Pro: Simple
Cons: Doesn’t scale well, each application will have it’s own separate connections
2, MS Smart Client application framework:
Pro: readily available, well documented, proven to work, scalable
Cons: Complicated, weighted down with stuff I neither want nor need
3, Remoting, using remote CLR objects:
Pros: simple and readily available
Cons: Not well accepted as best practice coding for this type of application
4, Application uses XML web services:
Pros: relatively simple, scales well, very well accepted & documented
Cons: Hmmm… can’t really think of any show stoppers
I’m tending to lean towards number 4, but I’m open to suggestions, the project is just starting up, we have no baggage to carry and I have an open slate… Coding nirvana!
So my question remains, Can you think of any more methods? And can you think of a reason I shouldn’t be using number 4?
Thank you all for your Guru-like help
Alan
Alan Boldock
Royal Adelaide Hospital
|
|
|
|
|
hi all
is there any possiblity to read the half of the fle name
that is i have a file name Myfilename_name.txt, i want to read its name only up to Myfilename. is it possible in C#. like if we want to search a file we used to give like name.* or *.txt or na* . like that
do plz help me to solve this.....
|
|
|
|
|
Do use "split" function and take the one before the last item in the returned array.
jayasshc
|
|
|
|
|
u just specify the number of characters.. in the search..
Aswini
|
|
|
|
|
u can use split and substring functions
Aswini
|
|
|
|
|
Hi
I have an asp.net application. whenever i compile or run my application it's create extra .temp files, then i have to delete that files again and again. Would you please tell me the reason why it is creating this file and how can i restrict this.
Pankaj
|
|
|
|
|
asp.net has to compile your code to run it (creating dll of your files)
and then it can run the app you can try to pre compile your app this might help
Please tell me if I am wrong
|
|
|
|
|
basically temp files are created in C:\Windows\Temp and it contains file inforamtion about all the web pages that the browser opens, well i am anot very sure whether you can really restrict this from happening. One way out is to go to Tools->Internet Options and go to Temporary Internet Files and delete all temp files from there or write a simple code in ur web app to delete those files on the exit of the application automatically.
|
|
|
|