Make Changes To Pq Will They Affect ProcQueue1?

Mar 1, 2011

Private procQueue1 As New Queue(Of c_proc)
..
..
..
Private Sub updateQueue(ByVal num As Integer)

[Code]....

If I make changes to pq will they affect procQueue1?

View 3 Replies


ADVERTISEMENT

Make A Button That Will Save Changes In One Form That Will Affect Another Form?

Jun 9, 2011

I need to make a save button. The user will work in main form. User also has Settings in the MenuStrip, when the user clicks Settings a new form will open. There user has ability to make changes that will affect the Main form. This is the code:

If CheckBox1.Checked = True Then
bib.Panel2.Hide()
End If

This is the change that the user will be able to do that will affect the Main form, but I'm not really sure how to make that the CheckBox1 will be saved when the user clicks it and the clicks OK button. I also want to know how to make a cancel button.

View 8 Replies

Changes Not Taking Affect

Oct 23, 2008

I'm using visual studio 2008 and creating a Windows For Application.

I'm almost completed my little application and what I've discovered just recently is that any change I made is not taking affect.

What I mean is if I change the display name of a button or insert a msgbox popup, it doesnt make it to the build when I run it. There are no errorswarnings.

View 3 Replies

C# - Does The Size Of The EXE Affect The Execution Speed

Apr 15, 2011

I'm going to create some command line tools that make use of some large library DLL's. For security reasons I plan to embed the DLL's in the command line's EXE. Example:Suppose the CL's (command line tool) functionality is to just copy a file from A to B. The procedure to do this is included in a 100MB library DLL. If I would just take out the lines of code from the DLL and paste them in the CL's code then the CL would only be 10Kb.But I don't want to do that, so I embed the full library in the CL's EXE, which will make it 101MB in size.I once read somewhere (cannot remember where) that Windows would only use the part of the EXE that's actually used. So if that's true then it shouldn't matter if the EXE size is 10Kb, 100MB or 1GB.I own the code of the DLL, so if the best solution is to not include the whole DLL but just only link to or include those code files, of the DLL project, that are used by the CL then I will go that way.will the 10Kb CL run faster and consume less memory than the 101MB CL?

View 2 Replies

Does DoEvents Affect Only Current Thread?

Jun 7, 2011

I have a simple 'Working' form that runs on its own thread to keep the user informed that the application hasn't died during long running operations. In order to get the working form to update I had to insert a DoEvents() call. I'm curious, will this only pump messages for the current thread I'm in, or will it do it for the whole application? I would prefer that the main window stay unresponsive till the operation finishes. Just to be clear, I'm fine with the code I have, but I would like to know how DoEvents() behaves with threads.

Below is the code for the working form.
Public Class frmWorking
''' <summary>
''' Creates and starts a new thread to handle the Working Dialog
''' </summary>
''' <returns>The thread of the Working dialog.</returns>
[Code] .....

View 2 Replies

Does The Dll Have To Be Compiled For The Changes In The Config File To Take Affect

Jul 27, 2011

config files, or dll.config for a class library project (dll). Does the dll have to be compiled for the changes in the config file to take affect?The problem I've noticed is that I add a reference to another solution to my dll, and it still has a connection string that points to the test database, even though I've updated it in the config file.

View 3 Replies

Using A Checkbox Outside Of A Datagrid To Affect Its Contents?

May 21, 2012

I am using a Checkbox outside of a datagrid. When i select the check box autopostback is true, and this would then show the image, but i cant access the images within the datagrid with that script. If i use a seperate image outside of the datagrid the script works. How can i get this script to work finding when the checkbox out side of the datagrid is checked to then show the image within the datagrid?

The script i am using is
<script runat="server">
Sub Check(sender As Object, e As EventArgs)

[code].....

View 2 Replies

VS 2008 Text Lines To Affect Different Labels?

Apr 26, 2012

I am COMPLETELY new to Visual Basic except for a high school Computer Programming class and I'm attempting to make a text-based game via VB2008. There is a tough problem I'm having. I followed a few YouTube tutorials and managed to create something where you can press a button and have a window open where you search for a text file and have it's file path appear in a text box. My problem now is that I want certain lines of this text file to change the text of certain Labels on a different form. I don't know how to do this though?

View 11 Replies

.net - How Does Indirection Introduced By Interfaces And Factories Affect Performance

Aug 20, 2010

I would like to improve testability of some legacy code. To achieve this, I am introducing interfaces for existing classes (and have existing classes implement those) and factories that create an instance of a test object or an object of the original class, depending on some configuration setting.

