I've tried it, didn't cause any problems. In fact, at my home machine, I've got Visual Studio 2003, Visual Studio 2005 beta 1, and Visual C# Express February 2005 CTP all installed simultaneously, no problems.
I've a little problem using timer.
I used a timer with an intervall of 1 sec. and i do :
private void timer1_Tick(object sender, System.EventArgs e)
and i want to retrieve the counttime value at any time in an other function.
i do like that :
public void Func()
bool temp = false;
if(counttime == 3)
But the MessageBox is not shown.
Does anybody has an idea ? ( the timer is enabled of course)
I tried your given code and the problem was that the main thread was blocked because of the while loop. One solution could be to put the while loop in a seperate thread.
after that the message box was shown
The primary advantages of XML are:
* human-readable and editable
* can be transformed into different formats using XSLT
* can be queried using XPath expressions
* well defined programmer APIs for editing existing data
* .NET supports serializing objects to XML (and vice versa)
I am trying to use the logics from Intel OpenCV DLLs, which were originally compiled by MSVC++ 6. From C# or ASP.NET Apps, when I was trying to add reference to these DLLs (i.e. cv096.dll or cxcore096.dll), I got this error:
“A reference to ‘D:\Programs\OpenCV\bin\cv096.dll’ could not be added. This is not a valid assembly or COM component. Only assemblies with extension ‘dll’ and COM components can be referenced. Please make sure it is a valid assembly or COM component.”
Note: The source code of Intel OpenCV DLLs is open source. I can open this source code project in either MSVC++ 6 or VS.NET 2003.
Question: How can I use these DLLs in .NET environment, preferably in ASP.NET and C# projects?
Opoen regedit and start poking around in HKEY_CLASSES_ROOT. For example, if you're used to doubling clicking a .LOG file and having it open in Notepad, scroll down until you find a key called .log and click on it. You'll find something under the default value (right-side of regedit), usually its txtfile.
Now continue to scroll down the HKEY_CLASSES_ROOT keys until you find txtfile. You'll find a bunch of stuff under that key. You're probably looking for something like this.
You'll have to duplicate both keys for your application, depending on what you want to support in your app. If you're familiar with command line arguments work, it'll be obvious what's going on in these keys.
Now all you have to do is add command line argument support to your application and you'll be all set.
Oh yeah! If you screw up your registry, it's not my fault! My hand wasn't on the mouse when it happened.
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
that's too simple in c#
Microsoft.Win32.RegistryKey reg= Microsoft.Win32.Registry.ClassesRoot;
reg=reg.CreateSubKey(".myE");//your application extension key
reg.SetValue("","MyApp");//reference to the key contains shell commands for your extension
reg=reg.CreateSubKey("MyApp");//the key contains commands windows will use when find your extension
reg=reg.CreateSubKey("Open"); //open commond
reg.SetValue("","c:\\windows\\notepad.exe");//the path of your application which will open the files with your extension
u if u want to read data cell wise u can use...........
Dim exlApp As New Excel.Application()<br />
Dim exlBook As Excel.Workbook = exlApp.Workbooks.Open(tbFileName.Text.Trim)<br />
Dim exlSheet As Excel.Worksheet = exlBook.Worksheets.Item(tbWorkBook.Text.Trim)<br />
for intCounter = 1 to TotalRows<br />
strFirstColValue= exlSheet.Cells.Range("A1" & intCounter).Value<br />
'after reading values u can insert these into Datatable using New dataRow....\<br />
Has anyone done any development of desktop sharing across networks /internet?
I would be very interested in any who has or has the skill to write such a product!! (and I know all the others that are free like VNC - but they are no good for this)
Serious Very Experienced Developer needed for this one. And I am willing to pay a reasonable amount for this.
If you think you are the person and very able to do this email me at
ian"at"ianhutty.karoo.co.uk with a rough price.
Basically look at Gotoassit.com or Webex.com (smart-tech by webex) and you will know what I am aiming for.
I have three forms. Form1 have i datagrid1 and Form2 have datagrid. First data come from form3 to Form2 datagrid and then a button click data transfer to form1 datagrid. here i add some more row and then i click on save button grid data save in to db.
I work i have do in code base not designer mode. I hope you understand me points.
When you add a Crystal report file into the project you can create an object like CrystalReport1 report = new CrystalReport1();
then you can bind this object to the viewer. (push method)
You can also open a .rpt file and bind this to the viewer. (pull method)
My question is: can you create an object like method 1 with an .rpt file?
I want to read out which data is needed and then perform the query manually via code, not via the Crystal Report. (the problem is that the data has to be sent through port 80.)
So the customer can create an rpt file and we want to analyze it and do our stuff before passing it to (another) client.
I've tried the Load button, but this one doesn't seem to have correct intellisense. (always says, no overloaded method of Load takes n parameters.)