VS 2008 Enlarging And Reducing Size Of A Circle Using Scrollbar

Nov 29, 2010

Im trying to enlarge a circle on a form using a scrollbar.I have managed to do this using the following [code]Thing is the code draws a circle on every scroll movement. You end up with a mass of circles. I want it to clear previous graphic and just show the circle that relates to the current scrollbar graphic, giving the impression of enlarging and shrinking.

View 3 Replies


ADVERTISEMENT

VS 2008 Reducing The Size Of The Tabs On A Tab Control?

Jun 28, 2011

I noticed that when using a single letter as the title on a tab of a Tab Control , the tab is bigger that it should . Look on this example :

The above Tab Control behaves normally because the text on each tab is sufficient to keep it big enough . The lower Tab Control , however , has its tabs too big . Is it possible to reduce its width ? I saw there is an ItemSize property of the Tab Controls , but unfortunately I can only modify the height of the tabs . No matter what value I set for its width , the width remains always the same (and larger than it should) ...

View 4 Replies

Asp.net - Reducing The ViewState Size On A Legacy System?

Jan 21, 2012

I've looked up ways to reduce the ViewState:

Viewstate Optimisations
Strategies for reducing ViewState size in asp.net

However, due to the situation I'm in, I need the quickest and most effective ways to reduce the ViewState size. The legacy system I'm working on is bloated and routinely has a ViewState that's 800Kb+ on multiple postbacks.

For example, I'm pretty sure populating drop down lists with 100+ items on multiple post backs is one of the culprits, correct?

Disabling the ViewStae entirely doesn't appear feasible. It breaks all of the controls, of which there are many, rendering the pages unusable. If this is the best approach, how should I go about handling all the broken controls?

View 4 Replies

Memory Management - Reducing The Commit Size Of Application

Oct 15, 2009

I have an application which I've developed which queries Active Directory information and stores about 15 properties into a Datatable which is kept in memory. I need to decrease the amount of "Commit" memory it is setting aside. The application stays active in the system tray and allows for quick searching of information along with pictures for users. I have a class, which is able keep memory usage down pretty low. It runs on a timer every 10 seconds and listed below:

[Code]...

View 1 Replies

Text Files As Project Resources Reducing Size?

Mar 19, 2012

Is there an easy way to edit the code below so that it copes (works the same) if the embedded resource is not a plain text file, but a compressed text file?

Dim tempList() As String
tempList = My.Resources.ENABLE.Split({Environment.NewLine}, StringSplitOptions.None)
For Each strWord In tempList
enableFullList.Add(New Words(strWord))
Next

I have seen System.IO.Compression but can't work out what to do, DeflateStream, GZipStream etc.

View 6 Replies

Random Circle Size And Color , Without Overlap Or Intersect?

Jan 23, 2011

I write a code in vb.net 2005 as below :use a listbox and picturebox but the problem that circle is random.

Public Class tasfrms
Public color_circle As New Color
Public color_lines As New Color

[code].....

View 2 Replies

Scrollbar To Dynamically Change Font Size?

Jul 14, 2009

I read in a book about changing font size in a label via a scrollbar. I was wondering if it is possible to do this with a rich text box.I have the following code

Private Sub vsbHeight_Change()
rftOutput.FontSize = vsbBar.Value
rftFontHeight.Caption = vsbBar.Value

[code].....

View 5 Replies

Graphic Repaint / Refresh - Draws A Circle Using A Timer - Circle Gets Displays It Flickers

Jun 8, 2011

I have developed a program which continuously draws a circle using a timer. Now every time the circle gets displays it flickers and which is because i have used me.refresh. Is there any other way to avoid this flickering.

Here is my code
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As EventArgs) Handles Timer1.Tick

Me.sweepAngle += 1

If Me.sweepAngle = 360 Then

[CODE]....

View 4 Replies

VS 2008 Reducing Space Between Fonts?

Nov 6, 2010

Dim a as string = "a"
Dim b as string = "b"
Dim c as string = "c"

[code]....

View 11 Replies

[2008] Reducing The Code Duplication?

Mar 2, 2009

Reading through "The Pragmatic Programmer", I've come across the DRY (Don't Repeat Yourself) and Orthagonal (keep code modular) principles.I have a suite of modules, some of which have common procedures. Because each module is a separate project in Visual Studio, up until now I have simply copied code from one project to another when 1 module (project) needs to do the same function as another module (project). This is when functionality overlaps, not when 2 modules (projects) do everything the same.

I always suspected this was bad practice (and have seen the fruits of my suspicions when the subs get out of sync), and the book confirmed me in this belief. So, what I want to do is make a central code repository for the 4 or 5 common subs, but I don't know how to do it.Should I make a .dll file for each sub I want to use in multiple places? If so, how do I do that? Is there another way to do what I want to do?

