VS 2008 How To Change Page Setting On 2008

Feb 8, 2011

I am making a program to print on a printer with auto cut. The height of page is different each print. It depend on how many lines printed. how to make this change?

I try:
PrintDocument1.DefaultPageSettings.PaperSize
but how to change its

[code].....

View 6 Replies


ADVERTISEMENT

Session Variable To Change From Page To Page As Move From One Page To Another?

Feb 2, 2010

i am new to this. i have 4 pages. login.aspx, account.aspx, settings.aspx and fliers.aspx.
its all programmed in vb.net with sql server backend.on my firstr page, login.aspx i have this code in the .vb page -

Dim SQL As String = "SELECT * FROM table1 WHERE email='" + Me.txtUserName.Text + "' AND password='" + Me.txtPassword.Text + "' "
ExecuteNonQuery(SQL)

[code]...

View 3 Replies

IDE :: VS 2008 Error After Copy And Paste Component From One Page To Other Page?

Jan 31, 2009

I am having problem with my windows based application in VS 2008. I have a page from where I copy the component and use the same on another page for saving my designing time.It works fine and run without error.But when I restart the solution then the 2nd page where I had pasted the component is not displayed in the form designer. I get the following on the screen

View 1 Replies

VS 2008 Change Frame Rate In Visual Basic 2008 Media Player?

Feb 26, 2010

How to change the frame rate in Visual Basic 2008 Media Player? I have error: System.NullReferenceException was unhandled Message: Object reference not set to an instance of an object. IS there any way to fix this? Here's My Code

[Code]...

View 2 Replies

VS 2008 Change Date Format - Ms Sql Server 2008

Jun 16, 2011

i m developing a window application using vb.net & ms sql server 2008. The date is by default mm/dd/yyyy. But i wanna change this to dd/mm/yyyy. How is it possible and where do i hv to make changes?

View 3 Replies

C# - Setting Up First RSS Feed Ever On ASP.NET Page

Apr 7, 2011

I have never touched RSS feeds before.

What would I need to do in order to set my page up so that it can get a RSS feed onto the page?

I have a page that reads information from a database through a repeater control

<form id="form1" runat="server">
<asp:Repeater ID="myRepeater" runat="server">
<ItemTemplate>

[Code]....

Is it possible to set up a RSS feed to this repeater control?

View 3 Replies

Registry Key Value Setting In Aspx.page?

Nov 11, 2009

VB.net code for .aspx page

Dim header As String
Dim footer As String
Dim margin_left As String

[code].....

View 1 Replies

VS 2008 - How To Do Some Changes In Regional Setting

Apr 7, 2010

Actually I am a basic user, but I like to utilize the sources around me to solve my problems and one of those sources my little knowledge about VB.Net. Today, I am forced to do some changes in the regional setting i.e. Format, Standard Digits & Native digits "Shot attached" many times a day for printing purpose through an ERP system. Therefore, I need to read the current setting for those options and two buttons (one to change them, the other to restore the previous setting).

View 4 Replies

VS 2008 Set IE's Proxy Setting?

Mar 21, 2009

Is it possible to change/set my Internet Explorer proxy setting in VB.NET application? For example, change the proxy server IP.

If so, do I call and add the MS Web Browser into my toolbox, and add the object on my form to do it, or I'm totally wrong, there are something else I should take care of.

View 1 Replies

VS 2008 Setting CheckBox In PDF?

Jun 30, 2010

How can i set a Checkbox in a PDF, i tried the code below, but it does not work The name of the field is 'chkLecture', I want to set it to being checked..

pdfFormFields.SetField("chkLecture", "On")

View 2 Replies

VS 2008 Setting Up A Listview

Apr 11, 2009

I'm trying to setup my listview so it displays 2 column headers above the data:[code]I created a listview, then right clicked on it "Edit Columns" but when i build and preview theres nothing shown,

View 2 Replies

[2008] Setting Maskedtextbox?

Mar 15, 2009

