|
That's awesome!
Ah, so it's because of people like you that Unicode doesn't want to support subscript/superscript very well!
|
|
|
|
|
aspdotnetdev wrote: Just for fun, do you have any thoughts on this:
Zzzzzzz
Hit any user to continue.
|
|
|
|
|
Martijn Boeker wrote: and let my ego go
Way too sensitive mate, wait until you post a really dumb question if you want to see condescending, sarcastic and rude!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
So, you're saying my question was dumb, but not really dumb? Thanks!
|
|
|
|
|
Actually I didn't think the question was dumb, your reaction was a little sensitive.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Yeah, I know what you meant, I was just kidding...
|
|
|
|
|
Hi guys i am doing an app where i am using ControlPaint.DrawReversibleFrame to paint the drag siluet of a rectangle over the screen but in a certain condition when a user does a mouseup i have to "animate"the movement of that rectangle so it returns to a place in the screen but when the rectangle starts to animate the movement it keeps the last position rect in the screen so it does not send the redraw message to the background windows.
Can someone they me how to fix this mess?
|
|
|
|
|
You could try making a call to System.Windows.Forms.Application.DoEvents() although that might just be for the process you call it from.
|
|
|
|
|
Hi,
the way I understand it, the ControlPaint.DrawReversible methods don't need the help of other windows or processes to execute immediately, and calling them a second time undoes the drawing of the first time, so if some of them remain visible, it suggests you didn't execute them in pairs in the right order (i.e. A A B B C C).
|
|
|
|
|
Hello^,
I would prinf any file (.txt, .pdf,..etc) on printer. it's possible to excute for exemple "c:\ print myprinter c:\myfile" ?
Thank you verry mutch.
|
|
|
|
|
See the System.Process class[^]
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
Hello,
A class Process, allow to excute any programm, but it d'ont print any file.
Thank you verry mutch.
|
|
|
|
|
|
Hello,
I try for :
Unfortunatly, he open my pdf then print a false caratcters
I would to print a pdf directely withou open it.
Please help me to resolve this great problem.
Thank you verry mutch.
try
{
streamToPrint = new StreamReader(file.FullName);
try
{
printFont = new Font("Arial", 10);
PrintDocument pd = new PrintDocument();
pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
pd.PrinterSettings.PrinterName = "PDFCreator";
pd.Print();
currentLog.AddLog("Printing : ", string.Format("fichier : {0}", file));
file.Delete();
}
finally
{
streamToPrint.Close();
}
}
catch (Exception ex)
{
}
public static void pd_PrintPage(object sender, PrintPageEventArgs ev)
{
float linesPerPage = 0;
float yPos = 0;
int count = 0;
float leftMargin = ev.MarginBounds.Left;
float topMargin = ev.MarginBounds.Top;
string line = null;
linesPerPage = ev.MarginBounds.Height / printFont.GetHeight(ev.Graphics);
while (count < linesPerPage && ((line = streamToPrint.ReadLine()) != null))
{ yPos = topMargin + (count * printFont.GetHeight(ev.Graphics));
ev.Graphics.DrawString(line, printFont, Brushes.Black, leftMargin, yPos, new StringFormat());
count++;
}
if (line != null)
ev.HasMorePages = true;
else
ev.HasMorePages = false;
}
|
|
|
|
|
As this is a C# forum. I presume that you want to use C# to do this.
Therefore I suggest that you start here[^] and work your way through the sections.
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.”
|
|
|
|
|
Hi friends,
My application needs administrator rights to function properly. If user wants to launch the application manually, he has to right click to pop context menu up and then selecting the option "Run as Administrator". But it could be irritating to so many users.
How can the application be started with full/administrator/escalated rights when it is being launched automatically at windows startup? I need to do this on VISTA and Windows 7.
Also is it possible that the application, irrespective of if it is launched manually or automatically at startup, always get started with administrator rights?
I need to do this thing programmatically (using C# or installshield). Please help me.
Thanks in advance,
Aseem
modified on Tuesday, November 2, 2010 1:01 PM
|
|
|
|
|
Hi,
Aseem Sharma wrote: But it could be irritating to so many users.
It would be more irritating if some application ran with more rights than I assigned to it
Aseem Sharma wrote: How can the application be started with full/administrator/escalated rights when it is being launched automatically at windows startup? I need to do this on VISTA and Windows 7.
Proces.Start [^]. Needless to say that you'll need to supply the password of the local administrator before you're allowed to do that.
Good luck
I are Troll
|
|
|
|
|
Ha! I did something like that* on my last job. I wrote a little app to monitor the health of the system -- availability of the databases, status of the many Windows Services, etc. But the users (operators) didn't have the same access as the Services -- so I used a Process to execute various things (always read-only). The username and password for the Services was already stored in a database (mostly out of laziness), so I access that; the user doesn't know the password, doesn't even know that the app executes under a different user.
* But not actually an administrator, just a user with access to more systems.
|
|
|
|
|
You need a manifest file to launch the app with admin permissions, provided the user has them in the first place!
In the application manifest file, there is a line that looks like this:
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
You have to change that line to read:
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
|
|
|
|
Hi Dave,
Thanks for your reply. Actually I am new in .Net technologies. I don't know how to create a manifest file. I don't know how to ship it with installer.
My requirement:
My application can allow/revoke the right of changing system time and date to any user but only if it is being run from an administrator user. When I run my app while logged on as an non-admin user, my application cannot allow or disallow any right to any user (this is desired behavior and its working fine). But same thing happens even when I log on as a user with admin rights. The only way my app can allow or revoke rights to any user is first-the current user should have admin rights, second-application run with "Run as administrator" option.
Please help me in below things:
1 How to create a manifest file?
2 Is it sufficient to just place it in the same directory where the application exe is present? (If yes then while installing I would just need to copy it along with the application exe in the same directory)
3 If application starts automatically on Windows startup, what would happen if a non-administrator (restricted user) log on? (would the application run with admin rights or with the rights of logged on user?)
4 Are there some registry entries where if an application exe is specified, it will run (on Windows startup) with all the rights the current user have?
Please help me in this problem.
Best Regards
Aseem
|
|
|
|
|
Aseem Sharma wrote: needs administrator rights to function properly
You'll have to prove that, or redesign. What is it that you are trying to do? Will a Web Service be of any help?
|
|
|
|
|
Hi Piebald,
Thanks for your reply.
My requirement: My application can allow/revoke the right of changing system time and date to any user but only if it is being run from an administrator user. When I run my app while logged on as an non-admin user, my application cannot allow or disallow any right to any user (this is desired behavior and its working fine). But same thing happens even when I log on as a user with admin rights. The only way my app can allow or revoke rights to any user is first-the current user should have admin rights, second-application run with "Run as administrator" option.
If you can suggest me any solution, plz let me know.
Best Regards
Aseem
|
|
|
|
|
I have a sample telnet server. on port 23 that I use to view log files and small things like that. What I don't know is how to check the current connection terminal emulation when I connect to it.
I use MT32 Telnet to connect to it. I just need to detect the terminal emulation on the server.
any one have any ideas or thoughts on this.
Thanks
|
|
|
|
|
Dunno. Maybe ask for an answerback? Try sending an ENQ (ASCII 5) and see what you get back.
|
|
|
|
|
Hi,
I am working with a C# project containing different assemblies. One of the assemblies A is used by other assemblies, added as a reference link. Now we want to load this assembly dynamically at runtime instead and calling its methods. There is no problem loading assembly A dynamically
Assembly assembly = Assembly.LoadFrom(Path.GetFullPath(assemblyName));
I can call methods in assembly A throught
MethodInfo method = Type.GetMethod("MethodXX");
method.Invoke(null, null);
Now to my question. Do I have to call all methods in assembly A with Invoke(...) or can I just create a interface and call methods with
MethodXX(....)?
Regards
Olof
|
|
|
|