|
When I make the installer for v1.1 it will receive the database file from the "C:\MyProject\v1.0\Database\Mydata.mdb". But I want to take the file from ""C:\MyProject\v1.1\Database\Mydata.mdb" . hw it happen? here v1.0 and v1.1 aer 2 different folders right?
My small attempt...
|
|
|
|
|
You can also try this yourself....
This is happening because .NET setup project used the hard coded path.
I have to change it in each release.
How can I make it dynamic...?
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
what is the difference between observer pattern? Aren't they both the same thing
|
|
|
|
|
No, they're not.
The observer pattern allows an object to observe (listen to) the state of another object - i.e. be notified of changes of state of the object being observed. The delegate pattern (this has little to do with a specific programming language) is used by an object that publicly defines some behavior to delegate the responsibility of performing that behavior to another object.
/ravi
|
|
|
|
|
I'm having error "The requested FTP command is not supported when using HTTP proxy.". I'm using proxy for the internet. When browsing for answer, I think the problem is in FtpWebRequest.Proxy. I use :
FtpWebRequest reqFTP;
reqFTP = (FtpWebRequest)FtpWebRequest.Create(uri);
reqFTP.Proxy = new WebProxy("10.10.10.1");
But the same error still occur. Can you help? Thanks.
|
|
|
|
|
How can I get the location of the file being streamed from the "System.IO.Stream" class?
|
|
|
|
|
The Stream class is an abstract base class, and derived classes may not represent a file (for example, MemoryStream represents an in-memory byte stream). In .NET, the FileStream class is usually used to deal with file I/O, so if the stream you're dealing with is based on a file, the Stream will likely be a FileStream instance. You can use FileStream.Name to get the original filename - for example:
string GetStreamFilename(Stream stream)
{
FileStream fs=stream as FileStream;
if(fs!=null)
return fs.Name;
return null;
}
|
|
|
|
|
I am writing an installer for my Paint.NET plugin. But it has two versions that work with different versions of the program. How can I programmatically determine the version the user is running so that the installer knows which plugin version to install?
|
|
|
|
|
|
Hi
I have a strange problem and I can't realize what's going on.I have a UserControl that's inherited from another UserControl.Every time I want to open its designer,a clear surface is shown (actually its base class designer is showing) I have tried cleaning and rebuilding the project,reopening the VS and even I shut down my computer but the problem still exists.
Please help me if you know what's going on
Thank you for your help
modified on Wednesday, January 02, 2008 12:10:04 AM
|
|
|
|
|
Did you just said "Urgent"
You should be very brave to mention this word here in the cp
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
|
beatles1692 wrote: Why I should be brave ?
It takes nerve to exclaim "urgent" on CP because people consider it extremely obnoxious. They take it as if you are demanding that someone help you, instead of asking politely.
Putting "Urgent!!!!!" into your subject line is the #1 way to get your post ignored. And that goes for most boards, not just CP.
“Cannot find REALITY.SYS...Universe Halted.”
~ God on phone with Microsoft Customer Support
|
|
|
|
|
Does anyone has any experience working with the System.ComponentModel.LicenseProviderAttribute framework?
More specifically, I am in the process of reviewing our licensing model, and came across this framework. Does anyone has any experience with this?
We are looking for the ability to keep track of flags and number of uses of certain features.
We would also like to allow our users to generate their own license keys, so some kind of web interface would be needed....
I'm looking into these options:
1. Writing our own custom framework
2. Using the LicenseProviderAttribute framework (if it will be feasible)
3. DeployLX (by XHEO)
4. Any idea you might have...
|
|
|
|
|
|
Hi everybody
i need some articles or hints about getting all the text in a word document using csharp, the text to get includes the text in all kinds of shapes, header footer, controls and all the complications of the word document
thanks a lot
|
|
|
|
|
Hi
I don't know if it helps or not but in MS Word 2003 you can get the content of a word document as a xml document.
you can do it using doc.Content.get_Xml();
doc is a DocumentClass.
Later you can set the xml to another doc.
|
|
|
|
|
|
Hi All,
I have made a class named "node", in which i have declared 2 datamembers
1.string tableName.
2.ArrayList colNames.
then, I have declared another ArrayList named "Schema"and then add the node class object in that(Schema's class) list.
Now the problem is that I want to retrive the colNames from the Schema's class object separately, but i can't did.
Regards,
chanzeb chaudhary.
|
|
|
|
|
Hi
It seems that you want to get the value of some fields/properties of an object that is contained in a container object (an ArrayList for example)
If I'm right you can do it using one of the following methods:
1.whenever you want to access a member of an item of an array list cast it to its type:
<br />
((myClass)myArray[0]).MyProperty=some value;<br />
2.(.net 2.0 only)You can use generic container classes to define a type for you container object.This way all the member of the container class will be changed according to its type.For example when you write MyGenericList[0] it returns an object of the type you have defined for it
<br />
List<myclass> myList=new List<myclass>();
myList[0].MyProperty=some value;
in order to use a generic collection you should use System.Collection.Generics namespace
|
|
|
|
|
How is this possbile as I've been wrecking my brain over it for days....
how can I do it?
|
|
|
|
|
Hi
It's possible
If you want to have some global variables that you can access from all of your forms you can implement them as static variables.
If you want to pass some info from some form to another here is my suggestion:
Have a constructor that accepts the variables as its arguments or you can have some properties for your form and pass the variables using them.Here's a better way that I suggest .Implement a context object that has the variables that you'd like to pass in it.then you can pass the context object between you form using one of the ways I mentioned.
|
|
|
|
|
|
Hi All,
I am using print preview control on a windows form and use a print document to print. I check for the installed printers in the network and by selecting the printer, i set the printername and print the document. Bu this works fine if the printer is installed in the same system where the application is installed. When the printer is on another system i get a blank page after printing. I dont know how the print document become empty at this time.
Please advice.
Thanks in advance for your help.
Ali
|
|
|
|
|
Hi friends ...
I m facing problem in writing contents of BLOB field from database
to wordfile(.doc).
I used BinaryWriter for writing to the file. it works fine but when I
open the file in append mode and try to append the contents it do not works.
any sample code
thanking you ...
|
|
|
|