Unable To Use ScaleHeight And ScaleWidth
Jul 25, 2011
I dug out some ancient VB4 code I still have. There use to be properties known as ScaleHeight and ScaleWidth. What happened to these properties? These properties were great for knowing the interior size of a component since ScaleHeight and ScaleWidth were not always the same as Height and Width of the component.
Since they seem to no longer exist, how do I find the maximum interior size of a component within another component within a form. I want to set the size of a component, mainly Tab Pages, to fill the interior of a form while staying inside the form. Then inside the Tab Pages, I would like to know the maximum width and height of a picture box without its dimensions actually going outside the interior size of the Tab Page.
View 4 Replies
ADVERTISEMENT
Mar 25, 2006
I am trying to do the following...
VB
TextBox1.Left = 15
Me.Width = TextBox1.Right + 15
But the padding (of 15) is not the same on both sides. It seems like I need to be dealing with the VB6 equivalent of ScaleWidth.
View 7 Replies
Jan 2, 2010
I have a property which is an array of items but when I come to add an item to the array it says I must use the new keyword, but I can't use a new keyboard with a property.
(item is a custom class)
Private itemsvalue As item()
Public Property Items() As item()
Get
[Code].....
how I can add the xx item to the array of items.
View 3 Replies
Jul 25, 2010
Theres no error that is stroked with red but when i try draging a icon i just dont work ::(
heres the code:
Imports System.Runtime.InteropServices
Imports System.IO
Public Class Form1
Public rowz = 50
[code].....
View 4 Replies
Nov 2, 2009
I have a form that is first displayed as 425 x 66. When you press a button, the form expands to 425 x 398 and a message appears (a label prooperty) with the text: Processing Files. When the files are finished prosessing, a listbox appears and summarizes which records were added to the database.
The label begins as Not Visible. After I change the size of the form, I change the label property to Visible.
This used to work, but now, for some reason, the text simply doesn't appear.
I tried changing the lblproperty to Visible at startup but when I do this I get a black bar where my lable should appear.
View 2 Replies
Dec 30, 2010
I've migrated a VB6 Windows based system into VB.NET (version 2008) thru the use of wizard. I'm able to run the program and generate ralated reports at the development PC BUT when I installed it on a server, the system seems not runing at all (no report being generated) and without any error. I tried to install it at another 2 different servers and having the same result...no report being generated and without any error.When I installed it at a PC (NOT server), the system able to generate reports.
[Code]...
View 2 Replies
Oct 23, 2011
I am trying to add a Handler, but it do not work. what am I missing? I getting this error.
Dim EditingTextBox As New TextBox
Dim Save_Button As New Button
Dim Cancel_Button As New Button
Private Sub Labels_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
[code]....
View 5 Replies
Jun 29, 2009
I have a form with several listviews. 1 master with two columns and 10 other all with two columns. I have been able to do a drop from 1 to the others and among the others. I want to move the second column around also. I can't read the subite.
[Code]...
View 1 Replies
Jul 1, 2010
I'm passing some values to another site to get the values from it.below mentioned is the code which I used in VB.NET
Dim status As
String
Dim strHTML As String
Dim xml = xml.open("GET", "http://www.xyz.com", True)
xml.send()
[Code]...
View 1 Replies
Dec 27, 2011
I'm running a 32-bit vista home, and I'm trying to instal Visual Basic 6.0 Enterprise Edition, but I seem to be having problems.
View 1 Replies
Mar 20, 2010
I am developing a project that is dealing with CCTV camera made in china. I am provided by some DLLs from the company. Now i want to consume that dll into my application. I have tried default Visual studio's ADD REFERENCE features. then I have tried tlbimp.exe but it doesn't work.[URL]..I have search a lot about dll, some says "Check the dll header" and CLI Header. I opened this fine in notepad and I found only like "This will not work in DOS mode...". what to do next. Is there any way I can consume this file in .net.
I have already tried to add it as reference in Visual Studio 6.0 VB. even it says this is not a valis library.
Still dumpbin.exe is listing the function inside that dll.
I am confused about this scenario. Please guide me what to do with thi.
View 1 Replies
Aug 10, 2011
I am trying to create a Windows Forms control in VB.Net to wrap around a control in an old DLL I created in VC++ 6. I am trying to make a call to an API entry in my control:
Code:
<DllImport("myctrl.dll")> _
Protected Shared Function InitMyControl() As Boolean
End Function
However, when I add a call to InitMyControl to my control's code and try to load the form on the test project, the following error shows up:
Quote:
Unable to load DLL 'myctrl.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I have tried putting a copy of myctrl.dll into the Debug and Release folders of both the control library and the test project, but I continue to get the error. I even copied it to my WindowsSystem32 folder, but still no luck.
View 7 Replies
Dec 15, 2009
I have a program that I have written using 2005 and .Net Framework 2 SP2. I went ahead and created the snk file placed it in a shared folder on the same server that I will be running the app from. In my AssemblyInfo file I added point to where the snk file is located as follows.
View 7 Replies
Aug 7, 2009
I have a problem on sending sms which it only send only one letter to the receiver. For example, I have sent the word "Hello" and the receiver only receive "H". I am using the serial port to send the sms.[code]....
View 11 Replies
Dec 2, 2010
I have a Form class with a property defined as[code]...
View 4 Replies
Jun 19, 2011
I'm accessing a router using Webbrowser, to get some information from it.After logging into the main page, you click on a link which runs a script to display the info you want. I can do this OK in Firefox or Internet Explorer.In my VB program, having navigated successfully to the router's main page, I try to do this by using InvokeMember ("click") on the appropriate link element in the document and get this error in the script that runs:
"Unable to set the value of the property 'location': value is null or undefined".I don't know how to see the source code of this script, so any ideas on what the error may mean?When I hover over the link in Firefox, the status bar shows it as: javascript:MainFunction('./cgi-bin/v2x00.cgi?fid=168')
View 2 Replies
Sep 11, 2010
I was dabbling in pure Word VBA here and it occured to me that mixing the 'Set'-lessness of .NET with VBA might be confusing to programmers doing .NET Automation. Beyond that, the ambiguity example for Set here (near the bottom of the page) didn't seem to apply to the reason I had to correct the OPs code to include it. Further amusement came from reading some comments by one of the architects of VB here.
View 5 Replies
May 23, 2010
I have written an application that uses a DataGridView to display 740 rows, there are currently around 25 columns in my list. Have noticed in Win 7 64 bit that when I scroll the final row repeats, say 20 times, before it refreshes, its as if the display of my laptop cant keep up. Now this is a brand new Dell XPS i7 lappy with Radeon 4670 graphics so that should be fine.Also, the rows in the DGV seem to flicker a little, like it is constantly trying to refresh.My DGV works fine on Win XP.
View 1 Replies
Jul 13, 2011
I am trying to use a 3rd-party Interop assembly called SmartWIM.
I have added it as a reference and added an Import statement
Imports SmartWIMLib
I then initilalise it with
Dim objSmartWim As New SmartWIM
All pretty standard stuff, I've done this countless times with Interops. However, whenever I try and use any methods I get the following error [code]...
View 3 Replies
Oct 2, 2010
just downloaded ObjectListView. After adding the dll file when the objectListView is placed on my vb.net form it shows an error Type 'BrightIdeasSoftware.ObjectListView' is not defined.
View 6 Replies
Mar 22, 2012
I face a problem with some strings They are coming from a database so no question why are like that the strings are like that:
"Some_text_here %0%,%1%,%2%"
"Some_text_here %2%, %1%, %3%"
"Some_text_here ,,,%2%,%1%,%2%"
"Some_text_here %0%"
"Some_text_here %0%%1%%2%"
What I want to take is an array like that
[0][1][3]
[2][1][3]
[ ][ ][ ][2][1][2]
[0]
etc.
My code can catch everything except the last one ("Some_text_here %0%%1%%2%")
CODE:
Dim intPos As Integer
Dim strParams() As String
Dim strParamsTrimmed() As String
[code].....
View 2 Replies
May 17, 2010
I want use stylesheet in vb
View 2 Replies
Nov 19, 2010
for some reson stream reader is failing, i have made a simple program that creates opens and edits files but the open, save as is not working for some reson here is my code:
open:
Private Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click
Dim ofd As New OpenFileDialog
Dim fl As String
ofd.ShowDialog()
[code]....
View 9 Replies
Dec 17, 2009
I am trying to check this app. and make sure only numbers are placed into the textbox, but my tryparse isn't working.
Private Sub btnConvertC_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConvertC.Click
Dim intTemp As Integer 'holds the text input
If Integer.TryParse(txtTemp.Text, intTemp) Then
[code].....
View 4 Replies
Apr 12, 2012
I'm having some problems writing a sub. Below are some screen prints I made a on screen keyboard using all labels This app. is for a touch screen. The first pic is the code for all 40 labels using the If Then statement.(Screen print is for Label2 only). Second pic is the Sub I wrote so when you click on anyone of the labels, the labels text appears in the textbox with focus. As you can see the error I keep getting.
View 5 Replies
Apr 15, 2010
Is there a good example on using C# with vb.net 2008 or above. I am looking for the simplest example. A class library I would be able to write with C# and use from vb.net. Probably a .dll I would imagine.
Could someone recommend some search strings for this forum I can try? I am looking for the shortest simplest example.
View 6 Replies
Sep 4, 2009
I'm trying to add a reference to the LAME MP3 encoder in my VB.Net (3.5) App.The DLL I'm using (lame_enc.dll v3.98.2) was downloaded from here:[URL]When I try to add the DLL reference to my project, I get an error:"A reference to C:\Lame_Enc.dll could not be added. make sure this file is accessible and that it is a valid assembly or COM component" I would just assume this was a corrupt download/similar but...
The archive passed an integrity test in WinRAR I tried re-downloading it JIC Next thought - the DLL is b0rked but...I've tried the SDK tools "genasm"(3.5) and "TlbExp"(2.0) and both say it's not a valid DLL.Previously when I've added non-.Net DLLs, VS has created an INTEROP Class for me. I'd ideally like to achieve similar with this DLL.
View 3 Replies
Feb 23, 2012
I have created a visual basic class library named dataLibrary and have added it as a reference in a visual studio tools for application program in infopath 2007, and imported it.
Now when I try using a class defined in the library, I get the following error:"Unable to emit assembly: Referenced assembly 'dataLibrary' does not have a strong name"
View 1 Replies
Nov 14, 2011
I have loop to create a column of button and now i wish to implemented the eventhandler into all the buttons but is not working. The iteration to create a column of button
[code]...
Most of the solutions were built using C# with silverlight and they seem to be working great. While i having problem by using VB.NET with silverlight
View 1 Replies
May 14, 2009
I have created reports using Crystal Reports in my asp.net application(vb). It was fine. But when I run it in another system, the report loading fails. So I modified my code like this.
sub Loadreport()
try
Dim sreport as new ReportDocument
sreport.Load(Server.MapPath("ClientList.rpt"))
[code]....
When the control comes to the line:-
sreport.Load(Server.MapPath("ClientList.rpt"))
it jumps to the catch block showing "Invalid Report path". But initially, the code was not showing any error. I haven't changed the path.
View 1 Replies