|
PROPZ_76 wrote: We have an issue with something putting strange entries into a lotus config file i would really like to find the culprit.
I would guess, that the lotus application is the one writing out the enteries to the config file. If that is the case, try to find out if Lotus has an SDK for the application you are working on and if the API has a method which allows you to listen to the config file change events.
Also, in .net you have ways to monitor a file and find out when it gets modified and which user has modified it. I am not sure if that would be of any help for you.
modified on Thursday, April 15, 2010 12:43 PM
Thanks Luc for pointing it out. The FileSystemWatcher cannot say which user had modified a file. I remember using the current user logged on to find out who might have changed the file. This might not work if you have a single administrator/user log on to the machine.
As I said, FileSytemWatcher might not be a very useful feature but just wanted to let you know that .net has a FileSystemWatcher class
Tarakeshwar Reddy
There are two kinds of people, those who do the work and those who take the credit. Try to be in the first group; there is less competition there. - Indira Gandhi
modified on Thursday, April 15, 2010 12:43 PM
|
|
|
|
|
Tarakeshwar Reddy wrote: find out when it gets modified and which user has modified it
FileSystemWatcher would tell me what is going on, I am unaware of it telling me who is doing anything though.
|
|
|
|
|
Luc Pattyn wrote: I am unaware of it telling me who is doing anything though.
Yeah I remember that FileSystemWatcher did not provide me the user details and I ended up using the current user logged on to track who modified a file.
Tarakeshwar Reddy
There are two kinds of people, those who do the work and those who take the credit. Try to be in the first group; there is less competition there. - Indira Gandhi
|
|
|
|
|
My first .NET project was a kitchen conversion program. Converting weight and temperatures etc. I also built in time calculations based on weights. Useable (which helps) but gave me plenty of real world useage of data types, data validation and UI design, but simple and lightweight enough to not be too much to deal with.
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier. (Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
Step 1: Create a Calculator. The one we see in Windows. It will be easier enough coz, you know the functionality requirements. Also you will learn string manipulations well.
This one is my favourite. I learnt c# with this program.
Step 2: Choose two varied technologies - Database & Graphics
Database => Create a simple Shop Sales Program. Something that can print Bills to be given out to customers.
Graphics => Practice with some Drawing Program.
These will give you enough experience and understanding of C# Programs.
Som
|
|
|
|
|
Why not do something that is related to your current work, for example, a problem tracking system, that log date/time/description of problem, who raised the problem, who and when solved the problem,
Slowly you can enhance it to let user raise the problems (multi-user environment), categorize the problems, let manager to assign it to your colleagues (workflow), and generate reports on the time taken to solve the problems base on categories, etc etc.
|
|
|
|
|
My suggestion would be to try and solve a problem you currently face by building an application that addresses the issue. This will force you to "eat your own dog food" and consequently be critical of your own work (a great learning experience).
Further, chances are that if you're having this problem, others may well be in the same boat and would welcome trying out the utility you're building. This is a hugely humbling and rewarding experience, because it puts your efforts out in the real world and allows you to build a better application.
I've followed this very approach in all my "hobby" (non-work efforts). The results have been very rewarding.
/ravi
|
|
|
|
|
I am following http://msdn.microsoft.com/en-us/library/ms998360.aspx link to authenticate users against "active directories" and i could successfully login using this method.
Can anyone help me out how exactly can i get details of all the users displayed in my web site application when i am logged in as Administrator.
I want to display user details when the user i.e.,Administrator clicks on link say "User Details"
|
|
|
|
|
I posted this on the quick answer section, but - well - I couldn't discuss there.
I have a textbox showing the moves of a chess game. I need to prevent that someting lik "5. Ke4-e6" breaks up at the end of the line. I can use non-breaking hyphens and non-breaking spaces, but then it will still break at the dot.
So basically I want to wrap before or after the specified block, but *not* within. General wrapping should not be affected.
In HTML I'd use <nobr>5. K44-e6</nobr> and this behaviour is what I'm looking for.
I figure there must be something in RTF that gets this done...
Thanks for your help. Eiko
|
|
|
|
|
The RTB has no such formatting equivilent as far as I can find. Personally, I would probably chose to replace the RTB with a ListBox, maybe with custom painting code if there are formatting or painting requirements.
|
|
|
|
|
I've never seen that either. While I'm a big fan of ListBox, I'd go for a WebBrowser here; just create your own HTML document and show it in a WebBrowser; you can disable all user interactions through a number of boolean properties.
|
|
|
|
|
Is there anything in VB 2008 like Label control of vb6.0?
|
|
|
|
|
There are tons of examples out on the web. All you have to do is Google for "vb.net transparent label".
|
|
|
|
|
1/0 tons of thaks.
|
|
|
|
|
Set the label's BackColor property to Transparent and you get a transparent label!
|
|
|
|
|
Hello,
In an interview asked to me that,
Tell me an real time use of an interface.
Apart from importing namespace is there any use for "Using" keyword in C#.net.
Could anybody can answer these question. I would be very thankful to you
Regards
Azeem
|
|
|
|
|
Ahamed Azeem wrote: Tell me an real time use of an interface.
The question is rather unclear; it sounds as if you're requesting for an example of an interface in a real-time environment, but I'm going to guess that you want a practical example where we use interfaces. How about IDbConnection and IDbCommand ?
Ahamed Azeem wrote: Apart from importing namespace is there any use for "Using" keyword in C#.net.
Yup, both as a naming-alias for existing namespaces, as well as defining scope for a class that implements IDisposable .
I are Troll
|
|
|
|
|
Thank your for your reply.
Why do we want to go for interfaces rather than normal method definition.
Your second answer is not clear to me. Could you pls explain more
Regards
Azeem
|
|
|
|
|
Ahamed Azeem wrote: Why do we want to go for interfaces rather than normal method definition.
Mostly to prevent thight coupling, but there may be other reasons. An interface just says how the "normal method definition" should look, it doesn't contain any implementation; that means that if a class implements an interface that you can be sure that this class has all the properties and methods that are defined within the interface.
A variable of the type IDbConnection can hold a SqlConnection or a OracleClientConnection . You could only talk to Sql Express if you used a SqlConnection variable.
There's a better explanation of that idea over here[^].
Ahamed Azeem wrote: Your second answer is not clear to me. Could you pls explain more
The first alternative usage is a namespace alias[^]. That would allow you to "rename" the namespace. This is common in Office-development to shorten the namespaces. As an example;
static class SomeClass
{
static void someMethod ()
{
System.Diagnostics.Debug.WriteLine("bla");
}
} With a namespace-alias, it would look like this;
using Diag = System.Diagnostics;
static class SomeClass
{
static void someMethod ()
{
Diag.Debug.WriteLine("bla");
}
}
The second alternative[^] use is what the "interviewer" wanted to hear, and looks like this;
using (Font font1 = new Font("Arial", 10.0f))
{
byte charset = font1.GdiCharSet;
} This ensures that IDisposable is called cleaning up the Font .
Happy Reading
|
|
|
|
|
Thanks a lot.. now i got it
Regards
Azeem
|
|
|
|
|
Ahamed Azeem wrote: real time use of an interface
This is what I can think right away:
I am owner of an application. There are two distant and independent teams which are working on it. One on UI and other on rest of the layers. Now, as an owner, what I can do is provide both the teams with a interfaces so that they can work independently and be sure of what is the middle and DB layer is going to offer and what UI is supposed to consume.
There are plenty more uses of interfaces, one being dependency injection, which you might find through google.
|
|
|
|
|
Hi,
IMO you should buy and study a book on C# or change your career plans; those were very basic questions after all.
|
|
|
|
|
|
Dear Gentleman,
Is there any rule that basic question would not be answered..
I am very good fan of this forum.
Regards
Azeem
|
|
|
|
|
That's not the problem.
The problem is that you were interviewing for a C# job without knowing the most basic concepts of C# and OOP programming.
|
|
|
|