Scrolling Two Things At Once?

Jan 19, 2009

I want to make it so when I scroll down on one listbox view, it will do the same on the other one. How do I do that? I have one listbox that lists usernames, and the other one that does the message... so we don't have to worry about one having a longer height than the other one.

View 7 Replies


ADVERTISEMENT

Making Different Things Happen Depending On If Things Have Been Set?

Jun 17, 2012

If NewEntryName.Text = "" And OpenFileDialog1.FileName = Nothing Then MsgBox("Please choose a name for your game.", vbExclamation) MsgBox("Please find your game.", vbExclamation) Else Button1.Text = NewEntryName.Text

[code].....

View 1 Replies

C# - Get Smartphone Like Scrolling For A Winforms Touchscreen App ( Scrolling Panel )?

Aug 5, 2011

After scouring the articles online I have come up with this design for a winforms based touchscreen app that needs smartphone like scrolling. The app itself will run on a tablet laptop or touchscreen desktop.I put everything I want to scroll on a panel. Set autoscroll to true (which will show scrollbars)Now put this whole panel inside a groupbox.Shrink the groupbox until the scrollbars are hidden (visually hidden, not visible = false)

Now the fun part I am stuck at.I think I have to handle the mousedown, mouseup & mousemove on the panel to set the autoscrollposition so that when someone touches the panel and drags, it does it's scroll magic. Please help fill in the few lines of code in below method stubs. The msdn doc on autoscrollposition is very confusing since it returns negative numbers but needs to be set to positive with abs and what not.

Point mouseDownPoint;
Point mouseUpPoint;
Point mouseDragPoint;[code]......

View 1 Replies

Scrolling Text: Only Scrolling Certain Song Titles?

Aug 19, 2009

I currently have a label scrolling text, But for some reason it only displays Certain song titles/text. Does Anyone know why?!

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
OpenFileDialog1.ShowDialog()
AxWindowsMediaPlayer1.URL = OpenFileDialog1.FileName

[code]....

View 1 Replies

.net : Changing Certain Things To URL?

Aug 4, 2011

Like the browser url is

[URL]

how can i change when button press it will change the url: [URL]to : [URL]it will change M. to WWW.

View 2 Replies

Compare Things From Xml?

May 18, 2010

I'm trying to compare values from a single xml file.

Here is my xml file set up

<?xml version="1.0" encoding="utf-8"?>
<Updater>
<version>

[Code].....

View 11 Replies

Difference Between These Two Things?

Jun 15, 2011

When people use if statements on booleans, they either do this

if booleanStatement = true then
if booleanStatement then

I know that they both accomplish the same thing, but is one better than the other? Outside of 'good programming etiquette'

View 2 Replies

How Many 'odd Things' Happen

Jun 27, 2012

After developing using the Excel Interop with .Net for a while, i have become increasingly annoyed with the how many "odd things" happen - such as this question i posted earlier.

View 6 Replies

How To Email Things In VB

Nov 15, 2011

Im 16 and have been working with Vb for a few months when i have time. I am trying to make a text box that when the user of the program types into it what they have typed will be sent to my email with a push of a button...Im having alot of trouble because i dont know how to do this.

View 1 Replies

Assigning New Things To An Image?

May 1, 2010

OK, Well I'm creating a "Card" creating app. The app will let you type in the name you want in the name field and then select a picture. But the problem is, is the saving. I want the card to be transparent like the original. The original is just a blank card. And theres a picturebox on the form that shows the original transparent image, and then a label over the name tag part of the original transparent image, and then another picturebox over the original pictures box for the picture, everything works for designing and it looks great after your done designing the card. But saving will not be transparent and it will not blend with the background.

How do I add onto the image and still keep the transparency of the original and then save it?

This is my code:

Label1.SendToBack()
PictureBox2.SendToBack()
Dim Card As New Bitmap(Panel1.Width, Panel1.Height)

[Code]....

View 1 Replies

C# - Generating Excel Through .Net Doing Odd Things?

