Forms :: Changes To Occur In Specific Panels(each Stored In A Tab)?

Apr 4, 2009

how do I refer to a panel. i,e. i have 5 panels in total, and based on specific inputs , i want changes to occur in specific panels(each stored in a tab). So, now how do i give the control to the rspective panel ??

View 1 Replies


ADVERTISEMENT

Forms :: Choosing The Amount Of Times A Loop, Or Sub Should Occur

Mar 29, 2009

I have made an app that the user has to type a number, and i want the process for the app to do this how evermany times the user wishes it to do.

for example, the app is ment to create a line in a text document, so they write in textbox1 what they want written on the line, and then in textbox2, tey say how many lines they want to create.

So,

TextBox1.Text = "BLAA"
TextBox2.Text = "782"

It will create 782 lines of BLAA. not just one...

View 2 Replies

Multiple Panels Instead Of Forms?

Mar 3, 2009

To save from using several different forms in programs. I'd like to make just a few panels to represent each one. Then when I need to display one I just set it to visible or not visible.

For example, a quiz program. The 1st 10 questions are on one panel, the 2nd 10 are on a 2nd panel. They are both identical except different questions.

The problem is, when I try to put them both on the form, they have to be in different areas or else one will go inside the other. How can I keep several panels on one form without them going inside each other, in other words how can I keep them separate?

View 13 Replies

Forms :: Put Docking Panels Into Application?

Dec 19, 2009

How can I put Docking panels into my application like the ones in Visual Studio. Ex. the properties, solution explorer, and toolbox are these.

View 4 Replies

VS 2010 - Can't Access Multiple Panels - Make Labels Merged In Panels

May 8, 2012

I'm trying to make custom ListBox with some graphics. Base is ItemCollection - each item contains Panel, 2x label and 2x picturebox. What each panel have to do:

- Change backcolor on MouseEnter and set color back when MouseLeave occurs.
- On MouseDown(LMB) - Panel stays "selected" - different color.

Problem: I can't access multiple panels at a time(and I need to), just one via sender as in function. Of course, I can do it hacky way, but I want to do it effective and regular. Is ItemCollection the right solution or should I do it just like an array of panels? Also I want them in one "box", ItemCollection is good for it.

Second "problem": I need to make labels "merged" in panels, when i MouseEnter them(labels), background color on that panel sets to my default color. when i MouseClick them(labels), nothing happens (need to "select" parent panel). It can be again fixed with hacky way, just disable labels - but then the colors of labels are unchangeable.

View 6 Replies

Forms :: Scroll One Panel With Another Panels Scrollbar?

Sep 21, 2009

I have two panels, and I want them to both scroll horizontally with one scroll bar, but I only want one of them to scroll vertically. So if I have a large panel on autoscroll, it works fine for that panel, but I have another smaller panel above that, could I make the smaller panel scroll horizontally with the larger panel's horizontal scrollbar?

View 2 Replies

Forms :: Looping Through Controls - Design Can't Be In Separate Panels

Oct 21, 2009

I am familer with looping thru controls like so:

[Code]....

Next I have some labels on another form, that due to the design can't be in seperate panels. They are (lblChipColor1 - 6) and (lblChipValue1 - 7). I am trying to populate the color ones from the Array above. I can obviously loop thru the array, but I can't find a decent way to loop thru just the lblChipColorx lables ignoring the lblChipValue1x labels. It would be easy if they were on seperate panels. I tried adding the labels names to an array of type string and of type label, but got nowhere with that. Is there another way to group them, or build const array of label names, that I can work with?

View 3 Replies

Forms :: PointToScreen - Co-ordinates For The Labels In One Statement Without Adding The X And Y Co-ordinates Of The Panels

Nov 2, 2008

Apparently I don't understand what PointToScreen() is actually returning. I'm thinking it should be absolute screen co-ordinates. In a form, I have some labels in a panel, which itself is in a panel and am trying to derive the screen co-ordinates for the labels in one statement without adding the X and Y co-ordinates of the panels. Why does PointToScreen(Label.Location) return the same value as PointToClient(Label.Location) and the same as Label.Location? Shouldn't PointToScreen() return absolute SCREEN co-odinates?

View 12 Replies

Forms Authentication And Stored In A SQL Database?

Mar 9, 2012

The Intranet was done with forms authentication and stored in a SQL database. how I go about (if possible) authenticating a login in a vb.net project that queries the user settings from the ASP.Net database that was created on the SQL server for the forms Authentication.

View 5 Replies

Forms :: Resolved Search And Display ArrayList Stored In A Hashtable?

