|
Change the set [^ ] to [^ \]] when matching the statement and the variable. You don't want them to contain any ] characters.
Change the * after that variable set to *? to make it match as little as possible instead of as much as possible. Otherwise it will be looking for the last possible end bracket instead of the first one.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks, that helped!
|
|
|
|
|
Hello,
I like to write a DB application (client). Multiple clients (on different machines) shall be able to access the DB at the same time, but they shall not knock out each other. The DB is an ORACLE-DB and is located on a server.
At the moment I think of things like, how can I ensure that only one client writes into the DB. Better, multiple clients can write but not in the same table at the same time. Assuming user A inserts a new entry into table T1 then user B shall not be able to do any actions with T1 until A is ready, but B can edit each other table that has no relation with T1. If A is ready then B shall get the changes first and then he can edit the table.
How can I implement something like this?
pkoeppe
|
|
|
|
|
|
I has a package that implements custom menus. When you right click a project file i have implemented some commands that are listed in the context menu. Is there a way i can group these commands together in a sub context menu (eg commands -> command 1, command 2, ect.).
Any ideas?
|
|
|
|
|
Hello,
ceejeeb wrote: commands together in a sub context menu
System.Windows.Forms.MenuItem[] menuitems = new MenuItem[2];
System.Windows.Forms.MenuItem[] subitems = new MenuItem[2];
subitems[0] = new MenuItem("sub1");
subitems[1] = new MenuItem("sub2");
menuitems[0] = new MenuItem("Sub", subitems);
menuitems[1] = new MenuItem("Main");
ContextMenu cm = new ContextMenu(menuitems);
Hope it helps!
All the best,
Martin
|
|
|
|
|
im not sure how i would use this in my project. At the moment my commands are declared in between BUTTONS_BEGIN and BUTTONS_END.
|
|
|
|
|
I figured out how I had to do it. I needed a group that was part of the context menu, a menu that was part of that group, a group that was part of that menu and then the commands were part of the second group (if that makes sence).
Problem i have now is i want to remove some of the menus and commands that are in the context menu by default and i have no idea. If any one does let me know.
|
|
|
|
|
Hi,
How can i change the sattlite assembly after deployement without changing anything else.
Regards,
Sachin
|
|
|
|
|
Hi
i wanna to set transparent setting for my ShockwaveFlash component in my Visual C#.NET or Visual VB.NET projects.
we know with Transparet setting for ShockwaveFlash component, the background colour of ShockwaveFlash will be removed.
Thanks a lot
The flame of Hope should never go out from your life...and with Hope, each of us can live a life with Peace, Faith & Love.
|
|
|
|
|
i anyone here can answer my question?
The flame of Hope should never go out from your life...and with Hope, each of us can live a life with Peace, Faith & Love.
|
|
|
|
|
Hi !!
about your question, were you able to find the solution at last?
Thanks
Roey
Don't believe to what you hear on the news...
|
|
|
|
|
I'm planning to create WinForms ERP application which uses Entity classes for data access layer.
I created code generator which creates .cs files, separate file for every
database table.
My appl users can add fields to database tables after application is
deployed to create new fields for customer, invoice tables etc.
So I need to re-generate data-access layer if end user adds custom columns
to tables.
For this I need to create assembly from .cs files at runtime.
I'm planning to create class hierarchy containing 5 classes in 5 dll files
from which 2 (3 entity classes and 5 custom business logic) can be compiled
dynamically at customer sites:
1 EntityBase<t> - EntityBase.dll class. Base class for classes 2-5
2 ModelGenericBase<t> - ModelGenericBase.dll - common logic. Static dll,
deployed with application.
3 Entity classes: CustomerEntity, InvoiceEntity etc. -
ModelEntity.dll - this dll is generated dynamically from database tables.
4 Business logic - Business.dll - business logic, uses entity
classes. Static dll, deployed with application.
5 Customer, Invoice etc. class - ModelCustom.dll - contains custom
logic. Generated dynamically if on-site customization is used.
So I have 120 .cs files in single directory containig POCO s like:
Entity1.cs:
namespace Model {<br />
public class Entity1 {<br />
string property1;<br />
<br />
public virtual string Property1 {<br />
get { return property1; }<br />
set { property1 = value; }<br />
}<br />
}<br />
}
Entity2.cs:
namespace Model {<br />
public class Entity2 {<br />
string property2;<br />
<br />
public virtual string Property2 {<br />
get { return property2; }<br />
set { property2 = value; }<br />
}<br />
}<br />
}
I need to generate ModelEntity.dll assembly from those files from my application.
What do yuo think about this approach ?
Where to find sample code which compiles cs files and creates dll file ?
Andrus
|
|
|
|
|
Hi,
Can anybody tell me how to create a shortcut in start up menu using windows c#.
I dont want to use any com component.
Pls help
-- modified at 5:08 Wednesday 25th July, 2007
Nana
|
|
|
|
|
Hello
I'm working with Windows Forms and ASP.NET projects using C#.
Today the user interface strings, like labels, messageboxes, etc. are located directly in the cs file within the code. I would like to place these strings separate from the code, but where? My first thought was to use a .resx file.
Localization is currently not an issue and probably never will be, but you never know. So I would like to keep that possibility open or at least not close the door.
Any suggestions?
|
|
|
|
|
Yes, put them in a resource file - If you are using VS2005 you'll find that it does quite a bit to help you access them in a sensible and type safe way as it creates a code behind file for the resource file.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
Thanks. Do you know of any good articles about this?
|
|
|
|
|
It does everything for you. I can't see that an article would add much. It creates a class with the same name as the resource file with lots of static properties named after the string resource that get the actual string value for you. There is nothing much more complex about it. Visual Studio does the hard work so you don't have to.
Upcoming events:
* Glasgow: Mock Objects, SQL Server CLR Integration, Reporting Services, db4o, Dependency Injection with Spring ...
"I wouldn't say boo to a goose. I'm not a coward, I just realise that it would be largely pointless."
My website
|
|
|
|
|
Hi,
I am developing an application which needs to change the User Interface language of my WinCE device to the selected one from my application.I need to change the device language programmatically.
Can any one help me out in this ??? (I need it urgently)
Thanks.
Jyoti.
|
|
|
|
|
look into the resourcemanager class on MSDN.
You can attach assemblies with translations to your application that each contain the translations for your app.
V.
No hurries, no worries
|
|
|
|
|
Thanks for the quick reply but this is not i m searching for. I need to change WinCE device language programmatically. Manually we can change it from the regional settings. But i have to do it programmatically.
Thanks.
|
|
|
|
|
You don't want to set the language to french, english, chinese via a menu option or something?
|
|
|
|
|
No..i do want to set the language using a combobox. See when i select a language from a combobox from my application, i have to change the application UI language also(i have idea how to do that using ResourceManager and Satellite assemblies)but along with that i also want to change the OS language also.
|
|
|
|
|
Jyoti.Patil wrote: along with that i also want to change the OS language also.
Ok that is much clearer, but unfortunately I can't help you there...
|
|
|
|
|
Hello all,
Finally i got the answer for my question after a lot of R & D.
To change the language of the WinCE device user just has to change the two keys in the device registry.
RegistryKey regKey = Registry.CurrentUser.OpenSubKey("MUI", true);
if (regKey != null)
{
regKey.SetValue("CurLang", 1031); // 1031 is for German
regKey.Flush();
regKey.Close();
}
regKey = Registry.LocalMachine.OpenSubKey(@"nls\overrides", true);
if(regKey != null)
{
regKey.SetValue("LCID", 1031);
regKey.Flush();
regKey.Close();
}
and then add the code to restart the device. Without restarting the language change will not get reflected.
Thanks.
|
|
|
|