Feb 4, 2010

I have a rather odd thing happening with an Excel WorkSheet that I am creating through .Net.I load up an existing workbook

Dim _xlApp As New Excel.Application
Dim _xlWorkbook As Excel.WokBook = _xlApp.Workbooks.Open(_templateFileName)

set it to be visible before populating it (for debugging purposes)

_xlApp.Visible = True

I then go on to populate the existing template.

Private Sub GenerateOceanFreightGrid()
Dim columnCount As Integer = 4 ' _standardColumnCount
Dim columnInsertPosition As Integer = 5

[code]....

When i set a breakpoint on the "Private Sub Gen.." line, and step through the code line by line, it inserts a new column for each variable declared, so in this case it will insert two columns before it even hits the "If MyBooleanValue()..." line (I can watch it actually happen due to the Excel app being visible). However, if i dont set a breakpoint and just let the code run straight through this doesnt happen.There is no multi threading happening or anything else that i suspect would have any impact on the code.

View 1 Replies

Drag And Drop Things?

Apr 1, 2009

I am wondering if it is possible to drag and drop a control, lets call it a button, and drag it from a FlowLayoutPanel and drop it in a diff FlowLayoutPanel?

View 2 Replies

How To Find Things In A Text

Oct 25, 2010

i need a code which can look for a special characters like " "(double quotes) ,';' (semi colon)...

i have a text box to look in

View 4 Replies

Print Things In Line?

Dec 5, 2011

I have a pos system im making and all works well except 1 thing

so close yet so far

my problem is when printing the items then qty then price, i need them all to line up nicely (well qty mainly)[cod]e...

View 3 Replies

Running Things In The Background?

Jul 20, 2010

I have a class that wraps up a few methods (e.g. OpenPort, SendMessage etc.). Some of the methods accept a number of parameters and return a value (e.g. SendMessage accepts port and a string that is the message to be sent and returns true or false depending on whether the mesage was sent successfully or not). I create an instance of my class when my form loads and I call the various methods throughout the lifetime of the app.In my SendMessage method there is actually a few steps that involves a delay as I send commands to an instrument and wait for a response. I'm using the AutoResetEvent class to synchronize things. Whilst this works ok I've noted that the UI is unresponsive during the wait period.

