|
check the first application which has opened the access file, it should open that file as a shared mode
Mhmoud Rawas
------------
Software Eng.
|
|
|
|
|
I have used crystal report on my program also build setup project that include merge module Crystal_Managed2003.msm and Crystal_regwiz2003.msm.
also placed license key in Crystal_regwiz2003.msm,but i always get the error "CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Load crpe32.dll failed."when i try to open crystal report.Can any one help
shailee
|
|
|
|
|
After having written the same thing, the thing that I found with this problem and might not be the case with you though. Is that the crystal library your are using doesn't match the merge modules that you are trying to merge into your program.
Another thing that you might try, is to see if the key that your inserting is the correct key for the merge module as well.
For more information I would head over to Crystal Decisions website and have a look at the support site there. It helped me.
|
|
|
|
|
well the version of the library and modules are same and the key is correct too.
but when i run the setup in another computer and install the program any try to open crystal report I get this error
do I need to register crpe32.dll ?
I am waiting for the reply of Crystal report's support site.....
but if anyone has the solution please......
help help help
|
|
|
|
|
I would like to invoke any control's event just as if the user or another source would. This, of course without building my own derivated class.
I've been looking around but i just dont seem to find the answer.
I tried the following but didn't work.
//What i'm trying to do here is to invoke a form or control event by code.
//The idea seems right but i just could get it to work.
Form1 _fasoc = new Form1();
Type f = _fasoc.GetType();
System.Reflection.EventInfo ev = f.GetEvent("DoubleClick");
System.Reflection.MethodInfo minfo = ev.GetRaiseMethod();
//minfo gets null but the event is recognized. What's wrong?
minfo.Invoke(_fasoc, new object[]{this, new EventArgs()});
If anyone knows about this, please help me out.
|
|
|
|
|
In my application I want to change the decimal symbol "," into "." without changing from control pannel regional settings..I searched the net but connot find any good answers..They are talking about something like "CurrentCulture.CultureInfo.NumberFormat" Can anyone help me
Thanx a lot..
|
|
|
|
|
Yep - because it's a , in Germany, and other countries, you need to change the localisation setting to use whatever country you are trying to emulate.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Can anyone tell me how you can add a image to a context menuItem??
if i use the drawItem event i doesnt work:
Font drawFont = new Font("Arial", 10);
e.Graphics.DrawRectangle(new Pen(Brushes.Black, 1), 200,200, 100, 20);
e.Graphics.DrawImage(Image.FromFile(@"D:\Ontwikkelmap\Visual studio projects\Marquis poolcompetitie\Pool Competitie\bin\Debug\Images\print.gif"),200,200);
e.Graphics.DrawString("test", drawFont, Brushes.Red, 0, 30 );
when i use the same code with a mainMenu, it works...
|
|
|
|
|
Take a look at Lutz Roeder's CommandBar. It has good examples of just that.
|
|
|
|
|
Hi,
I have a deployment project that I need to have all open internet explorer windows shut down and after the install i need to open up the browser to a webpage.
Is there a way to do this using Studio .NET?
|
|
|
|
|
Hi
I am experiencing a problem with the .Net ArrayList that I hope someone is familiar with. I have an interface that multiple classes derive from. For example:
public interface ITest
{
void TestFunc1();
void TestFunc2();
}
class Test1 : ITest
{
}
class Test2: ITest
{
}
When these classes are instantiated, they are inserted into an arraylist which, as I understand, converts them into objects. When I try to use the objects in the array, I wanted to cast them to the interface and call methods against it. This is so I would not have to know the type of object in the array, just that it adhered to the interface contract. This way I could iterate using the same line of code:
arraylist[0] = new Test1(); for example
arraylist[1] = new Test2();
((ITest)arraylist[0]).TestFunc1(); // calls Test1 TestFunc1();
((ITest)arraylist[1]).TestFunc1(); // calls Test2 TestFunc1()
The polymorphic behavior works outside of the arraylist but as soon as the objects are inserted, they seem to lose the inheritance heirarchy. For example, the cast to ITest is flagged as invalid. I can cast to the derived type (Test1 or Test2) and this works but forces me to know the specific type that was inserted. I tested replacing the interface derivation with a base class
public class Test1 : BaseClassTest
{
{
and tried to cast using ((BaseClassTest)arraylist[0]).TestFunc1();
with the same invalid cast error. Does anyone know of a way to recover an element out of a .Net collections and recover the base derivation without using dynamic invocation or reflection? Sorry for the complicated example but thanks in advance for your help.
|
|
|
|
|
I set up the following and it appeard to work fine for me without any problems.
public interface ITest
{
void TestFunc1();
void TestFunc2();
}
class Test1 : ITest
{
public void TestFunc1()
{
MessageBox.Show("Here1");
}
public void TestFunc2()
{
MessageBox.Show("Here2");
}
}
class Test2: ITest
{
public void TestFunc1()
{
MessageBox.Show("Here3");
}
public void TestFunc2()
{
MessageBox.Show("Here4");
}
}
private void button1_Click(object sender, System.EventArgs e)
{
ArrayList al = new ArrayList();
al.Add(new Test1());
al.Add(new Test2());
((ITest)al[0]).TestFunc1();
((ITest)al[1]).TestFunc2();
}
I got "Here1" and "Here4" as exptected
Darryl Borden
Principal IT Analyst
dborden@eprod.com
|
|
|
|
|
In Visual C++, you can define the output path for a pdb file like so:
/PDB:c:\Some\path\to\my\debuginfo.pdb
which lets us keep all the pdb's in a single location
However C# only seems to have an option to turn on the debugging info, but nowhere to specify where the info should go
Does anyone know if there's an option somewhere I'm missing?
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
Nope. You didn't miss anything, you just can't find what's not there...
C# Compiler Options[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
In a particular situation, I have a KeyPressEventArgs.KeyChar property from which using the code I am getting value of selected Ascii character. I am able to show all lower ascii characters on the keyboard. If I want to show upper-case (or upper) characters for these keys, I am able to use the ToUpper() method to get the upper characters on the alphbatic keys (i.e., from "A" to "Z"). However, when I try to get the upper keys on the numeric keys, I am not able to use ToUpper() method.
The problem is that in the particular program on which I am working, I am getting only partial ascii values (i.e., lower keys only and not the upper keys). Due to some peculiar reasons, I have to live with this situation. I want to get the upper keys on the keyboard by checking the status of the "Shift" key.
Thus, how can I get the upper keys of the keyboard (for numeric keys) such as #, ^, &, *, $, etc. by programatically combining with Shift key status the the lower key values such as 5, 6, 7, 8, etc.? Is there any method equivalent to ToUpper() which can be used to convert, say 4 to $ (i.e., lower to upper key)?
|
|
|
|
|
|
thanks for the quick reply.
But, even as per a given layout of a keyboard, can i represent the upper key (whatever it may be in a keyboard layout) using the lower key and the status of Shift, by accessing some method similar to ToUpper.
I have seen method such as IsSymbol in the char structure, which can tell me whether it is a symbol or not. My problem is how to get the symbol on the upper key(whatever it might be) from the lower key?
I hope I am clear about the requirement facing me.
|
|
|
|
|
.ToUpper() does NOT mean the upper, or Shifted, character on the keyboard. It simply converts a string to its Upper Case equivalent (lower case, UPPER CASE.) There is no function that will convert your key code to whatever the Shift-keycode is.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How do I start a service programatically? Is there a way to do it from the command prompt or in the service installer?
Thanks a lot,
Jim
Did I post well? Rate it! Did I post badly? Rate that too!
|
|
|
|
|
|
Thanks, but how do I use that? I don't see a start command.
Thanks,
Jim
Did I post well? Rate it! Did I post badly? Rate that too!
|
|
|
|
|
try this:
this.serviceController1 = new System.ServiceProcess.ServiceController("place here the name of the service");
serviceController1.Start();
|
|
|
|
|
You didn't look very hard. ServiceController.Start Method[^] docs on MSDN.
ServiceController myService = new ServiceController(@"MyServiceName");
if ( (myService.Status.Equals(ServiceControllerStatus.Stopped) ) ||
( myService.Status.Equals(ServiceControllerStatus.StopPending) ) )
{
myService.Start();
}
else
{
Console.WriteLine("Service is already running...");
}
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello people,
i'm using the DAAB (Enterprise Library) to access the data in my system. But I need to use the schema from the tables i'm reading....
when I was using the default DataAdapter, I have used the FillSchema() method, but now, when I use de DAAB to fill de data, I couldn't get the primary keys columns, unique columns neither autoincrement columns...
This is the code that i'm using to get the data with DAAB:
===========================
Database db = DatabaseFactory.CreateDatabase();
DBCommandWrapper cmd = db.GetSqlStringCommandWrapper("SELECT * FROM Customer");
ds = db.ExecuteDataSet(cmd);
===========================
But this code don't return the schema from the "Customer" table.
Do you have any tip to do it?
thanks people
André
|
|
|
|
|
Hi all,
Is there any API to change the system locale ?
I need to write a C# application which takes LCID as input, and based on the LCID it should change the system locale.
Thanks
Mahesh
|
|
|
|