|
I think you should follow the same way as that of Cache Invalidation ... This will combination of notification and querying the table
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
Hello,
I am working on changing our application to have multiple users access the application at the same time. Here's my problem:
Our application connects to a web service and also generates a log file to keep track of exceptions. The path of the web service and the path of the log file is specified in the application's .config file. This file is named <application-assembly-name>.exe.config.
I am assuming that the application automatically detects if there is a .config file in the said filename format. Is it possible for the application to look for the .exe path elsewhere? Each user needs to have their own .config file and .log file. Currently our log file is also generated in the same directory as specified in the .config file.
We would like to move all of these into the <approot>\user-data\<windows-username>\... directory.
Please help.
Thanks!
~Rafferty
|
|
|
|
|
Small correction:
We would like to move all of these into the \user-data\<windows-username>\... directory.
Other suggestions on how to approach this are also highly appreciated.
~Rafferty
|
|
|
|
|
If you are using .NET 2.0, you can use the settings management features of VS2005 and change the scope of the appropriate config items from "application" to "user" and let .NET manage things for you. By default the user config files go into isolated storage for each user. I believe you can change this, but I don't remember how off-hand.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Hello Scott,
I tried looking at your suggestion but there are some configurations that I'm not seeing in the Settings Windows Forms so this won't work.
What I'm doing now is to try and load user-specific .config files using the ConfigurationManager.OpenMappedExeConfiguration(...) method. However even after the config file is opened, it is not being set into the application's settings. Do you know how to do this?
Thanks,
~Rafferty
|
|
|
|
|
It won't get "mapped" in the way you are thinking. The code I have used in the past is:
Configuration serviceConfig = ConfigurationManager.OpenExeConfiguration(configFilePath);
ConnectionStringSettings engineConnectionStringSettings = serviceConfig.ConnectionStrings.ConnectionStrings["engineConnectionString"];
The call to ConfigurationManager.OpenExeConfiguration returns a Configuration object that you then need to use instead.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Yesterday I've caught a very strange bug
float a = 81.1666641F;
float b = 18F;
float c = 6.3166666F;
float d = (a - b) / c;
int e = (int)((a - b) / c);
int f = (int)d;
Console.WriteLine(d);
Console.WriteLine(e);
Console.WriteLine(f);
--------------------------
OUTPUT:
10.0
9
10
|
|
|
|
|
Hi, there is no bug here. It is a result of rounding (and the implicit conversion rules).
Do the same code with double, and try to explain !
|
|
|
|
|
it is not a bug you are casting the result set to in so you are getting the results in Int which is close round of result
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
Hi,
I want to know what is the ideal way to change from one language to another in a windows application (eg. From English to Chinese). I know one way is to use the resource folder and keep all the english strings there and then replace each string with the new language. This process can get tedious and Im wondering if there is a better way. Thanks for any ideas!
~Jacky
|
|
|
|
|
This is pretty much the only way to do it. The translated strings need to be stored somewhere so the application can retrieve them. Setting the Localizable property to true on the form and using language specific resource files (which will automatically generate the necessary sattelite assemblies) is the best approach.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Sir,
Please send me resources to know the difference between .Net Vs J2EE
Thanks
Bala
|
|
|
|
|
|
hi everyone
i want to see the Class Diagram of my project but don't know how. Can anyone please tell me where the class diagram option is in Visual Stuido 2003 ?
thanks for the time
regards
Sai
|
|
|
|
|
Saira Tanwir wrote: I want to see the Class Diagram of my project but don't know how. Can anyone please tell me where the class diagram option is in Visual Stuido 2003 ?
There isn't one. It is a new feature in Visual Studio 2005
|
|
|
|
|
there is a tool named Visual UML which takes the project/ solution as input and develops class diagram for you.
You can configure it accordingly to give you required information.
Thanks,
Jai
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
If I am not wrong, you can make a reverse engineering using MS Visio...If you have VS 2003, you probably have MS Visio 2003 for Enterprise Architect...so, enjoy it!!!
Leonardo Pinheiro
|
|
|
|
|
In our new application which we are developing with .NET 3.0 framework, I need to develop a dockable toolbar. Thats means a toolbar like a MS office which user should be able to move from one place to another in execution time. It is being called as dockable toolbar in floating state. Can any one help me to get this done. Its urgent !!!
Any help is appreciable !!!
Regards,
Mohini
|
|
|
|
|
I think you need to develop your own or you have to get some 3rd party tools.
|
|
|
|
|
i'm planning to make a .net roadmap for my new comming employees.
i know it's too broad to start and this is why i need help.
i wanna make a roadmap that can be used for people are frosh in this industry.
i havn't started yet, but probably it will have to contain what courses to take, what catagories should be educated, what concept to understand,,,etc.
does any one has any kind of resources, documents, or references??
please let me know...it will be helpful.
thanks.
|
|
|
|
|
Road Map, I would suggest if you can come out with a proper training followed by good demo project. When you plan for training think about all the possible feature that you can use it. Also if this is in line for some upcoming project then you should always keep those requirements in mind while deciding the scope of project.
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
Regards,
Jaiprakash M Bankolli
jaiprakash.bankolli@gmail.com
http://jaiprakash.blog.com/
|
|
|
|
|
I'm of the opinion that users should be able to TEMPORARILY have invalid data in a bound control. To enable this, I set Form.AutoValidate to EnableAllowFocusChange so they can leave a control even if there is invalid data. I bind these controls to an object that implements IDataErrorInfo & INotifyPropertyChanged, with property procedures like this:
Private _x As Double
Public Property X() As Double
Get
Return _x
End Get
Set(ByVal value As Double)
If _x <> value Then
If value < 0 OrElse value > 10 Then
_item("X") = "X must be between 0 and 10!" ' For IDataErrorInfo.Item
Else
_item("X") = ""
_x = value
RaiseEvent PropertyChanged(Me, New PropertyChangedEventArgs("X"))
End If
End If
End Set
End Property
Now let's say I enter an "a" into a textbox bound to this property, then I tab out of the textbox into another bound control, edit it, and then leave THAT control, too. This causes the controls to be refreshed with the value of the properties, which means that my invalid "a" gets changed to zero, the value of _x.
My question is: How can I set things up so the invalid "a" gets left in the control until the user decides to re-enter it and change the value?
---scott
|
|
|
|
|
I'm using VS 'Orcas' and .net 3.0 for this.
I'm using xml to make a small item list and I want to make the background of the program change depending on what item is selected.
I'm using a listbox that looks like this
< ListBox Width="Auto" Background="Transparent" BorderThickness="0" ItemsSource="{Binding Source={StaticResource listoitems}}" DisplayMemberPath="@name" IsSynchronizedWithCurrentItem="True" />
I came up with two possible ways to do this. One is to have the background of the ListBox transparent and just change the main windows background.
Background="{Binding Source={StaticResource listoitems}, XPath=bgimage}"
But this does not work. When I compile to test the program, it tells me that the program is not responding. I assumed that I could use the background like I can assune XPath values to textboxs. Do I need to make the main window refer back to the xml fine even though I made the <window.resources><xmldataprovider ....=""> tags.
I also tried using the above background code for the ListBox and it compiled, but I didn't get any image changes, just white.
Oh another thing that might be important, the image files are .png files. I shouldn't be the problem though, bceause I've seen demo programs that use PNG files. Or maybe the background doesn't like having a PNG.
If anyone knows any alternative ways of doing this, I'm all ears, but I'd like to understand why this doesn't work, though the answer is probably just a "because it doesn't." Thanks for any help.
|
|
|
|
|
How to Add the value in a particualr column say 2 as Combobox in a VSFlexGrid 7.0. There is some problem show at the runtime suppose we take flex as object of AXVSflexGrid and put the value in flex.set_colcombolist(2,"A"),suppose, but runtime error comes at the Form1 of Public Class Form1, show(Object reference not set to an instance of an Object). if anyone hv project like this or what I hv 2 do. Pls help me as soon as possible.
-- modified at 5:17 Tuesday 10th April, 2007
|
|
|
|
|
Hey,
Pls let me if anybody have used AES 128 bit encryption method in C# .
Thanks
Kusuma
-- modified at 4:57 Thursday 12th April, 2007
|
|
|
|