Mar 25, 2009

I am new to VB.net and I am trying to work out an exercise from a book I am reading on VB. Basically I am storing some book information in a hashtable using a class called Book to store the book information. I am trying to work out my Search and Display All procedures. My Search will work for the first value in my arraylist but not for any other values. I even added the ISBN to my book class to try and use this as a search point. The ISBN is used to pull the item from the hashtable as well.

In the main code I am having problems with the ButtonSearch and ButtonAll.

[Code]...

View 9 Replies

Windows Forms Textbox Stored Procedure Code Injection?

Jul 12, 2011

I have the following sub in a windows form:

Private Sub BTNC_storeclientdata_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTNC_storeclientdata.Click
' Update Clientdata[code].....

This performs an update in the SQL Database via a stored procedure. When I add '; insert into codeinjection(test) values ('CodeInjected!'); select ' in the last textbox (TBC_phone.Text) the value 'codeinjdected' is inserted into the table codeinjection as well. How can I avoid this?

View 7 Replies

Forms :: Timer - Set For A Specific Time?

Jan 4, 2012

I wonder is there a way to set a timer for a specific time interval? Lets say everyday between 23:00 and 23:10.

View 6 Replies

Show Some Forms But Want Them To Appear On Specific Locations?

Sep 27, 2010

I want to show some forms but I want them to appear on specific locations . The problem is I don't know how to specify the coordinates . Using :

frm.Location = "0,0"
or
frm.Location = (0,0)

tell what is the correct syntax ?

And more thing : when a form is maximized or minimized , it looks like "flying" upwards or downwards . Is it possible to stop that visual efect ?

View 4 Replies

Dynamic Buttons Opening Specific Forms?

Jun 6, 2011

I have a form which gets populated by 15 buttons dynamically at runtime (these need to be dynamic as there will be a user config file at some point)What I need these buttons to do is to open a specific form when clicked. Which form that opens will be dealt with in the config file.

Public Class frm_MainScreen
Private Sub frm_MainScreen_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim count As Integer
Dim ImageDir As String

[code].....

View 2 Replies

Forms :: Component To Display The Time Only With The Specific AM - PM?

Feb 13, 2009

does vb.net have the component to display the time only with the specific AM,PM? i know that VS 2008 got datetimepicker as choose the date and time but does it can display in term of the AM and PM? if got any better solution and component about display and set the time,

View 8 Replies

Forms :: Copying And Pasting From Specific Places?

Feb 10, 2011

I am trying to copy text from a standard rich text box on a button click. However, I only want the first 3575 characters to be copied to my second rich text box, and after the 3575 I want a further 8482 characters to be copied to my third.

View 2 Replies

Forms :: Open A Form At A Specific Point?

Sep 6, 2010

I have a small "options" form that when shown, the user submits some changes, clicks a button, and then it fades out. I want the form to open at the mouse location. How would I do that?

View 1 Replies

Save Prompt If Changes Occur?

Mar 15, 2012

In my application, i have put a question on form closing if the user wants to save the changes?. But right now, i have just put it in default whether they make changes or not.I thought of prompting it on text change.. but the text automatically changes on load as it retrieves data from sql server.

View 15 Replies

Using Catch For An Exception That Does Not Occur

Mar 25, 2012

What is the code that I can use to describe what happens when there is not just one exception in a'Try...Catch..Finally...End Try' statement? For example: 'Catch' is used to describe what happens when a certain exception occurs, but what can I use to describe what happens when a certain exception does NOT occur?

View 11 Replies

Forms :: Find Specific Text From Html Files?

Dec 23, 2010

so I had an idea today while modding a game I play. I decided to make a mod-manager.In order to start the game with mods, you have to go to the website, log in, click playnow and view the source of the html file. From there you get the sessionID variable and add it to a shortcut on your desktop. I wanted to be able to automate this process by doing the following:

on button1.click: somehow parse the source of the html file to locate the line that looks like chis:
var sessionId = 'random26charSessionID'; and take what is inside of the ' ' and add it to textbox1.text

Any ideas? Not sure if it will be in the same line every time with add banners and stuff...so I wanted to parse the doccument.

View 1 Replies

Forms :: How To Check Specific Items In CheckListBox At Load

Jun 18, 2009

I have multiple items in a checklistbox. In the page load, I'm trying to check specific items in the list (2,4,8)

I've tried cbl1.items.Item(2).checked, and different combinations of this and I can't get anything to work.

View 1 Replies

Forms :: Show Specific Parts/lines Of A Webpage?

Jul 14, 2011

