|
cezeri wrote:
Will it be logical to release the windows password to the server?
No, I meant only that if the client application can be launched by the user, then the application can assume that the user is already authenticated. You might consider that the application has a separate login known only to it and the server. This way, the user logs in to Windows using his username and password, and the application connects to your server with its own authentication process.
I guess the first question to ask is, what are you trying to prevent from happening? Unauthorized access to the client application, to the server, or both?
Once the user is authenticated and, if you store the username/password on the client so he doesn't have to type it in again, then what's to prevent someone else from using the application, pretending to be the user?
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|
-Unauthorized access to the client application is not important.
The username and password given in client app will be used to connecting server..
Also password will be determined by server administrators. So i think windows authentication could not work.
isolated storage seems as a better solution.
Thanks for help
|
|
|
|
|
Hi,
I´m using c# Windows Forms. Menu-mnemonics are in Windows Xp only shown when I press the ALT-Key or when i change the Windows-Appereance settings.
Is there a way how I can force my application to always show the menu-mnemonics? (e.g. by sending some Message WndProc() ??)
Cu,
Stephan
|
|
|
|
|
stephan.scheele wrote:
Is there a way how I can force my application to always show the menu-mnemonics?
Well, as you pointed out, this is a user-configurable appearance setting. If the user doesn't want the underlines and memnonics, why force them in your app?
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|
This is a setting in Windows. Check the Display control panel, Effects tab for the "Hide keyboard navigation indicators until I use the Alt key" checkbox.
No, you can't force your users to turn it on and off. Your code COULD turn this on, but it is considered EXTREMELY bad practice for your code to mess with Windows settings that the user has setup.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Mark and Dave are right. You really should honor your users' settings unless you like unhappy users. You could, however, expose the functionality to enable or disable such a feature in an options dialog, menu, etc.
You can P/Invoke SystemParametersInfo and use SPI_SETKEYBOARDCUES to enable or disable the feature:
[DllImport("user32.dll", EntryPoint="SystemParametersInfo", SetLastError=true)]
static extern bool SetSystemParametersInfo(uint uiAction, uint uiParam,
bool pvParam, uint fWinIni);
[DllImport("user32.dll", EntryPoint="SystemParametersInfo", SetLastError=true)]
static extern bool GetSystemParametersInfo(uint uiAction, uint uiParam,
out bool pvParam, uint fWinIni);
const uint SPI_GETKEYBOARDCUES = 0x100a;
const uint SPI_SETKEYBOARDCUES = 0x100b;
const uint SPIF_UPDATEINIFILE = 0x0001;
const uint SPIF_SENDCHANGE = 0x0002;
public static bool KeyboardCues
{
get
{
bool value = false;
if (!GetSystemParametersInfo(SPI_GETKEYBOARDCUES, 0, out value,
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE))
throw new Win32Exception();
return value;
}
set
{
if (!SetSystemParametersInfo(SPI_SETKEYBOARDCUES, 0, value,
SPIF_UPDATEINIFILE | SPIF_SENDCHANGE))
throw new Win32Exception();
}
}
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
who can help me write a program C#
|
|
|
|
|
|
I can:
public class MyFirstClass
{
public static void Main()
{
for (int i=0; i<100; i++)
Console.WriteLine("I will come back to the forum when I learned to ask meaningful questions.");
}
} Jeez, kids these days
mav
|
|
|
|
|
Congratulations! You now hold the record for the most generic question ever asked on CodeProject!
Let me see if I can answer this.... ummmm... We can!
But only if you ask a more specific question, such as what you're actually having a problem with...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi guys,
I am to display a help window thru
Help.ShowHelp(this, "MUHelp.chm");
The problem is that the resulting window is alwayz maximised thus resulting into a modal help. I need to start it in a new restored window such that its not modal. This way users can freely switch to n fro from help window to my application. Any clues???
thanx
smith
|
|
|
|
|
I m feeling difficulty in how make call from one pc to other pc either C# support this. Please write to me simple code example just to send request to other PC using IP Number
Thanks
Aamir
Center for Information Technology
Uinversity of Arid Agriculture Rawalpindi
aamir
|
|
|
|
|
|
Hello CSharpers,
I have build an MDI-app's where a MDI window creates a client window to show the progress of a MDI task. The client consists of a form, a label and a processbar.
The processbar of the client is controled by the mdi-window.
Everythink is fine as long as I don't touch the client window.
By selecting (activating) the client by mouseclick the processbar stops immediately and no further actions happens.
In the MDI window I am using form.Update() and processbar.Update().
Do you have some ideas to keep the client alive ?
Thank you
Frank
|
|
|
|
|
fracalifa wrote:
Do you have some ideas to keep the client alive ?
What is actually changing the progress bar? It sounds like some process needs to run in a thread and send messages to the client window to update the progress bar. By changing focus, it seems like the process that is doing the updates is stopping. Are you using OnIdle? In that case, I don't think the MDI window's OnIdle gets called when you change focus to the client.
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|
Thank you for reply,
Yes, the changing of the progressbar is coming from a thread in the MDI-App's and sends the progrssbar.value and it's update method. But the updating thread definitely does'nt stop because a test Console.writeline from the same thread is going on when the progress bar already stops. And the thread also closes the client window correctly when the work is done. The mousehover event over the client is enough to stop the processbar.
No I don't use OnIdle.
So some new ideas ?
Frank
|
|
|
|
|
Hi to myself, (and to others who are interested)
I have found a solution for the problem I mentioned above. It's not a problem of MDI or processbar, it's simly a question of understanding windows time schedule. Using
Application.DoEvents()
brought the success.
I thought that .net shares the cpu time automaticly within an application but that's wrong. If you want accept an reaktion from other parts of your program during long and time intensive operations you have to put one ore more DoEvents into these routines.
That's it
- End -
|
|
|
|
|
I need to build a HTML Editor in C# butdon't know where to start from??????????
Can anybody help me out
|
|
|
|
|
A simple Google search for something like "C# HTML Editor" will come up with tons of results.
In addition, I think a good idea is to take a look at existing similar controls. This will help you identify more clearly what and how you should do. It can help you even realise where to start from. Take a look here[^].
Hope this helps
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
This is a problem of a collision , in a sport meeting ,there are two parts, each part have some events , two pars will be placed at the some time, the problem is that if someone will take part in several kinds of races, but the two parts’ items will be placed at the same time, how to solve this problem.
I built this software for a collage, if you know how to solve this problem ,please tell me .
My msn:yobboboy@msn.com.
Thank you!
Always do you best,what you plant you will harvest
later!
|
|
|
|
|
Huh?
With such a vague description no-one will be able to help you.
And if there are any replies, they will be placed here in the forum and not sent by mail!
mav
|
|
|
|
|
Ok,thank you.
now,if there are two kinds of sport items,p1 dnd p2,in the part one,there are items,we can think them as a1,a2,a3 and a4,maybe there are more than four.
in the other part there are also some items,just like b1,b2,b3 and so on.p1 and p2 would take place at the same time,of course the items of p1 and p2.now,if somebody will attend a1,and b1,but he can't attend the two sprots at the same time,so the system must solve this problem.I don't know how to arrange the contestants.
Always do you best,what you plant you will harvest
later!
|
|
|
|
|
I still can't understand your description Harry. Try explaining a bit more clearly, leaving out unnecessary descriptions. Perhaps, tell us what data structures/types will the solution include if u know beforehand. Maybe somebody will understand a bit better if u do that.
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
This is a problem of a collision , in a sport meeting ,there are two parts, each part have some events , two pars will be placed at the some time, the problem is that if someone will take part in several kinds of races, but the two parts’ items will be placed at the same time, how to solve this problem.
I built this software for a collage, if you know how to solve this problem ,please tell me .
My msn:yobboboy@msn.com.
Thank you!
Always do you best,what you plant you will harvest
later!
|
|
|
|
|
harry~ wrote:
I built this software for a collage, if you know how to solve this problem ,please tell me .
Well, in general, one idea is to make an array of time slots. Let's say the events are every 15 minutes. So you have an array for each each person that, when they sign up for an event, fills in however long each event takes, starting at the appropriate 15 minute indexed interval. Then, when they sign up for another event, check the array to see if there's a time overlap.
You probably also need to take into account the time it takes to leave one event and get to another, so you can't have someone sign up for an event that ends at 1:30 and another that starts at 1:30, because they can't get to the next event in time!
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|