1. I have a subroutine that takes a filepath (and if disconnected also a SqlConnection) and loads the referenced file into a database as a BLOB.

2. I have 3 separate projects in 1 VS solution that all run basically the same version of this code.

3. I want all 3 to run EXACTLY the same code.

4. I want 1 version of this code so that any changes made don't need to be made in 3 places.

5. I have a few other instances like this for other subroutines.

View 8 Replies

Textbox With Vertical Scrollbar - Get The Scrollbar Position Without Having To Reposition The Carat?

Oct 21, 2010

So with the stock Textbox, I set the Scrollbars property to Vertical. This is great if the text in my box never changes; I can scroll up and down while the box sits still. If I'm running a background operation that logs output to the box though, the scrollbar resets itself to the top every time I append text to the box.

I know I can set the Textbox.Selection property (or use the Select method) to reposition the carat in the textbox, make note of that position in a variable, then append text, reset the carat, and use the ScrollToCarat method to reposition the scrollbar where it belongs. That's a really (ridiculously) long way around. Anybody know if there's another/better way of holding the scrollbar position, short of actually building a custom control (or using a Textbox and a separate Scrollbar)? It never hurts to try. In a worst case scenario, you'll learn from it.

View 8 Replies

VS 2008 Resize A Picturebox Dynamically Using .size.height And .size.width

Nov 20, 2009

Im trying to resize a picturebox dynamically using .size.height and .size.width Its not working. This is the error message: "Expression is a value and therefore cannot be the target of an assignment." Never used height and width before. Been trying to find the answer, but it seems beyond me. Im sure its easy. Anyone know whats wrong with this?

[Code]...

View 3 Replies

VB 2008 Express/ Webpage To Fit The Size Of The Webbrowser1 Control Size?

Jul 13, 2010

I have wondered the solution to this question for many years! I doubt if anyone else knows much about it because the internet is absolutely zero help in this!

I have made a form1 with a webbrowser control on it. When the program is run it brings up the homepage (which is Google). However the homepage doesn't seem to fit inside the webbrowser control.

So I am hoping that someone could tell me how to make the (...I dunno how to ask this retarded question...) webpage fit completely (100%) inside the size of the webbrowser control. Meaning...I would like to see the entire webpage from the internet in the
size of the webbrowser control. To fill the entire size (whatever size I want).

Etc... if my webbrowser ontrol is seh, set to 600px by 400px, how can I program this so when it brings up the homepage (or any other page), it fills the entire size of the webbrowser control? Without any scrollbars. How to make the contents from the web
(or local) fill the size of the webbrowser - almost like a mini browser if you will.

View 4 Replies

VS 2008 Form Size Compatible On Different Screen Size?

Mar 5, 2010

I developed a form application on my computer, but when it was used in another computer with different screen size, i was told the form didn't fit. Do I have to adjust the form size or any other ways to let the form compatible on different screen size? (could be different screen size or wide screen)

View 2 Replies

VS 2008 Textbox's Size Depends On Form's Size?

Aug 22, 2011

So that's how I want it:

If I re-size the form, the textbox inside should be re-sized to fit the form, NOT DOCK!

View 5 Replies

VS 2008 Get Scrollbar Position?

Jan 16, 2012

What i need is when i click a button it will msgbox the position of the vscrollbar.

View 4 Replies

VS 2008 Scrollbar In Label?

Oct 5, 2010

I am making use of a Label in a POPUP window. The POPUP works fine, but i would love to have a Vertical Scrollbar on my Label. I tried to use a Texbox instead, but the problem is that my text ends up in the wrong places. I set the Textbox to Multiline.

I am attaching an image to show the difference between the two.

1. Why is the Textbox doing this?

2. How can a get a scrollbar on a Lable?

View 7 Replies

VS 2008 - Any Way To Change Scrollbar Color?

Oct 23, 2011

Is it possible to change the scrollbars color?
Reason I ask is because look at this:
The scrollbars stand out like a sore thumb.

View 3 Replies

VS 2008 Datagridview Scrollbar Glitch?

Nov 12, 2009

I have a backgroundworker that populates a dataset. My datagridview is bound to the dataset, and the datagridview refreshes once the bgworker is completed. Even after a refresh, the vertical scrollbar is missing, and clicking anywhere on the dgv does nothing. If I stretch the rightmost column to the right, the scrollbar appears and everything operates correctly.

View 5 Replies

VS 2008 Scrollbar Child Form?

Jul 2, 2009

I have a huge image which I loaded into a picturebox on a Child Form. The problem is that I can't seem to create scrollbars on the Child Form. So... I tried the Webbrowser control. The code I used:

