IDE :: Remember Tear-off Window Positions?

Jan 12, 2010

I like to put my Code windows on my 2nd monitor. But after I close them they always reappear as tabs on my primary monitor. How can I get VB2010 to remember to put them on the secondary monitor instead?

View 1 Replies


ADVERTISEMENT

Nested Splitcontainers: Remember Splitter Positions?

Jul 2, 2008

I have 3 splitcontainers on my form. Each splitcontainer has vertical splitter orientation

This forms 3 'panels' which are resizable by dragging their respective splitters.

Each vertical 'panel' is then split horizontally by adding another splitcontainer with horizontal splitter orientation. I now have 3 column 'panels' each of which is split into 2 'rows'

My question is :
In a nested splitcontainer scenario
When a user drags splitters and resizes panels,
how can I remember the last splitter location
so that when the form is closed and reopened,
it remembers the last used positions ?

View 13 Replies

Custom Paper Size Printing In Dot Matrix Printer With Tear Off

Sep 10, 2007

I am facing a problem in printing document using custom paper sizes in dot matrix printer,i created a new paper size thru code and try to use the same paper size for printing, in preview it shows exactly [ giving output in same pape size ], but while printing the paper moves for A4/Letter and i cann't able to enable the Tear off Mode.i am using C# 2005.

View 2 Replies

Tab Positions In A TextBox?

Feb 18, 2011

Is it possible to add text to a multiline textbox in a particular column? Like so:

Sugar 10 Ohio
Coffee 50 Texas

Or should I be using a different contro

View 5 Replies

Manipulating Pictureboxes Positions?

Dec 18, 2011

i'm creating a game like text twist. that when i press letter a, i need to determine which picturebox contains letter a and display it to different location. that also goes to the proceeding letter a's. for example, i have a jumbled letters "aamba". in my code, it only gets the first letter a and removes it form the screen, it's nowhere to be found. and it won't recognize that i still have other letter a's i'm pretty sure about the location that i set it to be placed.here is my

