|
Are you doing your processing in the same thread as the GUI runs in? It sounds like it. If so, you have two options - you can either break out your processing to another thread, or you can simply make sure you call Application.DoEvents() regularly.
Hope that helps
|
|
|
|
|
Application.DoEvents() fixed it! Thanks!!
|
|
|
|
|
Im using a 3rd party DLL to create a graph. When calling some methods within this DLL i get exceptions because the control is running in a internet trusted zone. I do not have access to the 3rd party DLLs code so i cant add 'new UIPermission().Assert();' statements within the DLLs.
Is there a tool/way of signing a DLL so it will be trusted? i already sign the DLLs with my certifcate.
Regards,
Gareth.
|
|
|
|
|
The 3rd party company fixed the problem for me by removing some offending code.
Regards,
Gareth.
|
|
|
|
|
Hi everyone!
Please tell me what below statement mean
<br />
Regex regex = new Regex(@"[:_.\w]+\s*=\s*(""[^""]*"")|('[^']*')\s*"); <br />
Thanks
|
|
|
|
|
It's a regular expression that matches a string of the form SomeKey = "Some Value" or SomeKey = 'Some Value'.
SomeKey can be a string consisting of :, _, . and any alphanumeric character, while Some Value can be a string consisting of anything except the speech marks that contain it. There can also be any amount (or none) of whitespace around the = sign.
Hope that helps.
-- modified at 12:46 Sunday 21st January, 2007
|
|
|
|
|
Thank you ............ it helped alot
|
|
|
|
|
It creates a Regex object with the string as pattern. Regex is short for regular expression, and is used for pattern matching.
---
Year happy = new Year(2007);
|
|
|
|
|
Hi all,
I've recently been working on an IRC bot in C# (yes, I know there are a thousand others that could probably do what I want, but it was for the experience as much as anything) - the core of the bot works perfectly fine, but one of the subsystems, a plugin system, is giving me no end of grief.
To support unloading plugins, I isolated plugins in their own appdomain, and so far that has worked just fine, but I recently implemented a few changes - I decided to write an auto-updater as a plugin, so I set the plugin appdomain to use shadow copying, and strongly named assemblies (for a bit of security). The auto-updater queries a server regularly, and downloads any new or updated assemblies to the plugin directory, before reloading the plugins.
Now from what I've read, if shadow copying is enabled, when an assembly is loaded, it will first be copied to the shadow directory and then loaded from there, and any subsequent load attempts will use newer assemblies from the plugin directory (rather than the shadow copied version) if they exist. However, if I try to load the new assembly specifying a complete AppName, and the assembly version has changed, the load fails, with the fusion logs remarking that it found an assembly (purportedly in the plugin directory), but that it has the plugin version of the previously loaded assembly (I've checked in explorer, and it is definitely the correct version).
I've been able to work around this by loading by using the codebase, but that has an unacceptable downside in that it doesn't check that the public key token matches.
The only thing I can think of is that the previous version of the assembly is still loaded in a different appdomain. If anyone has any suggestions, or could put me right if I've made any incorrect assumptions, I'd appreciate it. The code is available, but I'd prefer not to check this broken code into my SVN if I don't have to.
Apologies if that was too rambling, but it's early in the morning and I'm running low on caffeine.
|
|
|
|
|
Hi All
How would I prevent a user from entering only numeric values into list view colum? Is there a specifiec event I could use to capture KeyPress events?
Many thanks in advance
Ross
|
|
|
|
|
I would like to make the first column in my ListView readonly but dont know how. Can anyone help please. Eg. I have three columns in my ListView:
SubjectName Option1 Option2
----------- ------- -------
Crabs ? ?
Fish ? ?
Something ? ?
Grass ? ?
Flowers ? ?
I need to make the SubjectName column read only so that the users can only enter an option in option1 or option2 without changing the text in the SubjectName column.
Many thanks in advance
Ross
|
|
|
|
|
AFAIK a listview (in details mode) gives one column that may or may not be modified
(depending on LabelEdit), all others are read-only.
So I suspect you need another kind of control.
Luc Pattyn
|
|
|
|
|
The database is on server(sql server 2000).
The application (Windows application)run on the client pc's.
How to use the SqlTriggerContext to update the data in the application when data on server has been changed?
|
|
|
|
|
Dear All,
Is there a ready software that enables me to make a software samples like for example, i will have a page that have for example some radio buttons with texts as follow; payroll, vacations, ...
and when i choose a one of them and then press a sample button, then i will get a ready done sample on the next page, i want this to help me in making a samples on the projects to be able to see our clients some samples for their requested projects in a short time :->
Thanks alot
Hamody
|
|
|
|
|
No, but with the designer in VS2005, it's kind of trivial to whip up sample UI.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
Plz help me, I am new to C#.net (Windows Application )
i created a Application whose Solution Contain two Projects
E.g Solution MyProjectSolution
It contaion two project like Myproject1 and Myproject2
I need to open form in Project Myproject1 from project Myproject2
how can do it
plz Anyone help me
Thanks for your time
Regards Anil Jagdale
|
|
|
|
|
Please tell what are the types of those projects (windows application, class library) and how are they related to each other (project1 referencing project2 or the other way around).?
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
This is Windows Application and project1 referencing project2
|
|
|
|
|
Ok, just to clarify completely. Project1 compiles to a windows application and project2 assumably compiles to a class library that is used by the application, right.?
As project2 does not know about the types declared by project1 and also cannot know (you're not allowed to reference an executable), your best bet would be declaring an event in project2 that signals to project1 (or any other) that it should open the form (or whatever it wants to do in reaction to the event occuring in project2). Project1 registers to this event and inside the event handler opens the wanted form
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
you have to reference the Myproject1 in Myproject2 like this:
using Myproject1;
Then you just initialize an instance of the form that you want to open. For example the form named is myForm;
<br />
myForm form = new myForm();<br />
form.Show();<br />
|
|
|
|
|
I am try it but it not show Project1 forms in project1
in project2
using Project1
project1form not shows
|
|
|
|
|
jaganil wrote: project1form not shows
Is it declared as public?
|
|
|
|
|
Hello ALL,
HOW CAN I READ ARABIC TEXT FILE USING STREAM IN C# CODE?
|
|
|
|
|
Please don't write in all upper case, it's considered to be the equivalent of screaming.
You read the file just like any other text file. You specify the encoding when you open the stream. If the encoding is UTF-8, you can use the override where you don't specify encoding, as that's the default.
---
Year happy = new Year(2007);
|
|
|
|
|
You can use any kind of encoding type when you read or write a file: System.Text.Encoding.*
|
|
|
|