I can foresee some internal feedback along the lines of 'but this will affect performance', but I would like to be able to test some code (for a service layer in this case), without having to deploy all underlying layers and setup a database server. Do you have any experience where the indirection introduced did affect performance noticeably? What would be a constructive way to respond to the aforementioned feedback?

View 3 Replies

.net - Indirection Introduced By Interfaces And Factories Affect Performance?

Apr 15, 2011

I would like to improve testability of some legacy code. To achieve this, I am introducing interfaces for existing classes (and have existing classes implement those) and factories that create an instance of a test object or an object of the original class, depending on some configuration setting.I can foresee some internal feedback along the lines of 'but this will affect performance', but I would like to be able to test some code (for a service layer in this case), without having to deploy all underlying layers and setup a database server.Do you have any experience where the indirection introduced did affect performance noticeably? What would be a constructive way to respond to the aforementioned feedback?

View 2 Replies

C# - Launching An App In Compatibility Mode In Windows Affect The App And How To Detect It

Jan 11, 2012

What does Windows do to an app when it is run in Compatibility Mode?Is there a way I can detect the compatibility mode settings in .NET?

View 1 Replies

Events - The Selection In A Box Can Affect The Possible Choices In Subsequent Boxes

Mar 10, 2009

I have a project that has several combo boxes on one form. The selection in a box can affect the possible choices in subsequent boxes. Right now I am using SelectedValueChange to fire the code that loads the choices in the later boxes. There are a number of possible events that I could use:SelectedIndexChangedLeaveLostFocusTextChangedI was wondering if someone could give me a rough idea what the differences are between these. Is there a 'best' evnet to use?Also, I find that most events work when the choice is made with a mouse click but if you click in the box and type in a value an event does not fire. How can I program for the case where the user enters a value by typing it in instead of choosing from the drop down list?

View 3 Replies

File Size Affect Speed Of Directory Listing?

May 7, 2012

I have an app that reads a directory to get the filenames in a directory for each File in Directory(process file) next file. I want to know if the file size makes a difference to the time it takes to get the filenames.eg if a folder contains 10,000 photos of 1 megapixel and another has a folder of 10,000 photos of 8 megapixels will it take the same time.

View 1 Replies

Size Of The Class Affect The Memory Usage Of The Application?

Jan 27, 2010

Does a the size of the class affect the memory usage of the application? is it better to break big classes into smaller classes or just group them up into one big class.

View 2 Replies

Java - Relying On Type Inference Affect Code Maintainability

Apr 15, 2012

I've only used type inference when using LINQ in VB.NET. However, I'm aware that type inference can be used in other parts of the language, as demonstrated below:

Dim i = 1 'i is inferred to be an Integer
Dim s = "Hoi" 's is inferred to be a string
Dim Temperatures(10) as Double

[code]....

I can see how type inference reduces the amount of typing I would need to write a piece of code and can also make it quicker to change the type of a base variable (such as Temperatures(10) above) as you wouldn't need to change the types of all other variables that access it (such as T). However, I was concerned that the lack of an explicit declaration of type might make the code harder to read, say during a code inspection, as it may not be immediately obvious what type a variable is. For example, by looking at just the For loop above, you might correclty assume that T is some floating point value, but wouldn't be able to tell if it's single- or double-precision without looking back at the declaration of Temperatures. Depending on how the code is written, Temperatures could be declared much earlier and would thus require the reader to go back and find the declaration and then resume reading. Admittedly, when using a good IDE, this is not so much of an issue, as a quick hover of the mouse cursor over the variable name reveals the type.

Also, I would imagine that using type inference in some situations could introduce some bugs when attempting to change the code. Consider the following (admittedly contrived) example, assuming that the classes A and B do completely different things.

Class A
Public Sub DoSomething()
End Sub
End Class

[code]....

It is possible to change the type of ObjectList from A to B and the code would compile, but would function differently, which could manifest as a bug in other parts of the code.With some examples of type inference, I would imagine that most people would agree that its use has no negative affect on readability or maintainability. For example, in Java 7, the following can be used:

ArrayList<String> a = new ArrayList<>(); // The constructor type is inferred from the declaration.

instead of

ArrayList<String> a = new ArrayList<String>();

View 3 Replies

VS 2005 - Custom Control - Affect Records That Were Manually Changed

Jul 19, 2009

i created a custom control that accepts only datetime values. [url] but i'm having some issues with it when it is bound to a column and then i navigate through records. it seems to trigger a row-change to all navigated records even though i haven't manually change anything on these records.

this is affecting the last_update_date and last_updated_by fields of my tables. i need to only affect records that were manually changed. can anyone help me? also, any date field should be bound to the Value property of this control instead of Text. haven't figured out how to remove the Text from bindable properties yet.

