I'm new to VB in Visual Studio 2008 and am just trying out some simple test.I just want to change the Font & Boldness of some text but get the following errorProperty 'Size' is Read onlyI have been browsing the forums and it seems that changing the font size etc isn't as simple as
Why does a Panel control have a Font property? What does it affect? Any controls added to the panel will have their own Font property that controls their appearance, so I don't see the point of the panel control having a Font property, especially since it has no text property.
I'm in the process of converting an old VB6 app to VB 2008. I just discovered the my.settings class. Great way to store user data instead of using the registry (Reminds me of the old days when every app had a config file).Why do I get the error "Property is read only" when trying to write to My.Settings. I copied an example right out of a book and its not working
I created a richtextbox on a form, a button to invoke the font dialog and another one for the color dialog.
Now user can type in any text and change the font size and color. It looks very nice customized on the screen. I saved it as and txt file.
I open the file to read. It is no more as colorful as when I type in. I 'd like to save the file with those customizetion so when the read on the other end will able to see what is important in the message.
The code below does not alter the value of the TextOut Property in the sc object (an instance of SomeClass).But none-the-less the Set routine for TextOut is invoked.There's no other way that the TextChanged flag could become True.But that's what happens when I run the code under VB2010 Express (the only place I have tried it).
Does anyone think that this is not a bug in the compiler?
I know that the problem is related to, maybe caused by, the fact that the first argument to LookAtTextOut ("whatever") is passed ByRef.But I do not see how passing an argument ByRef should result in calling a Property's Set routine when there is no code in the subroutine which changes the argument.[code]....
I'm making a VB .net program to build a word document, depending on some parameters.Now I want to do an input of a text in a table, where a part of the text is in bold and an other part not. In this case "This is my text andthis is my bold text".How can I do that?
I'm having a few problems converting some code into VB.NET from C#. Most of the translating is done, but I am getting errors when I try to run my code, and I can't figure out what is causing them. Here is the Sub I translated.
Public Sub CreateWidget() Dim blue As LCDColor blue.Red = 0 blue.Green = 0
The error I receive on this line ("vision.Widgets.CreateWidget(wg1)") reads "In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user."
start with I was given a program by a friend that was created in Excel 2003 with the help of Visual Basic Editor. He said he used Visual Basic 2003, which he is not 100% sure about. Anyways he used CurLine in the program and when I try to open it in Excel 2007 and then open the Visual Basic Editor and run the program I get the following error:Run-time error '-2147418113 (8000ffff)':Could not get the CurLine property. Unexpected call to method or property access.
got an ErrorProperty access must assign to the property or use its value.Here i attach the code which have an error.In this program i tried to add data into form . I also create button , textbox. i am using visual studio 2005 and sql 2005. i also have attach the imagece
Private Sub btnregister_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnregister.Click admin1.LoginDataSet.staff(Me.NAMETextBox.Text, Me.TELEPHONEMaskedTextBox.Text,
How to change the font color of the column header text in my datagridview if the entire column is read-only. I basically use a loop to add columns to my datagridview and then set the properties of the columns. But for some reason setting the DefaultCellStyle.ForeColor and HeaderCell.Style.ForeColor properties does not work. The header text is still black.[code]...
Well in my vb project it has started giving me a really weird error underlining all my msgbox codes for some reason
this is the error Error 83 Property access must assign to the property or use its value. C:UsersAidanDocumentsVisual Studio 2008ProjectsXeX 360 ModzZ B0XXeX 360 ModzZ B0XForm1.vb 56 17 XeX 360 ModzZ B0X
I have a project that reference from leadtools 16.5, and after that, i want to run my project..i see am error like it " An error occurred creating the form. See Exception.InnerException for details. The error is: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. im using vb 2008 pro
I have a class which contains the object and a collection for that object. I want to make a property readonly to external calls, but allow access to that property from the collection class. I know I can use:[code]But, I want to the PreviousRow property to actually show as "ReadOnly" in the intelisense of the calling code of client app. The above does not. The only way that I see to make it show as "ReadOnly" in the called code is to mark the whole property as ReadOnly, but the problem with this is that my collection class code can no longer access this property:[code]I tried using the "Friend" declaration, but that seems to still allow Write access to the calling code.I only want write access from within the RowCollection class.
Let's say we have a class, let's call it CLS_Object for simplicity. Now, suppose CLS_Object has 2 public properties, "Name" as String and "Value" as String. These have both read/write methods into the properties.
Now let's go to a seperate class, let's say CLS_Example. Let's create this variable:
Public _OBJ_Object as New CLS_Object
Now, let's create a property, called PROP_Object that is READ ONLY...
Public ReadOnly Property PROP_Object As CLS_Object
If we allow that to return _OBJ_Object, the user can the also SET VALUES to that object. In the context of "well, the property is returning the object and you are writing to the object, not the property", I understand this behavior. But it means you can write to a read-only object of sorts.
Is it possible to read a label's text property of another app? I know how to get the handle of the main window, and how to get the handle for a child. But the problem is that there's like 20 other labels on the window and when I use winID to get it's class, it's just "Edit", and it's the same for all the labels. And the title is the value of the labels text property. [URL]
I have a class with many properties to which I need to assign values.I have another class with a sorted list of data from which the assignments are to be made. Is there a way to get the names properties from a class and refer to those properties?I looked through System.Reflection.Assembly but could not find a way to do it.
Class DataMngr Sub ManageData() Dim sl As SortedList(Of String, Double) sl = GetData()
I'm struggling a bit with Entity Framework 4.x. Let's say I have a model called Product. It was generated from a database table. There is a field in this entity called CreatedDate. The MySQL database has a default value for the current timestamp. I don't want Entity Framework to set this field when inserting or update the table. Problem is, I can't seem to figure out how to tell EF to exclude this field from being sent back to the database, but still retain it as a field to be viewable in the application.
On a given application form, I have around 20 controls that I need to set in the main form. I have a separate thread that only needs to ready some properties from the controls on the application form It will never try to write to the form's controls.
I can't change change the font size or font name or color of the text in the DHTML Editing Control. I have 2 listbox controls FontNameList containing all of the installed fonts on my PC and FontSizeList containing some numbers to be used as fontsize and I use the execommand and build my App but the font did not change instead it grew bigger but when I tryed to change it back it stayed the same. The Code for that was:
I am creating an excel report from vb.net. Now it works. But i realize that the apparent does not make sense. I just want enlarge some font size and change font name plus setting up the page to fit my receipt printer (Epson TM-T88IV).
I have a form with about 48 checkboxes.I have a public sub that reads a webpage, parse the text of that site to get the values that correspond to these checkboxes.For example: one of the lines would be: "Exterior = 255", or "Street = 0".I do have check boxes that called "Exterior" and "Street". the question is how I can get my sub to address the appropriate control so I can set its "checked" property based on the text read.
Can any one tell me how to read or write the control property values that has been saved as ocx state value in the XML? I have some controls. I am assigning a property values for that controls and it is saving as binary64 format. I need to automatically assign property values in the binary64 format in xml.
everything tests well but when I evoke the function the dialog values default to selections other than what the text was originally/last set to (e.g., color, font, size, etc. in the dialog/menu is not what is shown in my rich text box).how I can set the above values per the text being recalled in the RTB? That is, in the above scenario if I hit the cancel button I lose the original text formatting.
Public Class frmComment Private Sub FontDialog1_Apply(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FontDialog1.Apply If Not RichTextBoxPrintCtrl1.SelectionFont Is Nothing Then
I am trying to make a program that basicly, on the click of a button, removes a font from the windows font list (Un-installs it) Is there a way to do this using VB.NET (2010)The reason I want to do this is to make a program to remove the 'Comic Sans MC' font from all computers I use my pendrive on?