Entire Workspace Less 10% Margins On Each Side?

Aug 24, 2009

Dim workspace(1 To 4) As Long ' (1)=left (2)=top (3)=right (4)=bottom SystemParametersInfo &H30, 0, workspace(1), 0 ' &h30 = get workspace size Dim X As Long, Y As Long, w As Long, h As Long

X = workspace(1) * Screen.TwipsPerPixelX
Y = workspace(2) * Screen.TwipsPerPixelY
w = workspace(3) * Screen.TwipsPerPixelX - X
h = workspace(4) * Screen.TwipsPerPixelY - Y

Move X + 0.1 * w, Y + 0.1 * h, 0.8 * w, 0.8 * h ' 10% margins

View 2 Replies


ADVERTISEMENT

Make Main Form Large: Entire Workspace Less 10% Margins On Each?

Aug 24, 2009

How to make main form large: entire workspace less 10% margins on each side using vb.net.

View 2 Replies

Find A Workspace With The Same Object And To Create A New Workspace From Another Workspace?

Oct 16, 2009

I'm learning MVVM using the sample created by Josh Smith and I wanted to add a functionality of update.Two problems arise (not addressed in the referred question):What is the best and light way to create a workspace from another workspace?

View 2 Replies

Making A Workspace Window?

Nov 20, 2009

looking at some applications like excel and other ms office programs got me wondering: how do you create an area where windows open in but don't appear as separate windows on the windows bar? Basically my question is, is there any way to create a window workspace where new windows are opened but don't appear as an entire new window?

View 4 Replies

C# - Send An Object From Client-side Javascript To Server-side Code Via ASP.NET?

May 23, 2011

Can I send an object from client-side javascript to server-side code via ASP.NET ?

View 5 Replies

Fire Client Side Code From Server Side At Runtime

Apr 13, 2010

I know this defeats the purpose of client side vs. server side (refer to title of this thread). What I would love to do is build my own custom progress indicator on the client showing how far a server side code has progressed. I figure if I could only get a JavaScript to fire and render a value of some control at pre-defined intervals while the server is working I could make it happen - but alas I'm beginning to believe that this is impossible. Below is some code that performs three 2 sec loops. At the end of each I want to change the visible value of a control on the browser. [Code]

View 8 Replies

Html - Webpage Stacking Xml Documents Instead Of Showing Side By Side, CSS?

Feb 23, 2012

I have a basic asp.net web page. I have a menu bar divided into 3 columns. Each column displays an xml file. However instead of showing them side by side it displays them one on top of each other. i think it might be to do with my css?

My asp.net web code:
<div class="menubar">
<div class="menuleft">

[code]....

View 2 Replies

Javascript - Format Data (client-side) For (server-side)

Jul 13, 2011

Using the following script:

$("#some_button").click(function() {

var changed = [];

[CODE]...

I need to send back the id, the old value from _1 and the new value from _0 back to the server. What is the best way to format this data so I can easily extract the data from the server side so I can easily email someone for example to let them know which textboxes have changed, what the old values were, and what the new values are

At the serverside level, I am using .NET-3.5 (VB). I know how to send the data bacl. and how to email the data, I just wanted to know how to best format the data at clientside before sending it back. I could have upto 50 sets of id, old, and new values to send back. Sorry for not making that clear earlier.

Example:

How can I modify the script above to generate this?

[
{
"id": "name_0",
"new": "text",

[CODE]...

View 3 Replies

Making A Button That Can Move In A Path Random Up,down, Side -side, Etc?

Dec 18, 2011

I'm working on a 2d game. making a button that can move in a path random up,down, side -side, etc. in a selected space. and once hits end of the form to slide out and reappear at other side of the selected space and do same thing over.

View 1 Replies

Asp.net - Add Bottom Side-to-side Scroll Bar To ExtJS Grid?

Oct 14, 2010

Here are my two grids -- they are ExtJs grids however we wrap the declarations in vb.net code:

Dim VehicleOptionsGrid As New Framework.WebControls.Grids.Grid
With VehicleOptionsGrid
.ID = "VehicleOptionsGrid"
.Title = "Vehicle Options"

[code]....

Using javascript, is there anyway I can add a bottom scroll bar to these grids? Doesn't seem like we have a wrapped command to do it...

View 1 Replies

Html - ASP.NET VB Nested Listviews Appearing Side By Side

May 14, 2011

I currently have a parent Listview and its child Listview displaying in the centre column of an HTML page that consists of three columns left, centre and right. And all looks very good. However I would like to display the child list view in the right column beside the parent list view.

To do this it seems I must somehow generate from the code behind page a new row in the table every time the parent Listview displays a record of its data and then some column HTML so the first child list view will appear in the right hand column.

View 1 Replies

Team Foundation Server - Check Out File Without Workspace

May 27, 2011

I have TFS url, and I have source File location, but I don't have Workspace path. How to Check out file without workspace, or how to find workspace for some file? I already make solution for checkout file in TFS, but in some cases I don't have workspace path or name.

[Code]...

View 2 Replies

Timers On Server-side - From A Client-side Piece, Call Off To A Server-side Piece

Apr 22, 2011

I'm trying to, from a client-side piece, call off to a server-side piece. I need to do this synchronously. On my server-side code, though, I'm calling off to another piece of code, which I want to have a maximum of, say, 10 seconds to return a value. If I don't have a response within 10 seconds, I want to force my own server piece to set my result equal to 0, and return to the client.

Here's what I have on my server-side code so far:

Public Function GetWebResult(ByVal inputParameter As Object) As WebReturnObject Implements IWebInterface.GetWebResult
Dim result As New WebReturnObject
Dim webItem As WebItem = Nothing

[CODE]...

I realize this code is not functional. The problem is that I'm unsure how I would go about getting back into GetWebResult to set the appropriate return values before it is sent back to the client.

View 1 Replies

Change The Execution Sequence (Client Side Click, Server Side Click) To (Server Side Click - Client Side Click)?

Jun 22, 2011

I am struckup with a problem from last two days. I am creating a web application using VB.NET, Ajax & RAD Controls. When user clicks on a button I want to open a RAD Window and show the list of ledgers available to the user, so that he can select one from the list. And to open that window I have to call a java script function from client side, which is already achieved using the below code.

[Code]...

View 8 Replies

Asp.net - Server Side Doesnt See Changes On Client Side?

Jan 25, 2012

I add an option to a select with jQuery. When I save with an asp button, I don't see the changes on the server side in the click event.

And the HTML is all correct after I add the option.

Is it a coding problem or I don't understand something?

$(selectCourant)
.append($("<option></option>")
.attr("value",$(dropdown).val())
.text($(dropdown + " option:selected").text()));

View 1 Replies

Duplicate From Controls For Side By Side Comparison

Jun 18, 2012

I have an application which have multiple tab pages. On of these pages I have a group box with many controls that do something.Now the problem is I want to add exactly the same group box by the current one that can have different paparemeters.This is exactly the way that i want to add comparison capability between to set of parameters.I have more than 500 lines of code that responde to changes of these parameters and does something.Is there any way to replicate the the whole gropbox and use the same code for both and and being able to difrentiate between gropboxes.I think there was an array control in vb 6 but I am not sure if this the best way to do this in vb.net.What is the best way to do this for the least amount of changing the code and wasting time.

View 1 Replies

Loading Forms Side-by-side?

Jul 3, 2010

I have form 1 and form 2 form 1 is already loaded. When i load form 2 i want it to apprear right next to form 1 on the right hand side. What code should i use to accomplish this.

View 3 Replies

Sorting 2 Arrays Side By Side?

Jan 18, 2012

Basicly I have a program that retrieves data and parses it, which is fine, so it starts from:11:981.8 which equals to November 981.8 now what I have done is split the "November" and the "981.8" into 2 different arrays, with other similar data, now what I need to be able to do, is sort the array in either Ascending or Descending order, however keeping in tact, the November and 981.8 side by side in a list box.

My current code is:

Private Sub sortData(ByVal strYear As String, ByVal strSort As String)
lbDispData.Items.Clear()
Dim strData As String = My.Settings.usage2011
Dim arrRawData() As String

[Code]...

EDIT: Just to mention, there are many more values, not just November and 981.8, there would be for example December and 128.1, January and 191.1, etc.

View 2 Replies

Butterfly Program - Animation - Butterfly Is Going To Be Moving From Side To Side In A Slightly Upward

Jun 3, 2011

I am starting a butterfly program and having an issue and really just barely have it started and would like to get some helpfeedback on how to do this. The following is the instructions and I will make a second post on what code I have so far...The butterfly is going to be moving from side to side in a slightly upward assent when the animation starts. You need to build a set of controls that allow the user to control whether the butterfly ascends (up) or descends (down) and also allows the direction of the butterfly to change (left or right). The best way to implement this feature is through the use of keystrokes that when pressed act to control the direction of the butterfly. Whether you implement this feature through keystrokes or controls, make sure that the feature is communicated to the user.

Butterflies fly by opening and closing their wings. So it is expected that the butterfly will alternate between opened and closed as it wings its way across the form. If the butterfly is moving right, make certain the butterfly graphic displayed shows the butterfly as moving toward the right. If the butterfly is moving to the left, make certain the butterfly graphic displayed shows the butterfly as moving toward the left.

If the butterfly reaches the top of the form in its assent, it should wrap around to the bottom of the form. If the butterfly reaches the bottom of the form in its descent, it should wrap around to the top of the form. If the butterfly reaches the left edge of the form, it should begin flying toward the right side of the form. If the butterfly reaches the right edge of the form, it should begin flying toward the left side of the form. If the user changes the direction of the butterfly, insure that the correct graphics are used in relation to the direction of the butterfly and that the butterfly moves in the indicated direction. Please note that when the butterfly reaches the edge of the form, the butterfly must change direction regardless of any user input.

View 8 Replies

Javascript - Register A Client-side Event Listener On A Server-side Event?

Dec 28, 2011

Ultimately, what I want to accomplish is an AJAX-based messaging system. I already have a database table for messages, and an ASPX to add new messages (and declare old messages no longer relevant).

The current messaging system simply polls the server every 15 seconds, and re-pulls the current message set.

What I am looking to do is: On $(document).ready(), register an ajax callback function that listens for a server-side event (e.g., MessagesUpdated) On table insert/update, fire MessagesUpdated server-side.

This way, whenever the table is updated (or new records added), any clients listening know that new data is available and can re-poll the server then.

Ideally, I'd also like to make the new data available as an event argument (to minimize re-polling the db).

I can find references to something like this in other languages, but I cannot find any actual code examples to get me started.

Assuming this is possible to do via .Net, can anyone help get me started on this?

I'm using the 2.0 Framework. Also while I added a VB.Net tag, I can read C# reasonably well, so please feel free to post in either language.

View 4 Replies

Set The Margins On A Page?

Sep 20, 2011

I am creating a label program and I would like to set the margins of the page for each of the labels. There are 20 labels per 8 1/2" x 11" page at 1 14/16" H x 1 11/16" per label. I would like to know how to set the margins for each label on the sheet. Is there a chart that shows the X and Y coordinates of the page or is there a mathematical equation? Each label would have to be different is there similar code out there that I could get some Ideas?

View 6 Replies

Way To Adjust Margins

Sep 18, 2010

I just moved to VB 2010 Express. PrintForm works, but the image prints with a large left margin and runs off the right edge of the page.[code]...

View 2 Replies

Internal Margins On TextBoxes

Jul 26, 2010

I have some forms that were VS2005 forms the I moved to VS2010. The forms have a tab control and on the tabcontrol are some panel containers. If I add a multi-line textbox toa panel I'm seeing the text offset from the left margin. If I make a form from scratch the margin does not appear.Any idea where this left margin is coming from?Is there a way to set the left internal margin in code?

View 9 Replies

Set Margins In Report Viewer?

Sep 9, 2009

is there solution for to set margin programmatically ? Default margin are 9.8mm, instead i want 3mm?

View 2 Replies

Setting Margins In ReportViewer

Nov 7, 2006

I use Report Viewer to create a report with display records from a database. I have a lot of data to display for each line, but the margin settings are limiting me. If I go to the Page Setup tab in Report viewer(Run time), I can set the margins to 1 (left and right) , and it displays my full line nicely. How can I programatically set the margins to 1 during loading of the form?

[Code]...

View 5 Replies

Find Hard Margins Of A Printer?

Jun 3, 2011

I searched many pages but unfortunately found nothing. In fact the problem is Printable Area. Microsoft says: The printable area of a page varies from printer to printer and is not guaranteed to be symmetrical.

Does anybody have any code VB which will print a 1cm x 1cm box on a page which is located 1cm from the top and left edages of the paper for any printer?

I think the answer to the question depends on finding hard margins of the printer.

View 1 Replies

Make Printing And Page Margins?

Jan 13, 2011

I am printing a receipt with the following code:

Dim printFont As New System.Drawing.Font("Courier New", 10, System.Drawing.FontStyle.Regular)
e.Graphics.DrawString(sPrintText, printFont, System.Drawing.Brushes.Black, 10, 6)

[code]....

View 1 Replies

Printing With Minimum Margins Specified By The Printer?

Nov 1, 2009

I want to utilize the maximum paper area (A4 size sheet). Therefore I must get the minimum margins that specific printer can handle. I have more printers attached to th pc, so I can not hardcode these values. I have tried to set margins to zero, but that results in printing outside the page at right side and bottom:

PrintDocument1.DefaultPageSettings.Margins.Left = 0
PrintDocument1.DefaultPageSettings.Margins.Top = 0
PrintDocument1.DefaultPageSettings.Margins.Right = 0
PrintDocument1.DefaultPageSettings.Margins.Bottom = 0

So my question is: is it possible to read the selected printers minimum margins without have to open a PageSetupDialog, and therefore make it possible to utilize maximum printing area with code only?

View 1 Replies

Set Different Margins In Richtext Box In Vb Express 2008?

Jan 9, 2010

I want to set different margins in richtext box in vb express 2008

what I want to do is like this need to set left margin of 2.7" and right margin of 2.4" and one blank lines precede after that. and left margin 1.0" from the left edge of the page and the right margin is at 7.4" from the left edge of the page.

View 6 Replies

VS 2010 Create Workspace Where Can Drag And Drop Icons And Create Connection

Mar 3, 2012

I Want to develop a software like Yed.i just don know where to start.how we can create a workspace where i can drag and drop icons and create connection etc etc.

View 6 Replies







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