WebBrowser1.Navigate("file:///" & Application.StartupPath.ToString() & "libmap.jpg")Doesn't work somehow. But then again... I'm not sure where to place that particular folder. I tried all the C:UsersRadjeshDocumentsVisual Studio 2008Projectsproject_name.... and subfolders, but I ca't seem to get it right.

View 2 Replies

VS 2008 Scrollbar In Windows Form?

Aug 12, 2009

How can I add a scrollbar to my form I tried the auto scrollbar option but is not working Q2 How can I validate the user inpute inside a textbox to check that he type the desired word?for Example validate if the user typed the word ( Bob)?

View 4 Replies

2008 : Show Only Vertical Scrollbar - Webbrowser

Oct 24, 2009

I would like to know how i can make only visible the vertical scrollbar of my webbrowser

View 1 Replies

VS 2008 - Control A Loop Event With A Scrollbar?

Jun 4, 2010

I am trying to use a scrollbar to move forward and back through records in a datatable and to populat an entry in a field to indicate that individual records are selected.In short i want to represent a the sum of a specific field of those records selected. Of course being a scrollbar it has to work in reverse and unselect records when the user moves it backward.

The purpsoe of the scrollbars is that there will be five of them and they will represent years. The records on the other hand represent projects which have an output (say money saving). The idea being projects selected in year one then cant be selected in year two. I am planning to do this by assigning a value that indicates they are already allocated to the previous or other years scroll bar. I can set up a loop to go through the whole data set and do this for a year (and have), but i want to use scrollbars and make it interactive.

View 4 Replies

VS 2008 : DataGridView Horizontal Scrollbar Position?

Apr 5, 2011

I am working DataGridView in vb.net08.The intresting task is ,When i move the Horizontal Scrollbar in DataGridView from Left to Right ,the First two Columns should be stable and moving starts from 3rd Column.Means If i moved at end of the right side but the first two columns should be visible. When i move the scroll bar the first two columns should not be disterb.Is there any property like Scroll bar position should be starts ??I tried the " FirstDisplayedScrollingColumnIndex" property but it only starts the Scrollbar from giving column index after moving the scrollbar the first two columns are moving into left side.

View 2 Replies

VS 2008 Listview Detecting ScrollBar Change

May 1, 2010

I've been using 'GetScrollInfo' to find the position of the scrollbar on a ListView and I can detect when it hits the bottom of the list. Is there anyway I can raise an event when the scrollbar changes? At the moment I have it working by using a timer but I would rather if possible create an event to fire my routine.

View 1 Replies

VS 2008 Scrollbar In A Vb ListBox With 100000 Items?

May 8, 2009

Im trying to fill a ListBox with more than 65542 items in a Visual Basic .NET 2008 project. The ListBox seems capable to collect 100000 articles, but when i scroll through the list the scrollbar works till the 65500th listing (more or less) then it just jumps upwards.The weird thing is that I have two version of the same project which have different behaviors. One (tmp.zip) scroll fine with the scrollbar, but it doesn't with wheel mouse button.The other (listBox.zip), the scrollbar goes mad but mouse wheel seems ok

listobox.zip: is a new project created within VS 2008 tmp.zip: is a cleaned up form imported in VS 2008 from an early version (VS 2003?)

View 3 Replies

VS 2008 Change Scrollbar Color In Textbox Control?

Apr 7, 2009

[code].....

View 1 Replies

VS 2008 Customize Scrollbar Properties (colors And Shape)?

May 20, 2010

Hoe can I customize scrollbar properties (colors and shape) p need to change its color and shape to make it closer to the Winamp scrollbars.

View 16 Replies

VS 2008 : Handle Some Event Related To When The TreeView Scrollbar Appears Or Disappears?

Sep 12, 2009

I have a custom contro which inherits directly from Treeview. Is there any way to handle some event related to when the TreeView Scrollbar appears (it does this when the height of the stack of visible nodes exceeds the height of the control) or "disappears"?

I realize if could set up a function which checks the ItemHeight * Nodes.Count, and compares this to the control height. However, this seems clumsy. I have been exploring the object browser (and anylized TreeView with Reflector) and have not found what I am looking for. If there is a way to access the ScrollBar Property at ALL within TreeView, I have not found it.

View 5 Replies

Calculating GCF And Reducing

Jan 27, 2011

I understand the basics of using VB.NET, what I don't understand is what I need to tell the computer to do. I'm supposed to create a subprogram to calculate the greatest common factor and another subprogram to reduce the fraction from the answers retrieved from the first subprogram. My teacher said something about using Mod to calculate it, and also attempted and failed to explain ByVal and ByRef parameters. I don't even know where to begin other than the parameters I have for each, and even those have a high chance of being completely wrong.[code]

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved