|
Eddy Vluggen wrote: So the target is a window that never becomes larger than 1000 pixels.
It can be any size. Just hadn't had occasion to size it any larger.
Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.
|
|
|
|
|
The "title" is wider than the "title space" in the title bar; hence the "...".
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Yep. We finally figured that out. Thing is it was filled with spaces past the text. No clue how that happened.
Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.
|
|
|
|
|
Spaces will do it; sometime "unprintable characters".
(I tend to "trim" input since users tend to "lean" on the keys when sleeping).
I've had the latter in source code; weird compile errors ... but you can't "see em'".
Sometimes have to "delete the line" and "type it over".
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
I use .Trim a lot but never thought about needing it for the title bar of a form. Still curious about how it happened but I doubt I'll ever know.
Sometimes the true reward for completing a task is not the money, but instead the satisfaction of a job well done. But it's usually the money.
|
|
|
|
|
Hello.
It's possible to use .Net framework to develop a C# Windows applications that will control printing from windows printing spool (like using quotas, adding custom messages on printed pages, etc)?
The approach I'm thinking (and started) to follow is to create a Windows Service and inside this service to monitor windows printing spool with a timer (looking for best approaches). Is that the right choice?
Any hints and advice to lighten my way will be very welcome and is the intent of this Question post.
I'm using
VS2015
.Net Framework 4.5.2
Some of the requirements I'm working on are:
- Checking in AD or LDAP if the user who requested printing is not over quota
- Blocking over-quota user's print
- Adding to every printed page in the footer or header of the page Companies Name.
- Save in printing server box a copy of the printing in PDF or some other format for future audit.
It's expected to use this app in different windows versions like XP/Vista/Win7,8,10
Best regards
|
|
|
|
|
|
You're wasting your time if you plan to spend time targeting anything less than Windows 10; like XP?!
And having had to deal with "print queues" and restarting failed print jobs, I can say you are biting off more than even most "pros" can chew.
And most of your "requirements" are only feasible at "report generation time"; NOT when the "report" is already "in the queue".
Sorry, but you should focus on something less ambitious if you hope to succeed.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Haha, so, an application to prevent wasted paper; by adding a coversheet. Imagine this in the office; someone had to print a lot, then has to print the manual before the final meeting with the customer - and is over the quota. Next, I get sent to the local shop to BUY a printer that can be used locally because someone NEEDS that manual.
Maginot Junior wrote: Save in printing server box a copy of the printing in PDF or some other format for future audit. That would be illegal here. Do consult someone who specializes in legal advice.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Well, I'm not the one who created these requirements.
Here it's not illegal and actually for government agencies (which is the case) is totally allowed.
About paper wasting and quota is all about requirements, I'm not sure how they will be using it.... I'm just the programmer.... unfortunately
ATM I'm reading a ton of documentations and internet posts, my task looks like hell.
Please, keep answering, best regards!
EDIT: It's not supposed to add a coversheet but to add a footer or header information with the agency name.
|
|
|
|
|
Maginot Junior wrote: Here it's not illegal and actually for government agencies (which is the case) is totally allowed. It's not illegal in all cases; but for some places, yes, might be even required to keep a carbon copy for filing.
Maginot Junior wrote: EDIT: It's not supposed to add a coversheet but to add a footer or header information with the agency name. Most other companies simply have that already printed on the paper they put into the printer. It is an easier and cheaper solution that achieves nearly the same.
What you want to achieve sounds a lot like what PaperCut[^] offers You may want to give the free version a spin to get some ideas on how such might work.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I need to write/convert the below php code to vb.net?
is there any converter from php to vb.net?
anyone can help me to write it in vb.net ?
<?php
function get_token($userName, $userPassword) {
$authString = base64_encode($userName . ":" . $userPassword);
$header = array();
$header[] = 'Content-length: 0';
$header[] = 'Content-type: application/json';
$header[] = 'Authorization:' . $authString;
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $Url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$data = curl_exec($ch);
if (curl_errno($ch)) {
echo 'error:' . curl_error($ch) . '<br/>';
curl_close($ch);
return '';
} else {
$tk = json_decode($data, true);
curl_close($ch);
return $tk[0]['token'];
}
}
|
|
|
|
|
|
|
Hello everyone. I'm working on a school fees management system using VB 2010 Express and I would like to know how I can make my software create new files and save them localy whenever the user requires to. By this I mean, for example in MS access, you are asked if you want to create a new database and asked the location to save it as well as the name of the database. I also want my DB software to do so, so that users can create new database space at the beginning of each semester.
Regards
Adonis
|
|
|
|
|
|
|
Hi All
I'am using UHID board connected by USB.
Looking for CrossPlatform (Mono) Win64/Ubuntu64 solution to Read Buttons and Write I/O LEDs.
Iam using GLFW for Button Read which is work good, unfortunately couldent find the way to write
and Control the LED ?
Thanks in advanced
Eli
|
|
|
|
|
And by that you mean you want someone to supply you with fully working "write" code?
Since you "read", one can only assume you "can" write also.
But since we can't possibly know the "right" write commands, how do you expect an answer?
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Hi Gerry
Today i can read using "Joystick" method (from slimDX or pencil.Gaming-master) which do the Read job. i.e. encapsulation the USB Access for me.
Now i have also to Write LED Control to the that USB Device which the "Joystick" Doesn't expose.
So i need to access directly to the USB Device in order to Write Control and Set the LEDs state.
Thanks
Eli
|
|
|
|
|
There are "generic" (joy stick) drivers; AND ones specific to a "unique" device (like extra buttons).
You need to be specific about the joy stick you are using; and if it needs a "vendor's" custom driver.
The "docs" / samples for the specific driver will tell you what you can / cannot do.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Hello.
I have a problem with the SDK CR10M which allows to encode the information on the RFID card.
the sdk is done in vb6 when I try to migrate to vb.net it is imposible.
then I have a new project and the Dll (mi.dll) is not usable. so I found a trick that allowed me to use this as a librairire.
now my project compiles but can not write the data and for caude:
ret = API_PCDWrite (hComm, devAddr, mode, blk_Addr, num_blk, asnr (0), aBuffer (0)) that returns this error: Additional information: Attempt to read or write protected memory. This often indicates that another memory is damaged.
thank you
|
|
|
|
|
I inherited and application that was initially built for Windows 7 OS. The application can display maps from Google Maps or Bing Maps. The error received is that the WebBrowser is being detected as an old browser that is no longer supported. I am trying to determine the best path for fixing this issue. What is the easiest way to upgrade the WebBrowser functionality so that it will work with Google and Bing maps, or any other mapping service that an end-user might want to implement. I need to find a temporary fix (band-aid) until all the code can be reworked to operate with the Windows 10.
Your comments and suggestions are welcomed.
|
|
|
|
|
|
The WebBrowser control is stuck in IE7 compatibility mode by default. You can override that by changing a registry setting on every computer that runs your application:
Web Browser Control & Specifying the IE Version - Rick Strahl's Web Log[^]
Alternatively, you can switch to something like CefSharp[^], which uses the same rendering engine as Chrome.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|