473,800 Members | 2,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Turning Up the Brightness in VB

Can someone please explain to me how the complier can manage to make sense
out of the following bit of nonsense ;-)

My Solution Name: Dim.sln
My Project Name: Dim.vbproj (Standard Console Application)
My File Name: Dim.vb (Standard class module)
Namespace [Dim]
' Class to manipulate brightness in VB
Class [Dim]
' Data member to keep brightness
Dim bDim As Boolean
' Entry Point to launch application
Shared Sub Main()
Dim [Dim] As New [Dim](Nothing)
If Not [Dim].Dim Then
Console.WriteLi ne("Bright")
Else
Console.WriteLi ne("Dim")
End If
End Sub
' Object Constructor
Sub New(ByVal [Dim] As [Dim])
If Not [Dim] Is Nothing Then
Me.Dim = [Dim].Dim
Else
Me.Dim = False
End If
End Sub
' Property to modify brightness
Property [Dim]() As Boolean
Get
Return bDim
End Get
Set(ByVal Value As Boolean)
bDim = Value
End Set
End Property
End Class
End Namespace
Nov 20 '05 #1
1 2008
the brackets help it a lot...

"psuedonym" <AN************ ***@cfl.rr.com> wrote in message
news:Oq******** ******@tk2msftn gp13.phx.gbl...
Can someone please explain to me how the complier can manage to make sense
out of the following bit of nonsense ;-)

My Solution Name: Dim.sln
My Project Name: Dim.vbproj (Standard Console Application)
My File Name: Dim.vb (Standard class module)
Namespace [Dim]
' Class to manipulate brightness in VB
Class [Dim]
' Data member to keep brightness
Dim bDim As Boolean
' Entry Point to launch application
Shared Sub Main()
Dim [Dim] As New [Dim](Nothing)
If Not [Dim].Dim Then
Console.WriteLi ne("Bright")
Else
Console.WriteLi ne("Dim")
End If
End Sub
' Object Constructor
Sub New(ByVal [Dim] As [Dim])
If Not [Dim] Is Nothing Then
Me.Dim = [Dim].Dim
Else
Me.Dim = False
End If
End Sub
' Property to modify brightness
Property [Dim]() As Boolean
Get
Return bDim
End Get
Set(ByVal Value As Boolean)
bDim = Value
End Set
End Property
End Class
End Namespace

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3066
by: Amy | last post by:
Hi, I have written a program using JAI for a project I am doing which can be used to adjust the brightness of an image. It all works fine but I now need to write it all up and am not entirely sure what it is doing. The code is below: public void adjustLight(int ipParam){ // ipParam = 18 pb = new ParameterBlock();
2
19683
by: | last post by:
Hello, I am trying to change brightness of a color at run-time. I can get all the components: Hue, Saturation, Brightness from Color object, and I can obviously change these values but how can I create a new color based on these new values? Color oColor = Color.FromArgb(129, 129, 129); float fNewHue = oColor.GetHue() + 10;
2
6994
by: Steve | last post by:
I have a project, and would like to support screen brightness up/down in C#, anyone can help me about this issue, I know one possibility is write a driver, and AP through driver to control the H/W. Is anyway can adjust the screen brightness without driver?
3
7323
by: ACaunter | last post by:
Hi there, I was wondering how i could have a slider bar or something on my ASP.Net page to control the image quality.. like change it's sharpness, brightness, and contrast?? is that possible?? thanks -- AdamPC@hotmail.com
7
10851
by: marfi95 | last post by:
I'm trying to implement some code in vb.net to allow the user to adjust the brightness or contrast on an image (through the use of a slider) that is already black & white in the bitmap. I have tried to use the colormatrix and even down to the pixel using GetPixel and SetPixel in system.drawing, but I'm really not up on using gdi+ and haven't really gotten anywhere. I've seen some examples for VB6, but I need vb.net. I know that all...
0
1392
by: Andras Walz | last post by:
Hi, I have includes the mediaplayer in the VB.NET- Project and it works fine. I want to change the brightness of the video (blending). I have found in the doku: WMPLibCtl.WMPVideoSettingsCtrl which shoule be able to change the color / brightness / hue
0
1376
by: Iwanow | last post by:
Hello! I'm using Bitmap->LockBits method to copy its pixels into an array according to example found on http://msdn2.microsoft.com/en-us/library/5ey6h79d.aspx . Now I need to use pixels' brightness. How do I get such info? I guess that requires some special PixelFormat argument. Thanks in in advance for all hints.
1
2482
by: Thorsten Kleinweber | last post by:
Hello, I did some first steps in programming a site for a friend and have some questions concerning web design. The site is http://www.stevanez-juls.de: 1. On my tft display (with low brightness adjustment) the site is correctly bright but on some other monitors it's very dark, does somebody know why? 2. Does somebody know why scrolling the white text on black background is deforming the text? If I change the background to a brighter...
0
2329
by: kukoc | last post by:
hi im workin for last few days on possibility to modify brightness or contrast in my video player (avi, mpeg, wmv) i was tryin with - DirectX.AudioVideoPlayer - Direct Show and Video Mixing Renderer - Windows Media Player Component in every case im able to play, pouse, stop, mute video and so on. but i stuck with controlling of brightness.
0
9690
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10504
Oralloy
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...
0
10274
jinu1996
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...
1
10251
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,...
0
10033
tracyyun
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...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
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...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.