Use For A Legal Sized Bondpaper?
Jan 23, 2012What values do I use for a Legal sized bondpaper? PrintDocument1.DefaultPageSettings.PaperSize
View 4 RepliesWhat values do I use for a Legal sized bondpaper? PrintDocument1.DefaultPageSettings.PaperSize
View 4 RepliesSeveral years ago I developed a VB.Net 2003 WinForm application using SQL and the DataGrid control. The Datagrid is bound to a SQL dataset in the form load event. Everything work fine.
With the form opened, the user has the ability to size the datagrid control's column width and row height. I want to be able to capture the new row height as sized by the use?
I have a situation where I have several listbox controls on the same asp.net page. They are currently autosized to keep data from truncating. However, I would like to be able to determine the width of the largest listbox and then alter the size of the other listboxes to be the same.
How can I access the size of the listboxes?
I have a request for a util to create a binary file of finite size. For example, the user might want to create a 10KB or 1GB or 400GB file for testing network transfers. I would also like the ability to create multiple files, for example, create 10x 10KB or 5x 1GB or 2x 400GB (so my user would enter qty=5 and size=1GB and have 5x 1GB files in a specific folder).
[code]...
Can the sequence .( ever appear in C# or VB.Net code?(Not in a string, comment, or XML literal, EDIT: or preprocessor directive)
View 6 RepliesI'm looking to return a thumbnail image from a full size image stored as varbinary(max) in the database. I'll be using the thumbnails in a gallery-style view, so small size / efficient loading is crucial. I've been using an .ashx to return the full size image into a bound asp.net Image control, with the following code:
Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
Dim conn As New SqlConnection()
[Code]....
I realize it's probably best to address the re-size at the upload, and stored the smaller image as a discrete column. But in the meantime, is it possible to program the handler to re-size the image on the fly? Ideally, I'd be able to pass an additional query string parameter, something like isResized from the image binding, allowing the same handler to be used for both full size and re-sized images.
I am working on a personal vb.net project that will allow me to capture a full-sized image of a given web page. I've been working on this for a few of days and have not found a method that is 100% reliable. Here's what i have tried so far...
METHOD #1 - Using WebBrowser Control and CopyFromScreen
Problem: Fails to capture the entire content of the page if part of it is off screen, obscured, or requires scrolling.
[code].....
I am new to WPF but what i am trying to to do is i have a parentGrid with 3 rows, the first two are a menu strip and a toolbar, the third row is a child grid that is populated with the choices that are selected from the tool bar. the problem is that i want the forms that load in the child grid to not have their height surpass what i have set that row equal to in the parentGrid.[code]
View 6 RepliesI dont know if this has been answered but what i am trying to to do is i have a parentGrid with 3 rows, the first two are a menu strip and a toolbar, the third row is a child grid that is populated with the choices that are selected from the tool bar. the problem is that i want the forms that load in the child grid to not have their height surpass what i have set that row equal to in the parentGrid.is there an effective way to do this?
here is basically what i have for code
<Grid x:Name="ParentGrid" Margin="0" >
<Grid.RowDefinitions>
[code]....
What i am doing is inserting the first element in array3 into the first index of array4
then im checking second index of array3 and if this is the same as the 1st array then dont insert into array4 as this will be a duplicate.[code]...
How could one create a form that would give a handle to direct the mouse at that when the mouse clicked would result in focus of external process form directly bollow layer thereby giving focus to text box on said form?
View 11 RepliesI have previously used the arguments of a contentsResized event on a Winforms richtextbox to get the new size of my RTB. I am now developing a WinForms app with a custom WPF RichTextBox. My whole reason for doing this is to use the out-of-the-box spellchecker. I need my RichTextBox to expand and collapse vertically as the text is changed. The elementhost will also have to resize to allow the whole RTB to display on-screen.
View 1 Repliesi can't figure out how to set the paper size to legal!. [code]
View 6 RepliesI keep getting the error path not legal. Why is that? It's suppose to write the path when it installs. Is it not writing to the settings.txt file correctly?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If My.Computer.FileSystem.DirectoryExists("C:WorldBackup") Then
[Code]....
When opening my application form the application debug folder i get an error that says "The path is not of legal form." I have read that most get this error when trying to load their project in VS2008, I do not. I can build successfully, debug works and everything. When I publish on the other hand I get the same error. The only reference I have are:
[Code]...
what would we add to make it print in legal (papersize)here is our code that prints in letter size..
PrintForm1.PrinterSettings.DefaultPageSettings.Landscape = True
PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview
PrintForm1.Print()
the code:
[Code]...
I want to make a game where the playing pieces can move around. When I click on a playing piece it shows all available moves were I can go like this:
Red represents legal moves and dark gray represents a wall.
I have created a grid and buttons in it. When I click on a button, I subtract or add the available step count to the button index in the grid. For example if my piece can move 3 places, I subtract 3 from the index of the button and get the available position to the left of the piece. Then I do the same for all other directions. It looks something like this:
For each i as button in grid
Select case grid.indexof(i)
Case grid.getindex(currentPlayingPiece) - 3 'Left
[Code]...
Using this method it is very slow and cumbersome to get all available moves and not intuitive to get top and bottom moves. Also if there is a wall in the way and behind there's a available spot it shows that I can move to it.
How can i draw a random sized + shaped triangle, centered in my picturebox?
heres the code i wrote, but it draws them too big + off the screen or too small. how can i draw medium sized triangles centred in my picturebox?[code]...
Out of Memory displaying Thumbnails in Windows 7 64-Bit with 12GB installed
See more: .NET4
'My VB Code:
Private Sub Thumb()
Dim img As Image
[Code]...
I have to store the bytes of a image file inside of an XML file that is read by another program... The problem is, if I inject it as just plain bytes, the end-program has an error (presumably because it contains non-legal XML characters). How can I convert bytes into something that XML can legally read? I really have no other options at this point. I have to inject the image file as bytes (specifically a .bmp file).
View 1 RepliesI get this error when i try to drag a record from a file;
Private Sub cboBookingID_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboBookingID.Click
Me.cboBookingID.Items.Clear()
'output all records method 1
NumberOfRecords = LOF(4) / Len(OneBooking)
[Code]...
The bit in bold is where the error crashes at. it because i used this code for like 5 other files and worked perfectly fine.
Is there a problem with an ampersand in the name of an MSSQL table name.? I'm converting an Access db to MSSQL and a table like Ta&ble1 gets upsized to SQL Server no problem. Do you guys see this as a problem in subs that use a reader when used with a stored procedure that uses this table?
View 3 RepliesI am getting a disturbing message error when I dont select image from file then when I select its just ok...it just says:
The path is not of a legal form.
So my question is how can I have a choice whether I can insert image or not...if the fileopendailog opens there is query which says you must select...so may be I don't want to select. So when I click cancel in openfiledailog, that error message prompts. I want make the query in the code to have a choice.
This is the code of putting image into sql server db:
Dim pictureLocation2
As String
Dim aa As
New OpenFileDialog
aa.Filter = ("Image files| *.jpg")
[Code] .....
I have a fault with System.IO.StreamReader.
[Code]...
When the program starts, The faultis 'Empty path name is not legal.' How to solve this fault?
I'm working on a project, which is a Torrent Client (For legal downloads.)I would like to know everything I need to get started.
View 8 Repliesi am making a Long form and I want it to print in legal size paper. Only thing is I use printform and it does letter size only. Also it cuts off the left over labels i need to print out. I made a Database input form and an output form for printing.
View 2 RepliesI am using the following command "DoCmd.Outputto acOutputReport, Report Name, acFormatPDF, FileName".The report I am using legal as the page size. When the PDF is created in is created using letter size pages and the buttom of each page is cut off. I would like to find out why this is happening.Bob Gouveia
View 4 RepliesIn the past I've been able to pass a format string to the tostring method.It's not working any more Here's an example from my Watch window:
1.1.tostring String
1.1.tostring("0.00") {"Enum value was out of legal range."} System.ArgumentOutOfRangeException
[code]......
With this one..
SaveFileDialog2.CreatePrompt = True
SaveFileDialog2.Filter = "Text (*.txt) |*.txt|(*.*) |*.*"
txtBrowse.Text = SaveFileDialog2.FileName
[CODE]...
I'm trying to export the data from dgv to csv txtfile but i'm getting this error..Empty path name is not legal.