I have used a maskedtextbox with the following input Mask##?-##.##' >?The first 6 characters are numbers and the last character has to be a uppercase letter. But when i use this al letters are good. But i want to use only certain letters. For example the N and S letters. How can i set this?

View 1 Replies

VS 2008 Howto Change Value Of Adresses Vb 2008?

Feb 20, 2011

How to change value of addresses in vb 2008? i want to change a value of a address in vb 08, it need to change a address from an other program. I have the addresses and the types of the addresses are float, 4 bytes and 2 bytes.

View 2 Replies

Setting Up Custom Page Size In 2010?

Nov 4, 2011

I am trying to set custom paper size on my printer with Winspool.drv. But getting error as 'Attempted to read or write protected memory.'

Private Sub btnTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTest.Click
Dim hPrinter&

[Code].....

View 1 Replies

VS 2010 Setting Web Browser Home Page

Jan 7, 2011

I'm working on a web browser application and I'm trying to set up the home page to be decided with a textbox in the settings form. I want it so that if there is text in the textbox it pulls the url from it and goes to it every time the application is opened.I doubt this is even close to anything that would actually work but I like to show that I put the effort in.[code]

View 2 Replies

VS 2008 - Setting A Value To Each Item In Combobox

May 25, 2009

Ok, I'm trying to set a value to each item in my combobox, but I don't know how. Lets say I have ComboBox1 that contains the letter A-Z, 26 items, I would want to set each letter a specific number, then use that number for something else. Like, if I set the letter A to equal the number 4, and the user has chosen A in the combo, I could do something like make a Msgbox say that value(4). Does that make sense?

View 3 Replies

VS 2008 : Setting IE Proxy In Code?

Dec 7, 2009

I've been trying to search a way to set IE's proxy in code and ran across the WinINet API.I then found some code that someone made to set the proxy:

VB.NET
' The Windows API function that allows us to manipulate
' IE settings programmatically.
Private Declare Auto Function InternetSetOption Lib "wininet.dll" _

[code]....

how to modify it correctly.

View 2 Replies

VS 2008 : Setting Up File Associations?

Jan 29, 2010

Under Project Properties, Publish, Publish Options, File Associations, you can set what file associations your project uses. What should I set for ProgID?

View 1 Replies

VS 2008 : Setting Up Quiz Program?

Apr 3, 2009

I'm trying to make a quiz application with Visual Basic at the moment. I want to write a routine that asks five questions to which the answer must be either Yes or No. It must add up the number of Nos and if the number of Ns is less than two then print out �pessimist�, otherwise print out �optimist�.I'm only at the very beginning stage of the program, I've created the design of it but I'm not too sure whether the code concept for the radio buttons is right. How can I expand on this?

Public Class Form1
Inherits System.Windows.Forms.Form
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim numberOfNos As Integer = 0

[code]....

View 8 Replies

VS 2008 DataGridView - Setting The Colour Of A Row?

Jun 30, 2010

I have a dgv where every alternating row is a different colour to make it more readable, as you can see in my attachment.

I now want to recolour certain rows to another colour. Lets for example say all rows where column(7).value < 5 should be red or whatever.

I coloured 2 rows in the example to show you what i want.

View 2 Replies

VS 2008 My.Settings, Setting The Value At Run Time?

Mar 24, 2010

I have three settings Pleas,DocketSheets,AllTrays (strings). How to I set the value and save them for ever?

I've tried.

My.Settings.AllTrays = "Tray1;Tray2;Tray3;Tray4"
My.Settings.Save()

but it says that AllTrays is readOnly. Are the settings only retrievable and not settable or updatable?

View 17 Replies

VS 2008 Setting A Document Path?

May 26, 2009

I got a button that needs to open a word file, and because the file is on a network it freezes for the first time you press it. If I would put the file in the destination of the Bin next to the exe files how would I define the location to it. If the bin folder would get moved to another location, the path will differ.So how would I be able to create a bit flexible path wherever the application goes?