Public Class MyClass
Private _receiveNow As AutoResetEvent
Public Function OpenPort(ByVal portName As String, _

[code].....

View 2 Replies

Tell A Program To Read Things As A Hex?

Jul 29, 2010

Hey is there any way you can tell a program to read things as a hex? so instead of reading AA as string read it as its Hex value.

Can you set it up as: Dim Reader As Hexadecimal or would this not work?

View 7 Replies

VS 2008 Permanently Re-name Things In VB ?

Feb 17, 2011

at my collage we have to rename all buttons and labels to represent the type of thing the button, label or text box etc do For instance if I had an OK button I would change the Text and (Name) of the button in the Properties section from Button1 to BtnOk, if it is a Label I have to change it to LblOk etc I was wondering if there is a way to change the default (Name) Button1 to (Name) Btn1 and so on so that I only have to click on the 1 and type my description, rather than having to type the abbreviation for the type of object every-time also ?

View 12 Replies

What Are Things Vbc.exe Does When /optimize Switch Is Used

Mar 6, 2012

vbc.exe has something called /optimize switch right. If I enable that what are the optimizations the compiler can do for me? The MSDN documentation just curtly says 'does various compiler optimizations'. Where can I find the complete quantified view of the different optimizations that actually goes into.Here is the thing I am pursuing this route. One of the code blocks in a module I am leading has a lot of delimited array manipulations. I believe this is going to be a heck costly in terms of string memory handling. I am looking to see if I can retire them by way of simple properties or methods so that the compiler can internally do something like our c++ inline functions making a best win-win offer in terms of both memory and processing time. I admit when the compiler translates them as inline function, the JITed code might be big in size right?

View 7 Replies

Call Diferent Things In Other Forms

Jun 3, 2011

i have form1 - Form2 and Form3 Form1 appears and i have to pick a color and click the button to go to the form2, then in form2 it shows the color and in form3 too..which is the best way to do this ? My.forms.Form2.SomeCodeHere or just Form2.SomeCodeHere

View 1 Replies

Extract Things From Database To Array?

Nov 18, 2011

Okay here is a short video that shows exactly what I want to do. I'm a beginner with databases so I'm not that good at it. [url]...

View 12 Replies

Get Things To Print On Multiple Pages?

May 29, 2011

I am trying to get things to print on multiple pages. I am just printing the same thing over and over with slightly different values. At the moment the print out is only one page and it overwrites it's self. How do I make a page break?

Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
' Set up earnings statement information and send to graphics page object.

[code]....

View 4 Replies

Handle Things In Messagebox In If Else Function?

Feb 2, 2010

how can i handle things in messagebox in if else function

for example

MsgBox("Are you sure you want to exit?", MsgBoxStyle.OkCancel)
if==ok
exit sub

View 2 Replies

Icon.ExtractAssociatedIcon For Things That Are Not Files?

Oct 11, 2009

Is this possible? It gives me an error, and I had previously thought it could work for folders and drives and stuff like that as well. Icon.ExtractAssociatedIcon("C:") did not work when I tried it, and threw an error. How can I get the associated icon from EVERYTHING? This is vb.net

View 2 Replies

Input Things On A Website Faster?

Feb 28, 2012

I was wondering how I can make this happen. I am making a app that basicallysite faster. I am using Visual Studio 2010 Ultimate. I have a text box that has some of these fields on the side:

|membersonly=
|power=
|gender=

[code].....

View 1 Replies

Inputing Things To Search Boxes

Sep 10, 2010

I'm trying to find out how i can go to a webpage and input text into a textbox. Like ill have a web browser, 2 buttons and a textbox. When you open the program and type a string into the textbox it loads the website, then when you press the button in types it into the search. When you press the second button it searches.

View 1 Replies

Make A Button Add Things Into Code?

Jun 7, 2011

What I want is to be able to add things from the textbox into code by clicking a button. For example

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

add->" If VideoList.SelectedItem = TextBoxName.Text Then
Label1.Text = TextBoxVideo1.Text[code]....

View 14 Replies

Ordering Commands TO Do Things First Before One Thing?

Jun 22, 2012

If TextBox1.Text = ("weburl") Then WebBrowser1.Document.GetElementById("price_category").SetAttribute("value", "4")
End If
If TextBox1.Text = ("weburl") Then
WebBrowser1.Document.GetElementById("fullprice_quantity").SetAttribute("value", "4")
End If
If WebBrowser1.DocumentText.Contains("Add to shopping list") Then
WebBrowser1.Document.GetElementById("add_to_list").InvokeMember("click")
End If.

I want them to go in order. But what it is doing at the moment is going to the third if statement first.

View 39 Replies

Redeclare Things To Implement Interfaces?

Nov 26, 2009

I have an interface IMyInterface and this interface implements a method MyMethod.I have an object MyObjectBase. This object contains a(the same) method MyMethod.1) If now I do MyObject Inherits MyObjectBase Implements IMyInterface need I to redefine? (shadow, override) MyMethod in the MyObject class?

View 2 Replies

Searching Things Out Of Text File

Jan 6, 2011

I'm trying to get help or idea how to get certain things out of text file. I don't know even if it's possible, but I hope so.[code]I need to get that number what is after /kick "nr". Also I need to get last /kick "nr".

View 8 Replies

User To Be Able To Save Certain Things On The Form

May 24, 2009

I'm making a program in Visual Basic 2008, and I want the user to be able to save certain things on the form. Would it be a good idea to save the saves items to a .txt file in C:WINDOWS? The reason I'm wanting to do this is so the user won't easily find the file and it is easily done.

View 5 Replies







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