|
Yes, ofcause. Why did I not thought of that...
Thanks
|
|
|
|
|
Hello folks . i have some pretty problems with windows management and really i am sick from these problems i will declare them now for you for any one having a help please share it between us .
First iam developing An application that deals with windows management more than any other tasks iam involved in win32 . i need the following tasks.
1 - When a user turn on the computer i need to replace the windows default authentication form with my own form containing Password Text box for accessing this pc.and if the password is granted the authenticator form enables the windows to complete starting , if the password is wrong the windows still showing that password form and don't load any further.
2 - i need to lock the workstation as when you click any dialog box of log off or Shut down the desktop behind and the whole environment is locked you can't open any thing on the desktop . i used LockWorkstation Method found in User32.dll
<br />
public class authenticator<br />
{<br />
[DllImport("User32.dll,SetLastError=true)]<br />
public static extern bool LockWorkStation();<br />
}<br />
And it works it locked the workstation like if you are switching users on the windows xp but it gives me the windows authentication foreground can i replace this with my own form ?????
3- How can i disable my application to be uninstalled from add/Remove Programs from the control panel or how can i set a password for uninstallation ?????
Thanks everybody . Anyone has any proven solution for any of the above problems please don't hesitate to share it for the developers here on this forum.
Thank You Everybody
Human Knowledge belongs to the world.
|
|
|
|
|
snouto wrote: When a user turn on the computer i need to replace the windows default authentication form with my own form containing Password Text box for accessing this pc
Can't be done without replacing the Windows system file MSGINA.DLL with your own implementation. This is FAR from a trivial thing to do and don't even think of doing it in C#. This is best done in Visual C++.
snouto wrote: And it works it locked the workstation like if you are switching users on the windows xp but it gives me the windows authentication foreground can i replace this with my own form ?????
Again, MSGINA.DLL.
snouto wrote: 3- How can i disable my application to be uninstalled from add/Remove Programs from the control panel or how can i set a password for uninstallation ?????
You don't want to do this. System admin's can set policies where users cannot install/uninstall software, but an Admin can. I know if you made you stuff to where I couldn't uninstall it, say I had a problem with it, I'd be aggressively(!) hunting you down for a full refund.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, I've just started studying web apps with C# and was wondering how I would make an XML document on a webserver only readable and writable by my ASP.NET app?
It will hold things like passwords and I only want the "Account Editing" pages to have any access to it.. I dont want users navigating to it, downloading it, reading it or editing it directly in any way, etc.
Could any one point me in the right direction?
Cheers.
|
|
|
|
|
Put the file outside the web root, or in a non-public folder.
---
b { font-weight: normal; }
|
|
|
|
|
Wow thanks, it really is easy as that? then the passwords in the XML file are totaly safe?
Cheers.
|
|
|
|
|
They can't be accessed over the web. If your box is hacked you're still sunk though.
|
|
|
|
|
They can still be read by someone on the webserver, but by placing them outside of any web directory they cannot be browsed using an internet URL.
|
|
|
|
|
Hi,
I'm completely new to DirectX, and have managed to create a 3D yawing, pitching, and rolling rectangle that zooms in (with the help of the graphics & game programming book by Tom Miller). I need to cut out a 3D triangle chunk (straight through, nothing fancy) from one of the long sides of the rectangle (about 1/4 size of that side and midway down).
To create my yawing, pitching, rolling rectangle, I used this:
private Mesh mesh = null;<br />
public void InitializeGraphics()<br />
{<br />
...<br />
mesh = Mesh.Box(device, 0.78f, 2.0f, 0.5f);<br />
...<br />
}<br />
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)<br />
{<br />
...<br />
DrawBox(angle / (float)Math.PI, angle / (float)Math.PI * 8.0f, angle / (float)Math.PI, -0.41f, 0.8f, hDepth);<br />
...<br />
}<br />
private void DrawBox(float yaw, float pitch, float roll, float x, float y, float z)<br />
{<br />
angle += 0.01f;<br />
device.Transform.World = Matrix.RotationYawPitchRoll(yaw, pitch, roll) * Matrix.Translation(x, y, z);<br />
Material boxMaterial = new Material();<br />
device.Lights[0].Type = LightType.Directional;<br />
device.Lights[0].Diffuse = Color.Red;<br />
device.Lights[0].Direction = new Vector3(0,-1,-1);<br />
device.Lights[0].Commit();<br />
device.Lights[0].Enabled = true;<br />
boxMaterial.Diffuse = Color.White;<br />
device.Material = boxMaterial;<br />
mesh.DrawSubset(0);<br />
}
I basically tried following the same steps as above to put a black triangle into that chunk of rectangle.
private Mesh tmesh = null;
(in InitializeGraphics) tmesh = Mesh.Polygon(device, 0.5f, 3);
(in OnPaint override) DrawTriangle(angle / (float)Math.PI, angle / (float)Math.PI * 8.0f, angle / (float)Math.PI, -0.41f, 0.8f, hDepth);
and then a private void DrawTriangle(float yaw, float pitch, float roll, float x, float y, float z) with basically the same innards as the DrawBox (replace mesh with tmesh , got rid of boxMaterial , and made Color.White (so I could see it)).
I'm thinking that this isn't the way to go because it's not doing what I'd like it to do. It appears to create a triangle, but only in 1 plane (Mesh.Polygon doesn't ask for for depth like Mesh.Box does). I then tried creating a bunch of triangles to create layers and it didn't work so well either. What's the best way to cut this chunk out?
Thanks so much!
Mel
|
|
|
|
|
Hi,
I run into a localization problem. I created a framework consisting of a few custom controls I want to use in different applications. I tried to localize the controls into different languages. Now, when I include them into the applications, they never display the local language but the neutral language, although the current culture is german and all strings that are localized in the main application appear in the correct language. Only the user controls that are localized inside themselves are not displayed correctly. I don't have implemented any localization code except the generated code by the designer. Do I have to add any code that tells the controls excplicitely which culture to use?
thanks,
alex.
modified 23-Aug-18 21:01pm.
|
|
|
|
|
You have to create language-specific copies of the .resx files for your custom controls. You do this by setting the Localizable property to True. When you set the language to something other than the default it will create a .resx file with a name something like this "Control.es.resx" if you are localizing to Spanish. So you can have two .resx files. The default will be in German but if your user is on a machine set up with Spanish as the language being used, their computer will load the Control.es.resx file.
Here is a link to an article that discusses this some more.
http://www.ftponline.com/vsm/2005_05/magazine/features/lhuang/[^]
Andy
Deus caritas est
|
|
|
|
|
Thanks, but I did that. all user controls have two resx files. one named "form.resx" and one "form.de.resx". I localized them with the IDE - just as you said. But that is the point where I don't know, why the application shows the correct (.de.resx) files/localization, but the controls don't.
alex
modified 23-Aug-18 21:01pm.
|
|
|
|
|
|
i use this code to represente xml document oon treeViewer
but the attributes don't apprae in treeViewer
can you help me
<br />
try<br />
{<br />
XmlDocument dom = new XmlDocument();<br />
dom.Load(textBox1.Text);<br />
<br />
treeView1.Nodes.Clear();<br />
treeView1.Nodes.Add(new TreeNode(dom.DocumentElement.Name));<br />
TreeNode tNode = new TreeNode();<br />
tNode = treeView1.Nodes[ 0 ];<br />
<br />
AddNode(dom.DocumentElement, tNode);<br />
treeView1.ExpandAll();<br />
}<br />
catch(XmlException xmlEx)<br />
{<br />
MessageBox.Show(xmlEx.Message);<br />
}<br />
catch(Exception ex)<br />
{<br />
MessageBox.Show(ex.Message);<br />
}<br />
<br />
<br />
<br />
<br />
private void AddNode(XmlNode inXmlNode, TreeNode inTreeNode)<br />
{<br />
XmlNode xNode;<br />
TreeNode tNode;<br />
XmlNodeList nodeList;<br />
int i;<br />
<br />
if (inXmlNode.HasChildNodes)<br />
{<br />
nodeList = inXmlNode.ChildNodes;<br />
for(i = 0; i<=nodeList.Count - 1; i++)<br />
{<br />
xNode = inXmlNode.ChildNodes[ i ];<br />
inTreeNode.Nodes.Add(new TreeNode(xNode.Name));<br />
tNode = inTreeNode.Nodes[ i ];<br />
AddNode(xNode, tNode);<br />
}<br />
}<br />
else<br />
{<br />
inTreeNode.Text = (inXmlNode.OuterXml).Trim();<br />
}<br />
}<br />
<br />
|
|
|
|
|
Add a section that processes attributes similar to the processing of child nodes. Something like...
<code>
if (inXmlNode.Attributes != null)
{
foreach (XmlAttribute attribute in inXmlNode.Attributes)
{
inTreeNode.Nodes.Add(new TreeNode(attribute.Name));
}
}
</code>
if (inXmlNode.HasChildNodes)
|
|
|
|
|
i am biginer in c#
i don't know whre place the code that you give me
he^ple me please
|
|
|
|
|
How to Change the IP Address of the Local Machine Using C#.
|
|
|
|
|
1) Your subject is useless. "Help Me!" does not in any way give an indication of your question.... the whole reason to have a subject line in the first place
2) Your question is useless. It does not in any way provide enough information, nor does it provide a question that can be answered in a forum environment. There should be a link in the forum for "How to get answers to your question", you would do well to read it.
3) A google search with the EXACT text you just typed into the message body actually returns a number of useful links. For a broad question such as yours google is 100x better to look on than a forum.
Try it sometime[^]
|
|
|
|
|
Hello folks.
I see That Win32 Has alof of methods that could be useful but my problem in win32 is not to find the specific method but the problem is , How can i know the value of the constants variables and how can i determine them ?.
Cause these constants are written in Hex like 0x140 For example . i need to know how can i determine these constants in any upcoming problems in the future ?
Thanks folks
Any help will be greatly appreciated.
Mess With The Best And Die Like The Rest
|
|
|
|
|
If you're lucky they're listed on pinvoke.com. If not, they're defined in the same win32 .h file as the api itself. You can also look on msdn.com
|
|
|
|
|
hi!
can anyone plz tell me how to implement a client that does http basic authentication via web services.
the service is in java. and the client which is a destop app. in C#.
the service is supporting basic authentication....
but SoapHttpClientProtocol or WSE 3.0's WebServicesClientProtocol is unable to do it via Credentials propterty... i have tried ICredentils, NetworkCredentials and CredentialsCache but its not working. i have also set the PreAuthenticate = true.
thanx
-- modified at 0:22 Thursday 16th February, 2006
|
|
|
|
|
Hello to all,
I have to develope an RTP streaming in C#.Net. By googling i found a some description of namespace "MSR.LST.Net.Rtp".But i dont know from where can i download this dll?
Thanks.
Regards,
Divyang Mithaiwala
|
|
|
|
|
|
the link is now invalid.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
...and?
Look at the date of the post. It's over 8 YEARS OLD!
Don't reply to posts that are older than a few months.
|
|
|
|