View 7 Replies

Getting Subsequent Filters To Not Affect Original Filters?

Sep 21, 2011

I'm designing a form wherein a datagrid is being filtered from numerous controls.

The issue im having is each filter overrides the previous one. Just wondering the best way to approach this problem.

Heres a snippet of my

Private Sub MakeIDComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MakeIDComboBox.SelectedIndexChanged
Sheet1BindingSource.Filter = "Make like '" & MakeIDComboBox.SelectedItem & "'"
End Sub

[Code]......

View 4 Replies

Cannot Find A Way To Make A Program That Write Make A Shortcut In Start Menu For All Users

Jun 6, 2009

I cannot find a way to make a program that I write make a shortcut in the start menu for all users.My final goal is to make an MSI and deploy it in group policy to all users on a computers OU. Is this possible?

View 5 Replies

Make Code Which Can Make Copying A File In A Particular Drive Invalid/access Denied?

Aug 29, 2009

can we make code which can make copying a file in a particular drive invalid/access denied?

View 3 Replies

Make Loop To Make Certain Thing Happen About 10-30 Times Without Taking In Too Much Memory / CPU?

Oct 16, 2011

A few years ago I have been busy creating this application but it didn't succeed, now Im coming back to it and similar problems occur. Basically I use SetPixel on a given window to draw a line, work fine, but the line goes away as the window redraws itself.The problem: I have been putting timers and threads on it to make sure the line is being drawn. Is there any way to make a loop to make a certain thing happen about 10-30 times without taking in too much memory/CPU?

View 7 Replies

Make Trig/pre-calc Class A Little Easier And Make A 'app' That Solves Triangles?

Jan 13, 2010

Public Class form1
Private Sub btnAnswer_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAnswer.Click[code]........

how can i make vb realize that the side that is opposite of the given angle, has to be less than the other sides. Also im not sure what Acamar meant by If txtAngleA.Text <> "" AndAlso txtAngleB.Text <> "" AndAlso txtSideA.Text <> "" Then 'two angles and a side Because im not sure what <> does.

View 1 Replies

VS 2008 Make Button Open A Program And Make It Windows Size?

Aug 23, 2009

How do i make my button open a program and make it windows size?

View 6 Replies

VS 2008 Make Some Kind Of Loop Inside A Timer To Make Them Change?

Dec 14, 2010

Basically I have 10 .png images.They contain a walk cycle I need to make some kind of loop inside a timer to make them change.

View 2 Replies

Make A Certian Function That Will Fade Out [make A Black Screen That Fades Out For 2 Seconds] Then Come Back?

Oct 12, 2010

Can I make a certian function that will fade out [make a black screen that fades out for 2 seconds], then come back? Is that possible? ON A FORM.

View 3 Replies

Make Make Syntax Highlighting And Keyboard Behavior Identical For C# In Visual Studio 2008?

Aug 25, 2010

Types have their own color (cyan by default).Enter completes the auto-complete suggestion.

View 1 Replies

VS 2008 - Make A Loop From 1 To 100 And Make It Everytime It Loops Display Incrementing Numbers To The Screen?

Aug 23, 2009

How do I make a loop from 1 to 100 and make it everytime it loops display incrementing numbers to the screen?

View 1 Replies

Make A Translator - Translateevery Single Letter And Make It 1 Word

Sep 7, 2009

I want to make a translator like this: [URL]...I have already made two textboxes and a button. If I type in textbox 1 abc then textbox 2 must say nop. I already know the If textbox1.text = "abc" then textbox2.text = nop. I don't want that i want to translate the a to a n and the b to a o and the c to p. So i want to translate every single letter and make it 1 word. Its like a secret code. My language looks like that a=nb=oc=pd=qe=rf=sg=th=ui=vj=wk=xl=ym=z n=ao=bp=cq=dr=es=ft=gu=hv=iw=jx=ky=l z=m

View 22 Replies

Add Music - Make A Button Make A Sound Out When Pressed?

Jun 21, 2010

I wanna ask how to code to make a button make a sound out when pressed? Can you add sound files to it, like a mp3 file?

View 3 Replies

Make VB Code To Take Apart A Word To Make Sure It Has Required Letters?

Sep 10, 2010

I've been looking through the book I own and I've been looking online but I just don't understand what code would I write to have it check the text box or input box for the right letters in a word?

View 2 Replies

VS 2008 Make From Image To Make It Loading Screen

May 19, 2010

Can i make from this image to make it Loading Screen I mean i put this in Form1 [URL] And i want when the program start the progressbar (the white line to load)

View 1 Replies







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