(it's kind of brute force i think)
ElseIf e.KeyChar = Chr(97) Then
counter1 = 0[code].....

View 7 Replies

Allow Certain Characters In Certain Positions In Text Box?

Feb 10, 2010

For example I only the second character in each line to be an x, while the 3nd to 10th character must be a hex digit.At the moment I use a Select Case, then check the position of the caret (using textbox.selectionstart) and see if the key being pressed is a "legal" character.Is there a better way of doing this as it slows down on large amounts of text.

This is the code I have at the moment:
Select Case TextBox1.SelectionStart
Case TextBox1.GetFirstCharIndexOfCurrentLine + 1

[code]......

View 4 Replies

Changing Picturebox X / Y Positions

Mar 5, 2011

I'm trying to make my own clone of space invaders as it's been about a year since I've done any programming, and I imagine this will be a good way to get back into it. The main issue that I am having right now, is that I am basically clueless as to how I go about moving the player on a keypress. I have the code for the keyboard input correct, how to move my picturebox.

Here's my code so far (in a nutshell):
Dim PlayerPositionX as integer
Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
Select Case e.KeyCode
Case Keys.Left
[Code] .....
I imagine I probably messed up very badly on this, but I'm completely lost!

View 4 Replies

Set Positions Of Many Pictureboxes Efficiently?

May 23, 2011

I have 20 PictureBoxes named PictureBox2 through to PictureBox 21, where I need to conditionally set the positon of them. I was wondering if there is a more efficient way to set their positions than to copy the code out 20 times. This is what I have so far:

For NextPos As Integer = 2 To 21
Select Case Direction
Case 1

[code]....

View 4 Replies

VS 2008 Get The Icons Positions?

Aug 5, 2010

how i could get the icons positions i made some code to get the file names and everything but wanted to know how i could get there positions! also i found some codes with google but most of them where in vb6?

View 10 Replies

Make Student Positions In Class?

May 19, 2012

i am working on an examination system. the system has to compute the grades and position of each student per stream and per class.each class has got 4 streams. I save the studentsmarks in the database. i want the system to determine the positions of students and the position of each student to appear on the rtf.. report, for example:

Position in stream:4
Position in Class: 21

[code].....

View 3 Replies

Tear Down Wcf Service After Each Web Service Call?

May 5, 2012

I inherited a working WCF Web Service with one major flaw - the WCF Service consumes memory and does not release unless the service is restarted. After a half a day of requests hitting the web service, the memory on the server hosting the service climbs to close to 2 gig and is dead in the water.

I'd like to be able to release memory after the web service has received its response but cannot figure out how (WCF is still new to me). [code]...

View 2 Replies

Change The Positions This Small Circle In The Graphics?

Sep 28, 2010

I am attaching a sample working program. But in this program i need to do some changes,those changes i have explained in the .docx file.

View 5 Replies

Possible To Rotate Characters In String By Some Number Of Positions

Apr 12, 2010

For a project I need to do a String strX is said to be a cyclic rotation of a String strY if it's possible to rotate the characters in strY by some number of positions, n, such that strY becomes strX. I don't mean rotate in a Caesar sense here but in a left-right (or right-left) sense. For instance, strX = abanan is a cyclic rotation of strY = banana because rotating the characters in banana to the right by n=1 (i.e., by one position), wrapping accordingly, yields abanan. Similarly is strX = anabana cyclic rotation of strY = banana because rotating the characters in banana by n=3.I need to write an application that returns True if strX is a cyclic rotation of strY otherwise the result is False. I'm looking into how to do this, I know it will involve and if then statement and possibly some loops. Is there anyone who can help me better understand what I should do?

View 4 Replies

Randomize Positions Of Arrow And Add Points To Score?

Jan 13, 2010

I am making a game that is similar to Dance Dance Revolution. As you know, there are moving arrow keys, but when i run the program, only one arrow moves up in a loop. I don't understand what is wrong with the code. Also, the score is messed up. It doesn't add or minus points.
Code:
<!--c1-->
CODE

View 3 Replies

Switch Positions Of StateImage And IndexImage For TreeNode

Jan 17, 2012

I would like to know if it is possible to switch the position of a StateImage with that of an IndexImage for a TreeNode in a Winforms TreeView? Please refer to the image below for an illustration. The first TreeNode has a stateImage and the second one doesn't. My aim is for all IndexImages to align to the left and the StateImage (if any) to be to the right of the IndexImage. The resulting tree would look something like: I think I have to set the tree DrawMode to OwnerDraw and override OnPaint. I read this msdn link but nothing there was said about drawing images.

View 1 Replies

VS 2005 Swapping Collection Members' Positions?

Jul 22, 2009

This I'm almost certain is an easy problem for those with more experience than me. I just need a routine that trades the places of 2 members of a collection class.

For example: If there are 5 objects stored in a CList of() collection class, I want to swap item # 3 and #5 (or any pair of indexes), what would be the code?

This simple problem has my head spinning because once you remove a member all the indexes change.

View 8 Replies

Working Out The Point Positions Along A Straight Line?

Jul 22, 2010

I have two points (x1, y1) and (x2,y2) and have a straight line between the 2 points, from this I can work out the distance between the 2 points lets say it is 50.What I want to do is increase or decrease the length of the line by a predefined amount lets say 10.So If I increase the line length by 10 (from 50 to 60), What I want to work out is what point(x3,y3) would be at the end of the increased line.Hope this makes sense.I have tried to work out the new point using the angle but it does not work correctly, it does not seems to produce a perfectly straight line and the angle from point (x1,y1) to the new (x3,y3) is not the same as the angle from point (x1,y1 to x2,y2).

This is what I have tried:
:I work out the angle
aAngle =Math.Atan((Y2 Y1) / (X2 X2))

[code].....

View 1 Replies

Find Current Positions Of Cursors In A Textbox Or Listbox?

Jun 18, 2010

How to find current positions of cursors in any textbox or listbox?

View 1 Replies

VS 2008 Setting The Index Positions And Lenghth To A Specific Number?

Mar 23, 2010

I dont want to be setting the index positions and lenghth to a specific number becuase when i choose a different name from the listbox that is at a different position or longer it wont display it properly. explain to me another way around this so as it will allow any details to be selected and read???

[Code]...

View 16 Replies

Why Doesn't Picture Box Clear And Get Duplicate Displays At Different Positions On 2nd Click

Jun 13, 2011

When btnSetup is clicked, 7 rows with 24 colored predefined rectangles are displayed in the pbColors picture box as as intended. The controls on the first page of a tab control. I would like this display to remain intact when I change tab pages but when I return to this tab page the picture box is cleared. If I click the button, for some reason the group of colors is displayed twice, one after the other, instead of once as intended.

[Code]....

View 3 Replies

Can't Remember The Name

May 4, 2009

I'm using RichTextFormat, and i'm using cf to change the color of strings. I have this

Code:
cf22dgreengiant

Its actually like this though

Code:
cf2 2dgreengiant

But the parser thinks that the 2 in his name is part of cf. There's a character, in many different formats (usually ) that will fix it, but I can't remember what those characters are called so I can't look it up. It would be like this, assuming ! was the character. This would make it parse correctly

Code:
cf2!2dgreengiant

So what is that character called? Sorry for the dumb question, but I can't for the life of me remember.

View 2 Replies

Interface And Graphics :: GetDIBits : Return The Pixel Positions In The Image At Which They Are First Located Adjacent To One Another?

Sep 24, 2008

how I could search a given bitmap, say "test.bmp" or a printscreen, for two pixels that are next to each other and that have specified color values? The colors are: &H486596 and &H213D66. I then want to return the pixel positions in the image at which they are first located adjacent to one another. I'm only after the first instance of the occurrence. I wish to use GetDIBits as I hear that it's quicker. So I want to find the first instance where the color value for pixel (x,y) = &H486596 and (x+1, y) = &H213D66.

View 11 Replies

Get My Program To Remember Settings?

Mar 15, 2009

How can i get my program to remember settings?I have made it so that they click on a register button, if they enter the correct registration code, it will unlock these features. How can i make it so it remembers that the key has been inserted, so when the user next uses the program, they dont have to re enter the key. I think it has something to do with ini files, but im not sure how i can implement it.Here is the

Private Sub Register_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Register.Click
If UserID.Text * (KeyID.Text / 2654) > "2234047144494" And UserID.Text * (KeyID.Text / 994) < "213725721516" Then
MsgBox("The User ID and Key are Correct! Registration is now complete. You now have full access to EVERY feature.

Base.CalenderToolStripMenuItem.Enabled = True
Base.ShowTrackBarToolStripMenuItem.Enabled = True
Base.HideTrackBarToolStripMenuItem.Enabled = True[code].....

View 4 Replies

IDE :: Change Backround Remember

Jun 1, 2010

So heres the change backround code

Dim Fd As New OpenFileDialog
Fd.Filter = "Image Format(*.bmp;*.png;*.jpg)|*.bmp;*.png;*.jpg"
Fd.Title = "Add Background Image"

[Code]....

now what could i add to that to make it save the backround change?

View 4 Replies

Implementing A 'Remember Me' And 'Keep Me Logged In?

Jan 5, 2011

On Form1 I have two textboxes (Username, Password), two checkboxes (Remember me, Keep me logged in) and a 'Login' button. I am using a MySQL database. Here is my code (w/out my database info, of course):

MySQLConnection = New MySqlConnection
MySQLConnection.ConnectionString = "server=REMOVED;Port=3306; user id=REMOVED; password=REMOVED; database=REMOVED"
MySQLConnection.Open()

[Code]...

View 2 Replies

Remember Last Used Image In Picturebox?

Dec 22, 2011

so here is what I have. I built a program for myself, it runs great so far. I have it all set up so it remembers what ListView items I put in and all that. But Now I want the picture box to save an image location into a text file then read the text file when it starts up then load the image from that file. I tried adapting the same code that I used for the ListView items but I just don't know enough yet to do that very successfully.

View 4 Replies

Remember Results From Lucky Seven?

Nov 26, 2011

For a project at school, we have to write an application with a database.I'm going to make a mini-casino where people can deposit money on their accounts, where they can lose or win money.Since I'm a beginning programmer, I'm kinda stuck. I want to write the lucky seven game with classes. It's easier to do it in a form directly, but we have to do this with a class.

I want to keep track of the users account (this is a class as well). So each time you press the button,you pay 1$ or . If you win, you get the prizes on the central account. So when you quit the game and play another, you play with the updated saldo. i'm not busy with the database, but the label won't change. It gets stuck at -1. When you win, the label gets updated but every time I lose, nothing happens.

[Code]...

View 1 Replies

Remember Selected Row In DataGridView?

Jul 22, 2009

I'm trying to get my datagridview control to remember the selected row after data refresh.The DGV is databound to a list of business objects:

Dim FXs As SortableBindingList(Of FX) = FX.LoadAllForBinding(FXStatus)
Dim bs As New BindingSource
bs.DataSource = FXs

[code].....

View 1 Replies

Drop Down List Remember Selection

Mar 6, 2012

i have two pages.1.aspx and 2.aspx i have a drop down list on the first page and a back and sumbit button on the second page..If i make a selection in the drop down list and go the second page and then go the the first page again with the back button. the drop down list doesnt show the selection that i did.i tried the use "sessions" but didnt work, also tried postback but no luck. I read something about "Enableviewstate" also no luck.[code]

View 2 Replies

Get VB Browser To Remember Username On A Webpage?

Aug 29, 2009

How do i get my visual basic browser to remember my username on a webpage , so when i access that site my username will be saved ?

View 2 Replies







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