Defining Own Pen Colors?

Oct 2, 2009

Am I just limited to the VB pen colors, e.g color.orange, color.black etc or can I define my own rgb colors? If so, how do I do that?

View 4 Replies


ADVERTISEMENT

Defining Specific Custom Colors That Will Appear In The Colordialog?

Aug 6, 2009

is it possible in winforms, vb.net, to define the specific custom colors that will appear in the custom color boxes in colordialog?

View 3 Replies

Defining Something As A Class

Jul 17, 2009

I have .cls files that have attributes for XML files, and i would like to refer to them in the main body of my code without having to define each one as a class in the code as this would be writing them twice. How can i refer to a .cls file in a vb.net form? If you're not living on the edge, you're taking up too much room

View 5 Replies

Defining An Interface Like Idispose

Nov 10, 2009

I would like to define an interface in the same manner as IDispose. By this I mean that when the interface is implemented it would add functional code.

For example when IDispose is implemented it adds a fully defined Dispose method rather than just an empty sub routine.

View 4 Replies

Defining C# Enums With Descriptions

Jan 27, 2010

What would the folowing VB.NET enum definition look like in C#? [code]

View 7 Replies

Defining Controls From A Different Class?

Sep 16, 2009

How do I define the controls from another class? Here is my code (highlighted) -

Imports System.Windows.Forms
Namespace Bryanlgh.Echo.Views
Namespace Bryanlgh.Core.Tasks

[Code]....

I also tried using Imports Bryanlgh.Echo.Views instead of Namespace and it also came up with 3 error messages -

1. Namespace or type specified in the Imports ' Bryanlgh.Echo.Views' doesn�t contain a public member or cannot be found.

2. Name 'cboPcpMd is not declared.

3. Name 'cboPhysicianPerforming' is not declared

How should I define these controls?

View 2 Replies

Defining Different Datasource For Dropdown?

Jan 22, 2010

I have a dropdown where the items initially are filtered (using a SQL Datasource) based on the selection of another dropdown; however, I have included a checkbox where if checked, the dropdown needs to populate with all data from another datasource How do I programatically remove a datasource that is bound to a control and then define another?

I have the following code, but it errors:
If cbOverrideArea.Checked Then
Me.ddArea.Items.Clear()

[code].....

View 3 Replies

Defining Ranges For Excel In .NET?

Jun 21, 2010

I am using Excel interop in my VB.NET program. My problem is that I can't seem to figure out how to write to Excel *and* define the Range using numbers.Alright, so I have objects being created depending on the file that the user opens. So there could be 100 objects or there could be none. Now each object has an array of values, and these arrays contain nearly 15000 elements. So here is what I want to do but I can't figure out how to escape using the LetterNumber:LetterNumber combination.

For every object I want a new column to be occupied and for every element in the objects array I want the row to be occupied. I figured the easiest way to do this was using a for loop but, again, I can't use numbers.

For columns = 0 to NumberOfObjects
For rows = 0 to NumberInArray
Cell(0,0).Value = myObjectsCollection(column).Array(rows)
Next
Next

View 3 Replies

Defining Ranges For Excel?

Aug 10, 2010

I am using Excel interop in my VB.NET program. My problem is that I can't seem to figure out how to write to Excel and define the Range using numbers.

Alright, so I have objects being created depending on the file that the user opens. So there could be 100 objects or there could be none. Now each object has an array of values, and these arrays contain nearly 15000 elements. So here is what I want to do but I can't figure out how to escape using the LetterNumber:LetterNumber combination.

For every object I want a new column to be occupied and for every element in the objects array I want the row to be occupied. I figured the easiest way to do this was using a for loop but, again, I can't use numbers.

For columns = 0 to NumberOfObjects
For rows = 0 to NumberInArray
Cell(rows , columns).Value = myObjectsCollection(column).Array(rows)
Next
Next

View 1 Replies

Defining Relationship Between Tables?

Dec 15, 2011

How do we create relation ships between tables using a sql query?im using MS Access and VB.net.

View 2 Replies

Defining Types In Declarations

Jun 1, 2010

I used to do this is VB6:

Type Record
A As Long
B As String
End Type
Dim Rec As Record

