Get The Resolution Of The Extended Monitor?
Apr 26, 2010How can I get the resolution of the extended monitor?
View 2 RepliesHow can I get the resolution of the extended monitor?
View 2 RepliesHow to get list of all resolution of client monitor and check with resolution passed by application
View 2 Repliesmy code, i'm converting this code from vb to vb.net and seems i was missing something, seems EnumDisplaySetting can't read values and returning 0
Private Declare Function EnumDisplaySettings Lib "user32" Alias "EnumDisplaySettingsA" (ByVal lpszDeviceName As Integer, ByVal iModeNum As Integer, ByRef lpDevMode As DEVMODE) As Integer
[code]....
What is the best way to handle resolution issues on the monitor when writing a windows app from VB.Net.I developed an app on my laptop, it's widescreen and res is set to 1440 x 900. When I take my app and run it on a machine with an older Analog monitor and the res is 1024 x 768, all of the forms on the right and bottom are cut off.
View 2 RepliesI'm looking for a class that could change the resolution of the primary monitor.
View 1 RepliesRecently I released a �preview edition� of an app to the www for distribution. One of the comments I received back was about it not fitting on the screen properly.So I just wanted to put it out there and get some feedback on how everyone approaches the subject of trying to make everyone happy.Being that it was a preview edition and not a released version I wasn�t all that concerned about things like auto scaling. The purpose was to demonstrate the concept of the program not provide a fully functioning bug free version of the software.I have started on a �preview edition 2� which includes 5 group boxes (3 left side and 2 right side) and I have that fairly well sorted, sizing and positioning the group boxes using the Form width and Height.I am not really interested in improving that section of the code too much as it works fairly well already. My concern is more around the labels, text boxes, drop down boxes etc. in the groupboxes�
Again I can do a similar thing scaling to the height and width of the groupbox properties to align the contents of the groupboxes.My question is� When you try to use a resolution like 800 x 600 (which appears huge after using ~1600 x 1000) how do you squeeze everything on the page?I was thinking of changing the font size for each resolution group i.e. < 900 Horizontal run this font size, < 1000 Horizontal run this font size etc.Or I could work out the font size based on the resolution and round it� FontSize = rnd (Res / 100, 1) since the lower the resolution the bigger the font is going to look anyway.If I can control the font size and I auto size all the labels and text boxes etc. I think I have a far better chance of getting everything on the screen.
how do I adapt the my application area to the user's monitor resolution?I have created a winForms application on 1280*768 resolution monitor and the application is generally used on smaller laptops (10inches). Now I need to a scrollbar on my entire application so that the spacing remains the same as I have designed. For this, there has to be a scrollbar (Both Horizontal and Vertical) on the application.
View 1 RepliesI want to know how can I make a program what will work in any type of resolution & monitor. For example if I make an application fullscreen it will work. But problem is that text boxes or another things will not work properly. For example if I make a program & make it fullscreen for 1440 * 900 resolution it will work fine when it will get 1440 * 900 resolution. But when it will get different resolution like 1280 * 1024 or something like that it will make my application fullscreen but buttons or another things will not be present there in same place. So what should I do to get rid of this problem? All I want to make a program what will adjust itself everywhere(though you change resolution or monitor like 17 inch or 29 inch whatever it will work & buttons & another thinks will be there in same place).
View 1 RepliesI have to know how to set system resolution of all tools in forms, which i using for my application.
I attached two screen shots. When i work my application with my system, form window and their tools placed correctly with my monitor fit(15 inch monitor).
But when i work my application in 21 inch monitor, all tools re arranged and
not in format. post me the code to set resolution as per system??
1. Is there anyway to make an application look as though it has been set to a screen resolution of 1024 x 768 when the true resolution different?
2. I am developing my app using a widescreen monitor. What dimensions does the form need to be set to so that it looks exactly the same on a normal & widescreen monitor?
I am working on an program and I need it to change the size on the form and the button etc when its ran on a different resolution then it was coded on. Is there anyway to do this easy or do I have to hard code it on two different and change it by like a button etc? I am working with a 1024 X 780 and a 1240 X 1024.
View 8 RepliesI have a very high screen resolution on my laptop: 1400x1050.My colleague tried it out on his laptop (which had lesser resolution), and the application did not fit on his laptop. The buttons were dragging out of the screen space.So, I want my application to automatically resize/adjust based upon the screen resolution.I don't want to use Maximized screen option and don't want to change user's pc settings.Unfortunatly I am not using Table Layout panel.
View 5 RepliesIn my application,I placed the user control on a panel,I want to resize that control on a panel automatically according to different screen resolution.
View 6 RepliesCan we set the windows form resolution according to pc screen resolution and even the control should be adjusted...
eg.
My screen resolution is 1366 X 768
and my form size is 1254, 709....but I want it so set according to the screen and it will be dynamic...
if I transfer my project to some other pc with lower or higher resolution it should be adjusted....
and suppose I have few controls on the form...will that also be adjusted??
I had designed all forms on 1280/800 screen resolution.
i want set all forms resolution like the current screen resolution of the user,or make the form resolution is dynamic with each resolution of screen for
I want to make a process monitor tool with WMI that monitor the processes created or deleted, but the code will not work. Note to reference System.Management,
CODE:
Code dowload:
CODE:
Can I monitor the registry for changes similar to how sysinternals process monitor does it in VB? I have checked many different articles and C# samples but not come any closer to getting an answer, I would like to know if there an easier way (a VB sample perhaps)that you folks can share. Ultimately I'd like to be able monitor other things too like file system, processes etc but wonder most about how the registry can be done in VB...Would using system.management be a start? Or WMI? if so is there a nice VB sample..
View 3 RepliesI have the following windows service file:
Imports System.ServiceProcess
Imports System.IO
Public Class fswService
[Code].....
2 problems: first, intellisense error saying: 'fswService' is a type and cannot be used as an expression. second, I can not figure out a way to pass on to the service the path of the folder to watch (which is stored at My.Settings.userPath).
I've seen extended .NET method libraries such as this and this.In VB.NET, since you create your extended methods in a Module, How do I make them into a DLL?? (like in those links above) Its not possible to build and get the DLL from a Module.
View 7 RepliesI created a couple of extended methods in a VB.NET module. I put them inside a Class, built it and got the DLL. From another program I made a reference to that DLL and imported it using Imports as well.The extended methods appear in IntelliSense and it works but a warning appears in the Error console saying,Could not resolve this reference. Could not locate the assembly "nK0deExtendedMethods". Check to make sure the assembly exists on disk. why this error occurs even though I have referenced the DLL?
This is the Class where I've put my module with the extended method.
Imports System.Runtime.CompilerServices
Imports System.Drawing
Namespace nK0deExtendedMethods
[code]....
And I'm having another doubt. In the Imports statement, I have to mention the DLL's name along with the Namespace name. Like this,
Imports ExtendedMethods.nK0deExtendedMethods
Normally you only have to import the Namespace's name, right?
In my current project everyone names variables and methods after what they are and what they do. This is good for quickly understanding the code, but with a lot of long varible names comes some headaches, such as when copying a dataset to an entity/object. So, while you understand the code, the readability still takes a blow.
veryLongVariableName.Id = datasetVeryLongVariableName.Id
veryLongVariablename.Something = datasetVeryLongVariableName.Something
etc.
Using VB.NET's With keyword can help.
With veryLongVariableName
.Id = datasetVeryLongVariableName.Id
.Something = datasetVeryLongVariableName.Something
End With
Now, my question, is there any way of using With, or something similar, but for several variables at the same time? Something like:
With veryLongVariableName As a, datasetVeryLongVariableName as b
a.Id = b.Id
a.Something = b.Something
End With
I'm all for descriptive naming conventions, but they do tend to clutter things. Especially in VB!
I made a simple extension of the PictureBox control. In retrospect, this might not have been the best starting point, but that's currently irrelevant. This is the first time I have tried extending a picturebox control. The point of the exercise was to attempt something odd, but I haven't even gotten that far. The control shows up in the common controls panel, and I can drag it onto the form, but it doesn't get added.
What am I doing wrong? There is very little code behind the new control at the moment, as I am just trying to test a concept, and what code there is doesn't actually get run because the control is never created, so NO code gets run.
I need the option to choose margins (PageSetupDialog), preview the document PrintpreviewDialog) and to select the printer (PrintDialog) before actual printing from extended RichTextBox.
I have used extended RTB control from MSDN site Getting WYSIWYG Print... :
VB.Net
Public Class myRichTextBoxEx
[code].....
I am currently writing a program with Visual Basic 2005 to talk back and forth to an external machine over UDP/IP. I recently had some trouble with it which I got help for today. I need to send the information to the machine using ASCII. I had it figured out so I could send HEX numbers 20 through 7F to the machine. The problem I had and got help for was writing the HEX numbers 0-19 to the machine. The help I recieved said that instead of writing the actual HEX number into the machine, "70" for example, I should write Chr(112). This allowed me to send numbers like HEX 01 by simply writing Chr(1).
My new problem is that I need to write the HEX numbers 90, 91, 96, and 97 to the machine. Every time I try and send these numbers my computer sends out a weird number. For example, I try to send HEX 90 as Chr(144) and it ends up coming up as HEX 3F on the opposite end. After looking up the ASCII table online I found that Chr(144) is an Extended ASCII code.
I've been reading up on this whole subject, but I never came across this specific problem. I already understand that the whole idea of serializing an entire form is a horrible idea and just doesn't work. But, I am encountering a bit of a different problem. I have a class that inherits the "button" form object, that I call DataButton.
Now for my problem. I want to be able to serialize this class, but I don't need any of the information from the actual button class. Is there any way to bypass the fact that I can't set the button form object to Serializable() and notify VB that when serialization is to occur, it should simply skip over that information? Theoretically, if such a procedure were possible, I'd be able to do the entire serialization without a hitch.
I came up with the idea earlier of removing the "inherits" feature from the class, and having simply a button within the class, but that makes my program really difficult to work with as I am constantly changing the location, size, backgroundImage, text, and whatnot. Thus, immediate updates would be much tougher to work with.
I have created a little demo application which is able to create a meeting request by using the Exchange WebService (EWS). I would also like to add some custom properties to this item but up to now I have only found examples which use the Exchange Managed API, which I won't use. There must be a way to create these properties by only using EWS... Does anybody know how and can provide a little code example?
View 1 Repliesi'm working on an extended combobox control that adds it's items in sub new.
it works but for some reason the form's designer.vb file has an addrange line for the combobox, that results in the items being added twice.
does anyone know how to fix this?
I downloaded the extended webbrowser control created by Matt Kleinwaks (thank you for sharing that).I am using the control to fill out forms on a website. The website uses a popup that contains an html form. The popup form will not close if I click the the html submit button or the close button (it does when using a regular browser). The bigger problem I am having is that when the popup reopens, it contains data in the html boxes that was I have already submited on a previous iteration of the popup. Like it is being cached or something. I am wondering if this has to do with the html buttons not working properly.I basically hit submit on the form, the browse rcontrol hangs up, then I close the form manually. Is there a line of code or something I can add to get it to work right? Like clearing a cookie or disposing of the popup form after I close it?
View 4 Replieshow can i add a method to my extended webbrowsers Document property?
i.e.
webbrowser1.document.[myMethod]
In VB.NET or C#, is there a way to determine if a class has been extended with extension methods?
View 3 Replies