Inside Of Form Dimensions
May 18, 2009I'm trying to figure out the size of the inside of a formLike the size of a form minus the borders.The code would be something like, [code]
View 2 RepliesI'm trying to figure out the size of the inside of a formLike the size of a form minus the borders.The code would be something like, [code]
View 2 RepliesI'm upgrading my VB6 project to VB.NET and I found one of the problem below relating to dimensional array.Here's my VB6 coding :
Private Function ConvertMatrixToBase0(ByVal MyMat() As Double) As Double()
Dim i, j As Long
Dim ConvMat() As Double[code.]...
When i port it over to VB.NET, i encountered error message 'ReDim' cannot change the number of dimensions of an array. for the line highlighted in red. And I suspect that VB.NET need to always define the exact dimension of the array during the declaration. But for the function above, for the array of 'MyMat()', I do not know what is the exact dimension every time it runs, and that is why i need to check the dimension of the array.My question is do we have any solution in dealing unknown dimension array in VB.NET? As in VB6, we can just define Array() instead of Array (,) in VB.NET.
I am writting a program that aims at filling up bookmarks of a template with data retrieved from a sql server db. The form opens a Word document but I can't control the position and dimensions of the word document. It seems that I can't manage to overwrite MS Word default settings for position and dimensions. I want to be able to display the word document close to the form.Here is the code that I have tried and doesn't work:
Dim
wawidth
As
Integer
[code]....
The following code does create a form within a form and does place NotePad inside the child form. You have to manually start NotePad prior to execution (I work on that later) but the code does workŠ My problem is now I want to manipulate the properties of notepad i.e. focus, size, location, etc. but I cannot figure out how to reference notepad and its properties.
[Code]...
i am asking about using the progress bar into the status bar to move when i load any child form inside the MDIParent form.
View 1 RepliesThere's a richtext box in Form 2 and a WebBrowser in Form 1. The richtext box contains several hyperlink. How can I navigate the WebBrowser in Form 1 by clicking the links inside the richtext box in Form 2.
View 4 RepliesInside a form, I would like to display a pdf file which is already available in my resources (template file "untitled"). In this pdf file, I have some fields which get their values from some texboxes in another form. My aim is, when the user triggers the button to call this form, it should insert the values inside the pdf file and display the output pdf inside the form.I have written the code to an extend but could not finish it myself after my many trials... Now here are the two things I cannot manage:I can use a directory to read the template pdf "untitled1.pdf". But my aim is to use the file inside my resources. can save the output file in a directory but this is not I want to do. I want to display the output pdf.
View 1 RepliesHow does Visual Studio and other similar programs display a form in their IDE? Is it possible to achieve the same or a similar effect using C# or VB.NET?
View 3 RepliesIn MDIParent, in my formload in MDIParent, one form is load. And i want the form when i click a button, there is another form will be loaded INSIDE the MDIParent?
View 4 Replieshow to minimize child form inside of parent mdi form in vb.net? I change the property of "IsMdiContainer" to "True". but when i minimize parent mdi form, it is not minimize the child form.
View 2 RepliesI have a MDI form containing 2 other forms that I first created via GUI and than manually added to the MDI form.Form1 = MDI formForm2 = Form containing a WMP and buttonForm3 = Form containing a butoon. This form's opacity is set to 50%, to make it semi invisible.My MDI Form looks like this
Public Class Form1
Dim f As New Form2
Dim g As New Form3
[code].....
I have the main Form, Form1, and when I press a button, I want it to load another form, centered inside the other form The best example I have is something like Photoshop. When a popup box comes up, it is centered by the main window.
[Code]....
I would like to place a form inside of a form, how would I do that?It would be like photoshop, where the tools form is inside the main form, or the filter form is inside the main form.
View 9 RepliesI am trouble in sorting 2 dimensions array in vb.net. One row has 5 columns. Original array have 3000 rows.How can I get the effective sorting with pdtId. I tried to find googling, cannot get the right answer to me.
(0, 0) = pdtId "string"
(0, 1) = brand name
(0, 2) = category Id
(0, 3) = url
(0, 4) = date
[Code]...
I am trying to compare two arrays that always have different dimensions.
e.g. arr1 -> {1,2,3} and arr2->{1,2}
I did try and able to get the matching items to new array. But I am expecting to get the unmatched items only. I am expecting to compare both arrays and put only the item '3' to a new array which is in arr1 and not in arr2
e.g. arr1 -> {1,2,3} and arr2->{1,2} should result a new array with 3
arr1 -> {1,2,3,4} and arr2->{1,2} should result a array with 3,4
Is there any way of doing this for older version of .net framework without using Enumerable.Except
I'm uploading a flv / swf file and I need to capture the dimensions of those files so I could later retrieve it from a database and embed it into a page.
how I could do it in code behind?
I would like to get the screen dimensions so I can programatically change the size of a form upto these values. I'm new to .Net and things are little different then they used to be in earlier version of VB. How do I do it?
View 3 RepliesI wounder if there is a way to get the values from array's dimensions, without knowing how many dimensions the array has.I know how to do if I know the array's dimensions, but not a clue if I don't
know the array's dimensions.
[Code]...
I have an array that is something like; Product (x,y)
When i try to do;Redim preserve product (a,b)
It gives the error that i can change only the dimension of the right place, but not the left one.
How can redim a 2 dimension array?
i have found the Hwnd for a window and i now wish to get information about this window, the location on the screen of the window and its width and height. Problem is the values i get are not anything near right.
vb.Net
<DllImport("User32.dll")> _
Private Shared Function GetWindowRect(ByVal hWnd As IntPtr, ByRef lpRect As Rect) As Boolean
[Code].....
this returns 0 for height and width and the remaining figures are nearly 0 (1.68E-311) what am i missing and how can i get this information?
open form inside other form
View 3 RepliesPublic Sub LoadFromFile()
Dim sr As New StreamReader("CoverageArea.dat")
Dim strAreaLine As String[code].....
I have a question about that strAreaInfo()...I left the () with no number in it so that it wouldn't have a set # of values, and then I tried to give it 3 values, but I get the error in the title. Am I doing something wrong when I declare it?
is there a way to change the user's screen dimensions. like change to 600x800 resolution
View 3 RepliesI'm reading in an image (jpg) using the code below and I need to check that the image is no bigger than 150 pixels by 150 pixels and is less than 25k, how should I do this?
PictureBox2.Image = Image.FromFile(.FileName)
I wanted to know if u define a dimension in a function or subroutine and that func/sub is called say 5 times, does the memory new block of memory get assigned to it every time the func/sub is run or does it use the one it got assigned the first time?
View 6 RepliesIs there an easy way to get the dimensions in real time of the area of a mdi parent form that is used to display the child forms (i.e. without the tool bars or title bar).
View 1 RepliesI have a webbrowser control, and given a url that points to an image
(Ex: [URL])
How can I get the image dimensions?
I need to dome something like this.
[URL]
I need to run, for example, firefox.exe inside my own form.? I am using Visual Basic 2010. Can you please post the source code for that?
I have an array declared:
[Code]...
This statement works fine in ASP, but when I switch to ASP.Net, it give errors 'ReDim' cannot change the number of dimensions of an array.
the user will pick an image on their hardrive and i will put it on a pdf file using itextsharp with vb.net. how do i manually set the dimensions of the picture?
View 1 Replies