Make Changes To Pq Will They Affect ProcQueue1?
Mar 1, 2011Private 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?
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?
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.
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.
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 RepliesI 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] .....
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 RepliesI 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].....
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 RepliesI 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?
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 RepliesWhat 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 RepliesI 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 RepliesI 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 RepliesDoes 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 RepliesI'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>();
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.
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]......
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 Repliescan we make code which can make copying a file in a particular drive invalid/access denied?
View 3 RepliesA 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 RepliesPublic 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.
How do i make my button open a program and make it windows size?
View 6 RepliesBasically 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 RepliesCan 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 RepliesTypes have their own color (cyan by default).Enter completes the auto-complete suggestion.
View 1 RepliesHow do I make a loop from 1 to 100 and make it everytime it loops display incrementing numbers to the screen?
View 1 RepliesI 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 RepliesI 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 RepliesI'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 RepliesCan 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