|
by: Umesh |
last post by:
Hi all
I am trying to change the printer(like paper source ,etc) setting in C#. But i am unable to do it. I am not sure how to do it. should i have to use WIN API like Openprinter , getprinter , setprinter . I did try with PrinterSetting.setHDevMode but it does not work. Its their is a simple way to change printersetting.
thanks
umesh.
|
by: Jim Hubbard |
last post by:
I have some C# code that is supposed to wrap the defrag APIs and I am trying
to convert it to VB.Net (2003). But, I keep having problems.
The C# code is relatively short, so I'll post it here.....
--------
//
// a set of simple C# wrappers over the NT Defragmenter APIs
//
|
by: ewoo |
last post by:
I'm trying to write a wrapper in csharp to wrap DeviceIoControl() win32
method for IOCTL_VIDEO_QUERY_DISPLAY_BRIGHTNESS control code--without much
luck.
I've seen lots of examples out there for low-level file access but can't
seem to any for the display. Can you provide some samples of how I might do
this?
Below is my code thus far...
|
by: Jim Heavey |
last post by:
Hello, I have been taking a swing at learning how I can use Impersonation via
code and I am getting back an error code of 1314. By searching the internet,
I have come to believe that this error means the account it invalid.
If I use my ID and password, the code works fine, so I am guessing it is not
the code.
I requested this "special" account from the network folks and have been
using it for submitting batch Console applications from my...
|
by: Schorschi |
last post by:
Can't seemd to get ReadFile API to work! Returns invalid handle
error?
===========================================================================
Ok, the visual basic gurus, help!
The following is a diskette class (vb .net) that works find, in that I
can validate a diskette is mounted, dismount it, lock it, unlock it,
get diskette geometry, etc., all with a valid handle from CreateFile
API! I can even position the file pointer,...
|
|
by: Tibby |
last post by:
Okay, hopefully this thread will stqay pretty much as is. Anyhew, right
off the bat, I miss winsock!!!!
With that off my chest, I'm having a huge problem and a concern. I need
to create a client app that will communicate with my FTP server. Now, with
the Socket sending in Byte(), is the server able to handle this? I wonder
this because I have a realy nice SocketClient class, but, it don't seem to
send anything, just recieve. I have...
|
by: John Howard |
last post by:
How can I read a text file that is on a UNIX server in VB.Net?
Please keep it simple.
Thanks,
John
|
by: Larry Smith |
last post by:
Hi there,
Does anyone know if this (example) is safe:
internal static extern int GetWindowRect(IntPtr hWnd, ref RECT
rect);
int rc = GetWindowRect(hWnd, ref rect);
if (rc == 0)
|
by: active |
last post by:
GetLastWin32Error exposes the Win32 GetLastError API method from
Kernel32.DLL. This method exists because it is not safe to make a direct
platform invoke call to GetLastError to obtain this information. If you want
to access this error code, you must call GetLastWin32Error rather than
writing your own platform invoke definition for GetLastError and calling it.
The common language runtime can make internal calls to APIs that overwrite
the...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|