When I keyed in "Type" in my declarations, I was asked to change it to "Structure". After that, I was not able to define anything inside. So, what do I need to do?

View 36 Replies

Defining A Name For A Variable Range Size?

Feb 18, 2012

I have to define a name for a varying-length column of cells. The name is used later to define the range for a Data Validation List. I just cannot figure out (and the Help Function isn't assisting) how to define the Name, say "DropOrdNum" using a variable as the address for the last cell in the range. It is easy to define a name for "O13:O2000" - no problem, but then I have a whole lot of blanks in my drop-down list. But how do I define a name for "O13:LastCell", by making "LastCell" the Range Variable (am I correct in this) for the address of the last cell in the active range and then defining the name "DropOrdNum" as being the range "O13" to either "O(the row number of the last cell)" or "LastCell", being the address of the last cell in the active range, which varies by the hour?

View 2 Replies

Defining Arrays And Alloocating Data To Them

Jan 29, 2011

I know you can dimention a variable and assign data to it at the same time using dim a() [1,2,3,4,5,6,7}but how can you do this with multiple arrays.is it something like [code]

View 4 Replies

Defining Implicit Casting Operators?

Aug 21, 2009

In C# you can use the implicit keyword to define an implicit user-defined type conversion operator.In VB.NET you can define a CType conversion operator that will explicitly convert a user-defined type into another type.Is there a way to declare an implicit conversion operator in VB.NET?

View 1 Replies

Defining More Than One Variable In A Vb2005 For Loop

May 14, 2009

Is it possible to define two variables in a vb2005 For loop in a similar way that jscript does it?

the javascript example is

for(i=0,l=0;i<20;i++){}

View 1 Replies

Defining One Event For Multiple Fields?

Apr 3, 2010

The below sub-procedure isn't working like I expect it to. Basically, I have 9 fields on a tab control. When a user clicks in one of the fields, I wish for the field to "SelectAll" if their is a value already in the field. As you can see, the way I have it structured...only 1 field will do this, however, even this is not working.

Private Sub txtAddr1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtAddr1.Click, txtAddr2.Click, _
txtAddr3.Click, txtCity.Click, _
cmbState.Click, txtZip.Click, _

[code]....

View 6 Replies

Side Of Defining Extension Method?

Dec 16, 2011

I've got a bunch of duplicate code that looks like this:If mValue is Nothing Return ""Return mValue.ToUpper

I defined the following extension method to reduce duplicate code:

[Code]...

View 3 Replies

Using MembershipProvider In WinForms Without Defining App.Config?

Jan 27, 2011

How can I use a MembershipProvider in a Winforms application without defining ConnectionStrings, Membership and RoleManager sections in app.config but creating instead all needed objects and configuration settings at runtime?

View 1 Replies

VS 2008 Defining Words In A Program?

Oct 28, 2009

So my latest project focuses on sending txt commands over from my cell phone to my email, which gets read by a program, that carries out the specified command. My latest command i want to implement, is being able to define words, and have it send me a txt back with the definition. Now I know how to send texts, and all of that stuff, but I have found it hard to find anything on defining words. At first, i tried to read websites, and simple redirect a webpage to google definitions, but that led me nowhere.

View 1 Replies

VS 2010 Defining A Property As A Dictionary?

Sep 29, 2011

I am trying to create a property and declare it as a dictionary. This property will be updated and called upon throughout my project. I may be complicating the issue but here is what I have...

vb.net
Private Shared m_ItemName As Dictionary(Of Integer, String)
Public Shared Property ItemName(ByVal Tkey As Integer, Tvalue As String) As Dictionary(Of Integer, String)
Get

[code]....

What I wish to do with the dictionary is to keep a record of the amount of items selected, the Key will be the Integer in the dictionary and will be the ID of that item in a database while the String will be the name of the item matched to that ID in the database.The user will be allowed to enter up to no more than 10 items at a time (overkill but necessary for the unknown).I was originally going to use an array statically declared allowing up to 10 items (eg. Private Shared m_ItemName(,) As String = New String(9,9) {})

View 14 Replies

What Is Attribute And What Is Its Use While Defining Functions,Sub Or Class

Sep 3, 2010

i am comfortable with class, namespace ,Sub ,Function ,Properties ...and so on. i studied about Custom Controls and Extension methods. There i found something new so called Attribute that are placed before classes and Functions definitions.[code...]

View 4 Replies

.Net- Avoid Closures When Defining Lambda Functions?

May 17, 2012

In vb.net, this is serializable:

<Serializable()>
Class FunctionHolder
Private _F As Func(Of Double, Double)

[code].....

View 1 Replies

Creating Datatable By Code Without Defining Dataset?

Dec 15, 2011

I have connected my sql db with vb and I m trying to make a UI. My question is that when I write code in order to create datatables and I fill them with the results of queries I've created, where do these datatables belong? I'm wondering if I have to define a new dataset or do they belong to the existed dataset which is created by the dataset configuration wizard??

View 3 Replies

Defining Interface With Restrictions As To What Classes Can Implement It

Nov 30, 2010

How do I limit an Interface when defining it? What is the correct technical term for what I am describing?For example, I want MyInterface to only be implemented for objects that implement IList(Of T) and ICollection(Of T).

View 5 Replies

Defining Items In Array And Adding A Counter

May 12, 2012

I am working on a project right now which requires the program to read names from a text file and add those names to a list box(after the program is launched). After they are added to the list box, the user is suppose to vote on the items in the listbox(each click of the vote button should add a +1 to the counter for that name selected). So far I have been able to bring items from the text file into the list box, but am unable to set up the voting system.

View 1 Replies

Defining Path To Executable For A Custom Control?

Jul 30, 2010

I have created a custom control using VB.NET in Visual Studio 2008 that gives extensive mapping and tracking functionality to a search and rescue app. The problem I am having is that in a number of places I need to define the path to the main applications executable in order to find a number of directories the control needs to function properly. Everything works fine when I am using it in VS but when I try to embed the control in a form in a separate solution I get the following error:

Failed to create component
'MainControl'. The error message
follows:

[Cod]....

This seems to indicate that it is looking for the GISDataDefault directory in the Visual Studio program path but I have used Application.StartupPath to define this location throughout the control.

This error only occurs when attempting to embed the control in a form outside of the controls solution. The solution I have created to develop this control has two projects (one for the control and one for a test form to do the debuging)

View 1 Replies

DrawImage And Defining Color To Copy Instead Of Mask?

Feb 7, 2012

I am using VB 2008 & drawimage function to copy image A to Image B. My problem is image A has many different colored patches on it and I only want to copy the ones that have a certain RGB value. I was going to set the masking color to the RGB value but remembered that defines the color to ignore - Im interested in the opposite.

I know I could loop through all the pixels and check its color, but its way slow and Im hoping theres something better?

View 2 Replies

Http - Defining A Variable As A Url In A Page Source?

Apr 27, 2011

Im writing a program in VB.net that consists of three main steps:STEP 1: Display the source code of a webpage that is streaming a movie on it in textbox1.STEP 2: highlight the URL to that movie in the source code, and then display just the URL in textbox3.STEP 3: Download that movie using HttpWebRequest and HttpWebResponse to a user defined directoryThe problem is that i dont know how i would go about extracting the URL from the source code effectively. maybe i could try searching the source code for the string ".mp4" or ".avi" or other video extensions, but that would only find the end of the link, how would i highlight the whole link?

View 2 Replies

Instead Of Defining The Points In Series Collection Editor?

Apr 29, 2012

Instead of defining the Points in Series Collection Editor, can I define them from textboxes, numeric up down or something like that?

Example: Having a numeric up down, the number I put there appears as Y value for a X value that never changes, even when I change the numeric up down value.

View 15 Replies

Stopwatch And Monitors - Defining Program Parameters

Aug 13, 2011

If at all possible, how can my app detect the number, physical location, and size/resolution of monitors in use so as to define the program's parameters? Secondly, I have created a stopwatch variable ("Count"). I can't seem to get it to function properly unless using full seconds. In the following code, I have tried to use a fraction of a second (like .5) and using "count.elapsed.milliseconds = 500" and the program doesn't act like the code is even there...

Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If count.Elapsed.Seconds = 1 Then
Run()
End If
End Sub

View 15 Replies







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