Private Sub btnWarranty_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnWarranty.Click
Dim wDoc As Word.Document
Dim wWord As Word.Application = New Word.Application
Dim path As String = "\SERVERPublicCRM_LibraryPolicywarranty.doc"
wDoc = wWord.Documents.Open(path, OpenAccess.Read)
End Sub

View 6 Replies

VS 2008 Setting Focus To A Textbox?

Mar 12, 2012

OK in the frmMain_Load sub I have this: tab page control with two pages. On page 1 I have a textbox.I also have the following Set the focus to the first textbox control on the first tab page.txtbMonthlyUsage.Focus()I can not get the focus into the textbox although its Enabled = True, TabIndex = 1, TabStop = True.

With all that I can not get the focus to work.But when I activate the 2nd page and come back to the 1st page when the form is displayed, it works like its supposed to.What am I missing?Do I need to activate page 1 as the form is loading? How do I do that?

View 3 Replies

VS 2008 Setting Form Instance To Nothing?

Jun 25, 2009

in Old vb/VBA, I am accustomed to doing THIS when I instance a form object (as in "pop-up"):

Private WithEvents SomePopUpForm As Form_PopUpForm
Private Sub cmdEdit_Click()
Set SomePopUpForm = New Form_SomePopUpForm
SomePopUpFOrm.Visible = True
End Sub

[Code]...

View 5 Replies

VS 2008 Setting ListViewItem Text

Mar 31, 2010

I have a previous project that, when the user selected a specific settings, a ListView SubItem's Text was changed. There's nothing functional to this than to allow the user to see every option they've chosen.However, when I do the same on a new project, I get an error: InvalidOperation Exception: The error is: InvalidArgument=Value of '0' is not valid for 'index'..I've determine that it is the piece of code that specify's the text of the ListView SubItem. I don't know what's going on because I've duplicated everything from one app to the next.The ListView has it's columns, items, and sub items added during design time.[code]

View 1 Replies

VS 2008 Setting Min/max X And Y Axis In MS Chart?

Mar 24, 2009

I'm trying to set the minimum and maximum x and y axis for a chart.I'm using the next

Private Sub Chart_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
frmMenu.Enabled = False

[code].....

View 12 Replies

VS 2008 Setting The Listbox Values?

May 15, 2009

Well, i have the listbox... and it has the colors

Black
Brown
Red
Orange

[code]....

now the code works like this

color + color * color = resist value

well, i need to give say black the value of 0 and brown 1 and red 2 and so on...How to I assign value to it?

View 6 Replies

Setting Default Button Of Panel Within Master Page?

Mar 2, 2011

Can you set the default button of a panel with a button that is not in that panel but in another content placeholder within a master page? I have tried this but I get the following error:
The DefaultButton of 'pnlTmp' must be the ID of a control of type IButtonControl.

I have also tried setting the panels DefaultButton this way :
pnlTmp.DefaultButton = btnContinue.UniqueID
This gave me the same error.

View 1 Replies

Setting Value Of SqlDataSource Parameter From A QueryString Value @ Page Load?

Feb 20, 2010

Let's say we have a value coming in through the URL of a page. Example: www.test.com/page.aspx?&Key=Val. Val is retrievable through Request.Querystring("Key").Is there an accepted best practice for assigning a QueryString Value to a parameter of a SqlDataSource defined on an ASPX page?

Options that I know of: Do not include parameters in the ASPX file. Add them directly through the codebehind -- and assign Param.DefaultValue upon adding. Set Param.DefaultValue in the page load (Codeblock 2)

Both of these use DefaultValue, a property that clearly was not intended to be used in this manner. Do the ASP.NET overlords have a recommended method in mind for achieving this common task?

[Code]...

View 2 Replies

VB 2008 - Setting Root Namespace Name Of A Project

Feb 9, 2009

I VB 2005 you can set the root namespace name of a project under the project properties. Where can I set this using VB2008?

View 4 Replies







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