|
Hi everybody,
I didn't know where to place this topic, so if mods consider that it should be elsewhere... no problem .
I'm developing a desktop application in C#. The first dialog it is a login form with user and password editboxes. I'd like to authenticate against a web service (using a database). Also, I'd like the connection was secure using SSL/TLS or whatever. I'm not sure how to do this, or if there is a better way to do remote authentication. I've been reading about WS-Security, SOAP... But before doing something, I wanted to ask here.
Thank you.
Regards
|
|
|
|
|
Hi,
I have a calendar control in my application (WPF Application), i have to do validation for this control, like if the user select a date or else enter a date which is less than the current day or Today, it has to show an error.
So will u tell me how can i do this, if possible with an example...
and is it possible to disable the dates for user selection in a calendar when it is less than the current day(Today), if possible, will u tell me how to do it...
Thanks
|
|
|
|
|
Take a look here[^], there are quite a few sample scenarios to help you.
I must get a clever new signature for 2011.
|
|
|
|
|
I am making outlook add-ins.
I made add-ins which is located outlook toolbar.
And now i want to add sub menu when i click mouse right button.
Currently, i reference msdn site but there is nothing about sub menu.
If you know site which i can reference
please let me know.
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
buffering83 wrote: click mouse right button
This implies the secondary mouse button - and that is used for CONTEXT menus not sub menus.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
context menus can be hierarchical, Visual Studio has lots of examples.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Luc Pattyn wrote: context menus can be hierarchical
Sure but the OP is talking about right clicking on an outlook menu bar, you do that till the cows come home and you will not get a sub menu.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You're right, except maybe about the cows, I don't know. I have been told they come home all by themselves, eager to get milked.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Luc Pattyn wrote: eager to get milked.
Not according to AspDotNetDev, they come home to get Orked
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
well, he would know; I run a one-man shop.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Thank you for reply!
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
Thank you for reply!
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
The menu when you click the right mouse button is called a context menu, not a sub menu which is likely why you didn't find it on the msdn site.
This MSDN Link may be of help. I understand that the source is in vb, but it shows how to do this.
As well, this site appears to have some really good tutorials for add-ins. You may find some context menu stuff in there too.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Oh, This is what i am looking for!
Thank you!
hi
My english is a little.
anyway, nice to meet you~~
and give me your advice anytime~
|
|
|
|
|
I draw rectangle by use mouse but this rectangle drawing many time I mean many rectangle
result in one time and if click the button the rectangle disappear I want rectangle stil
in panel even click another button to draw another ship ..............how
help meeeeeeeee please.............
|
|
|
|
|
How can we possibly help you?
We cannot see the code that causes you these problems.
The only thing that I can say is that if you are not drawing the rectangles in the panel's OnPaint event handler they will disappear each time the panel is redrawn.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
I wouldn't let CG touch my Abacus!
When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.
|
|
|
|
|
you did not provide any detail nor code, so all I can do is suggest you read this[^].
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
There are many members willing to help you, but your question is ambiguous.
What actually is the problem?
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
your question is not clear. please be clear while asking question so we can help you
|
|
|
|
|
Hello,
I have developed a Console App with CommandLine Args that can display and then remove SACLs from a user inputted Path.
Works great. However, the way I have it setup is that in only displays or removes the SACLS based on the Directory entered.
I need my code to enumerate the Directory and display information not only from the Directory, but also Subdirectories and Files in the directories.
Anyone have this code available or can point me in the right direction?
Thank You!
Here is some sample code of what I have done. Again, it reads in a Directory only. I need the Directory, SubDirectories, and files.
class Program
{
static void Main(string[] args)
{
try
{
if (args[0].ToUpper().Trim() == "SEARCH") // Displays all Sacls for path
{
Console.WriteLine("Enter your Directory path: ex. C:\\TestFolder");
string path = Console.ReadLine();
Console.WriteLine("{0}", path);
if (Directory.Exists(path))
{
Console.WriteLine(GetDirectoryAuditControlInformation(path));
}
else
{
Console.WriteLine("Path does not exist");
}
}
else if // argument for == CLEAN which removes all Sacls.
// my function for GetDirectoryAuditControlInformation(string path)
public static string GetDirectoryAuditControlInformation(string path)
{
StringBuilder info = new StringBuilder();
info.AppendLine("SACL entries for the path \ "" + path + "\":");
info.AppendLine();
DirectorySecurity dsecurity = Directory.GetAccessControl(path, AccessControlSections.Audit);
AuthorizationRuleCollection acl = dsecurity.GetAuditRules(true, true, typeof(System.Security.Principal.NTAccount));
foreach (FileSystemAuditRule ace in acl)
{
string aceInfo = GetAuditAceInformation(ace);
info.AppendLine(aceInfo);
}
return info.ToString();
}
public static string GetAuditInformation(FileSystemAuditRule ace)
{
StringBuilder info = new StringBuilder();
string line = string.Format("Account: {0}", ace.IdentityReference.Value);
info.AppendLine(line);
line = string.Format("Type: {0}", ace.AuditFlags);
info.AppendLine(line);
line = string.Format("Rights: {0}", ace.FileSystemRights);
info.AppendLine(line);
line = string.Format("Inherited ACE: {0}", ace.IsInherited);
info.AppendLine(line);
return info.ToString();
}
|
|
|
|
|
|
I'm not so sure that's necessarily a bad thing. A lot of folks don't answer question in the Q/A section, so he's maximizing his coverage.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
You're right. Thought about this since I'm quite new to the Q/A section and it's role. Still decided (perhaps over eagerly ) to post the info about the duplicate question to notify that discussions may already be found on another section.
|
|
|
|
|
But it is still mildly annoying to answer a question in one forum only to find it has already been answered in another. Especially when you have spent some time researching/testing in order to come up with a reasonable response.
I must get a clever new signature for 2011.
|
|
|
|
|
I am trying to send an "F2" keystroke to a window to refresh it.
I would like to send it to the window while it is minimized, I have Vista just as a little more information.
Here is the code I was testing on, it seems like PostMessage might be my best option, I am able to find the window handle through the code below, just not sure how to send an "F2" to it when minimized.
Thanks for reading.
private void button1_Click(object sender, EventArgs e)
{
const int WM_KEYDOWN = 0x100;
const int WM_KEYUP = 0x101;
Thread.Sleep(3000);
Process[] processes = Process.GetProcessesByName("keytest.txt - Notepad");
foreach (Process p in processes)
{
IntPtr pFoundWindow = p.MainWindowHandle;
}
MessageBox.Show("Done");
}
|
|
|
|