I am creating a simple researcher application to access and store data. As of today it workes by entering a number into a text field and hit enter/button. The result then shows up in a non-menu webbrowser window. What i would like it to do was to exclude the web browser window, and instead show in a popup window inside the application. This should be rather easy, here's what i think might be a problem. I want only to show specific lines from the webpage, not the whole page.

View 3 Replies

.net - Allow Math To Occur On Instances Of Class?

Nov 27, 2010

Is there some interface I can implement to allow basic comparisons and math to happen as it would an integer?

For example, let's say I have the following class:

Public Class Something
Public SomeBigNumber as UInt64
End Class

I would like to do something like this:

Dim SomethingA, SomethingB, SomethingC as New Something
....
If (SomethingA-SomethingB) > SomethingC Then
'Do stuff
End If

I was hoping to be able to implement some interface (if that is even the right term for it) that would return the UInt64 contained in the class for comparison and math, if possible.

View 1 Replies

Play Sounds When Certain Events Occur?

Oct 22, 2009

me and a partner need to play sounds when certain events occur, however, every method we try..

My.Computer.Audo.Play("file.wav")
or?
Sound.PlayWaveFile("file.wav") from this class: http:[url]....etc they all don't work

They do NOT throw any exceptions, they just dont play the music, the test demo of the Sound Class works like a charm, its just not working in our project..same with My.Computer. Audio. Play.what could we have done to make it so that we can't play sounds from our application?

PS: this problem occurs on all of the computers we test it on, yet the normal sound-playing methods seem to work on all of those computers when they are implemented in other projects.. its just not working in these instances

View 5 Replies

When Click The Button The Event Occur Twice

Dec 11, 2009

Private Sub done_Click(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles done.Click
Dim s As Integer = ComboBox1.SelectedIndex
Dim t As Integer = ComboBox2.SelectedIndex
Dim x As Integer

[code].....

When i go for r <> 0 then it occur twice.

View 16 Replies

When Does DataBinding Occur For Drop Down Lists

Jun 12, 2012

Here is my drop down list and data source. My question is.. when is it possible to set a defaulted selected option for the drop down list, aka when have all the dropdownlists been databound and their ListItems populated? I have tried Page_PreRender, age_PreRenderComplete, Page_Load.I have read over MSDN's Page Life cycle event which suggest Page_PreRender.

<asp:DropDownList ID="ddlRampStandard" runat="server"
DataSourceID="RampStandardDataSource" DataTextField="StandardName"
DataValueField="StandardName" RepeatDirection="Horizontal"

[code].....

View 1 Replies

Why Does System.Reflection.TargetInvocationException Occur

Feb 11, 2012

I am making a program that is sort of a frontend to all my other apps. I put the EXEs of those apps into the resources of my frontend. The problem occurs when I try to run the EXEs from memory.

I keep getting System.Reflection.TargetInvocationException on the line:
entryPoint.Invoke(RuntimeHelpers.GetObjectValue(objectValue), New Object() {New String() {"1"}})

[code].....

View 12 Replies

BackgroundWorker - Spawn Dialog While Log Event Occur

Apr 10, 2010

I am trying to create a background worker that will spawn a dialog, while a long event is occurring. For example, when the main thread in trying to connect connect to a db and update a large amount of records, I would like to have the background worker spawn a dialog that advises the user to "Please Wait"

Here is what I have so far
1. I create a background worker using the drag and drop
2. Before the event that taking a long time starts I call:
Me.BackgroundWorker1.RunWorkerAsync()
BackgroundWorker1.WorkerReportsProgress = True
3. This is the events for the bgworker, all of which was enabled in the form designer:

Private Delegate Sub delCreateNewForm()
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
Dim d As New delCreateNewForm(AddressOf CreateNewForm)
Me.Invoke(d)
[Code] .....

4. When the long activity is completed I call this:
BackgroundWorker1.ReportProgress(0)
Everything seems to work fine, except that the newly spawned dialog in no responsive and appears to be frozen, until its closed by the Progress Changed event.

View 6 Replies

Changes Don't Occur In Visual Basic + Login System

Feb 5, 2009

If I change something in my visual basic, and start debugging, nothing changes to the program I made. Wether I save or not, it's just always the same.

Secondly, I would be very glad if somebody could give me the codes for a
"Create User" button. So it saves in C:Program FilesAcc.txt

And if you created one, you can login with it after that.

View 11 Replies

Schedule A Task In VB Application To Occur Only In 24 Hours?

Jul 29, 2009

how can you schedule a task in VB application to occur only in 24 hours. let's say every 11:25pm

View 1 Replies







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