Custom Chart Types To List Box?

Nov 14, 2009

Is it possible to add Excel Custom Chart Type names to a list box at run time? That is, Microsoft.Office.Interop.Excel.Chart.XLChartType values to a list box?

View 1 Replies


ADVERTISEMENT

VSTO - Excel Chart, Subtitle For Chart - Access Chart Text Box From Code?

Oct 14, 2011

I have a chart in Excel that I'd like to use a subtitle on. There is no SubTitle Property on the chart object, so I looked in the Excel User interface and found that you can only create a sub-title by using a text box. The text box looks like its associated with the chart, not the worksheet, so how would I access that text box from code?

View 1 Replies

C# - .NET - Custom Types Possible?

Apr 5, 2012

In Delphi you can do something like this :

TArray = array[1..3] of byte;
where you can then declare
T2Array = array[1..3] of TArray

[code].....

View 4 Replies

Converting Types Using Custom Classes?

Sep 16, 2009

I'm studying for the MCTS exam 70-536 and have come across the following question:Given the following Visual Basic code sample, which interface must the custom class MyClass implement?

Dim a As MyClass, b As Boolean
a = 42
' Convert using ToBoolean.
b = Convert.ToBoolean(a)
Console.WriteLine("a = {0}, b = {1}", a.ToString, b.ToString)

Before even looking at the possible answers, I can't get past WHY on earth would we be converting the number 42 to a Boolean value?? I tried this and as I suspected it did NOT compile! Is this a trick question or am I missing something? I realized that in order for the code to work, I would need to implement one of the interfaces shown in the multiple choices. STILL, would there EVER be a purpose for this particular conversion?

View 4 Replies

Pass Custom Types As Parameters?

Mar 23, 2012

I am calling a XML web service (standard web service project based on .NET 3.5) and trying to pass custom types as parameters. The custom types are defined in my consuming code and the web service references an assembly from the consuming code to get access to the types. The serialization is being handled by .NET.

<WebMethod()> _
Public Function MyMethod() As MyType
Dim myValue as new MyType
return myValue
End Function

In my consuming code I created a web reference to the service and the proxy classes were created. I gave the service the namespace "WebService". Next I try to make a call to the service and assign the result from the call to a variable, something like this:

Dim service As New WebService.ServiceNameSoapClient
Dim response As New MyType
response = service.MyMethod()

I get an error from the IDE saying that it cannot convert type mynamespace.WebService.MyType to mynamespace.Entities.MyType. It appears to me that although the types are similar they are being treated as different because of the different namespaces, which makes sense of course.

Edit: So from what I am reading I believe this is by design, that is the proxy types are simply different types and cannot be directly associated with the types in the consuming code.

View 2 Replies

Pass Custom Types Through As Parameters?

Oct 23, 2011

Today, I'm proceeding with my college work, and am having a little trouble. I'm writing a function, but would like to pass custom types through as parameters, for example Function Game(Section as Game_Section) code here End Function I tried using a structure, but it kept giving me errors

View 13 Replies

VS 2010 PropertyGrid, Getting Custom Types?

Sep 28, 2011

I've been following this article:and have everything working.Under the Support for Custom Types section, it introduces a collapsable type for the spell check options. The option are added together to produce a string that is displayed in the grid in the Spell Check Options row. Is it possible to get this string directly from the 'AppSettings' class or do I need to add another property and copy the code from the ConvertTo and ConvertFrom functions?

View 4 Replies

Save One Of Custom Types To The Application Settings?

Mar 9, 2011

(using VB.Net 2008) I am trying to save one of my custom types to the application settings. I've read a variety of opinions on the internet about whether this possible.

When creating an app setting, none of my types appear when browsing. However, previously I needed to save off one of my datasets, and it worked simply by hand-entering it as the setting type (ie, I just typed "MyProjectName.DatasetName"). However, when I try the same trick with another custom type that isn't a dataset, I get a "type was not found" error. So I'm a little confused, can the program "find" some custom types and not others?

View 5 Replies

[Custom Types] Display Value In State Of Data Type Name?

Oct 15, 2009

In visual studio (VB environment), for exemple, with point structure, while debbuging, in state of displaying {system.drawing.point} at the object value, its display the X and Y value.For exemple :

Dim pt as new point(8,9)
A spy on pt will show "{X = 8 Y = 9}"So i want :
Dim cust1 as cust_type1

to display me something differente than "{namespace.cust_type1}"

View 2 Replies

Array Of List Types

Jun 8, 2010

I'm writing a program and currently have 4 lists called Palette1, Palette2, Palette3, Palette4.Each contain 15 list items of Color type.I was hoping to create an array of lists but have been unsuccessfull in doing so.[code]

View 6 Replies

Pass Generic List To A Function That Has A Custom Defined List

Apr 7, 2011

it seems always at this time I cant figure out how to do something maybe it has something to do with lunchtime.

Im having trouble using a method that is defined by an outside company

This is a link to their integration guide:

[URL]

This is their documentation for the class Im trying to use

OrderQueryWebService Class

This class is for SID in particular and is made for use with the notification methods. This is for the Order Query Web Service specifically, allowing clients to return the status of transactions for their merchant, whenever they want to.

Methods
/ <summary>
/ Pass through the variables required and receive a list of Transaction
objects showing transaction status

[Code].....

The MerchantCode, the MerchantUsername, the MerchantPassword are all good the List is a custom type called SetComHash.Transaction

Everytime I try adding a string to the list such as the transactionNumber and some other values it gives me a type error:

"Value of type string cannot be converted to 'SetcomHash.Transaction'

View 13 Replies

Excel Scatterplot Chart From List (Of Decimal) Values - .NET?

May 17, 2012

Is it possible to create a plot from List(Of Decimal) values in Excel with VB? I would like to avoid dumping data directly into a table, then creating the chart from that. Here is what I have so far, but I am getting a data type mismatch when I try to assign .XValues and .Values to the list. Is there some sort of conversion that needs to happen to turn a list into a series?

Dim Series As Excel.Series
Dim xVals As New List(Of Decimal)(New Decimal() {1, 3, 4, 5})
Dim yVals As New List(Of Decimal)(New Decimal() {2, 2, 2, 2})

[code].....

View 2 Replies

List Encryption Types In Program?

Oct 31, 2011

Could any one list the encryption types in Visual Basic.

View 1 Replies

Sql Server - List Of All The SQL Types And Their .NET Mapping?

Nov 27, 2009

I need a list of all the SQL types and their .NET (vb would be preferred, but C# also works for me)equivalent.

View 3 Replies

Generics - List(Of T) - Use It To Hold Items Of Several Types?

Oct 3, 2009

Assuming a base type of "Message"...

[Code]...

I would like to have one collection of Message objects which can be either PhoneMessages or MailMessages, so that I can iterate through the list and deal with each message based on what type it happens to be.

Attempting just to use .Add() fails, saying that I can't add an item of type PhoneMessage to a List(Of Message). Is there some elegant way to accomplish what I'm trying to do? I had thought I could accomplish this with generics, but I think there's a gap in my understanding. If it can be accomplished in .NET 2.0, that would be ideal.

View 4 Replies

Knowing The List The Types Of Components That Are Provided By The .Net?

Jun 23, 2009

I really need to know the list the types of components that are provided by the VB .Net?

View 3 Replies

Link :: Excluding Items From Different List Types?

May 18, 2009

Is there any way to select items in a list that aren't contained in another? For example:list1 = From t In list1 Where Not list2.Contains(t.column1)That gives me the error:Value of type 'Integer' cannot be converted to '<anonymous type>'which makes sense, since list2.Contains is expecting the same type as list2. However, the list types are different. I want only to select based on column comparisons.

View 3 Replies

LINQ Returning List Of Anonymous Types

Mar 11, 2009

Any best approach to what I'm trying to achieve (linq to sql, returning list of data to show in a grid/list etc etc)... Its complaining about anonymous type conversion, and from what I'm reading, thats not elegant way of doing it.

Public Function GetHistory(ByVal historyId As Integer) As List(Of ?????????)
Using dc As New myDataContext(Application.GetConnection)
Return (From t In dc.ActionTypes, a In t.MyTable Where a.HistoryID = historyId Select a.ActionOn, a.ActionBy, t.Description, a.ImpactedItem, a.ActionDescription).ToList
End Using
End Function

View 4 Replies

VS 2010 Custom Type Array / List With Adding Items And Specifying Custom Type Variable

Jun 21, 2011

I recently downloaded VB 2010 Express so i am quite new to the language, but i have worked with dark basic, which seems to b very similar.Anyway, my problem is that i cannot seem to correctly set out my array of a custom type/class. i am trying to create two arrays, one of available entities and another of selected entities of which the user selects the entities to be dealt with in irrelevant ways. i have creates a button (called test) which adds some entities to the available list and all the entities come back the same value but they shouldnt be as you'll c in the code. i have run the step into command a found that "available.item(#).Name = " will change all of the entity's names.As of current i am working with lists as the array kept asking for a 'new' statement but i couldnt figure out where to put it.[code]

View 7 Replies

Vb.net - Convert From Custom List To List Of String

Mar 25, 2010

I have the following code:

[code]...

The intention is to convert an IList of custom objects to a string equivalent comprising each element in the Ilist. Unfortunately I can't seem to find a way to get the underlying data of the custom object, and of course as in the above example, using object simply gives me a string of types definitions, rather than access to the underlying data.

View 2 Replies

Chart Control - Creating Graphs Using Crunched Data Stored In Array List

May 7, 2010

Recently I have learned visual basic 2008 express edition and developed programs for data crunching and analysis. The VB 2008 express edition has microsoft visual studio 2008 v. 9.0.30729.1 SP and .NET Framework version 3.5 SP1. Now I want to create x-Y (date-Y value) graphs using the crunched data stored in an array list simulating a data base access. I download and installed the "Microsoft Chart Control for .NET Framework " and try to learn to use it within the VB 2008 express edition using the tutorial. It seems that the chart control did not get installed?

1. Do I need at VB 2008 professional to allow using the chart control?
2. Why after installing chart control, there is no change on the items under the NET components within the Toolbox>ChooseItem>.
3. How do I get to use the chart control under VB 2008 express edition.
4. Any code available to generate versatile graphics without using the chart control? Because the chart control has tons of classes already it seems the best is to just use the existing and downloadable chart control?

View 8 Replies

C# - From A List<object> , ToString() Them Just When They Are Primitive Types Or Have This Method Overridden??

Feb 15, 2011

Given a list of objects, I'd like to print a string version of them just in case the object.ToString() result is a relevant string.By that I mean I don't want to get things like:

obj.ToString() -> System.Collections.Generic.List`1[MyLib.Dude]
obj.ToString() -> System.Collections.Generic.Dictionary`2[System.Int32,System.DateTime]
obj.ToString() -> System.Byte[]

But I want to get things like:

obj.ToString() -> Hi
obj.ToString() -> 129847.123
obj.ToString() -> Id = 123

What should be the best way to implement this in a method:

Public Sub PrintInterestingStuffOnly(ByVal coolList as Ilist(Of Object))
For Each obj in coolList
'insert solution here

[code].....

View 3 Replies

Get Custom Properties For A Custom Control Into The Visual Studio Properties List?

Nov 25, 2009

What I've done is create a User Control Library (Project) and I've added a single User Control to that project. The control contains a single FlowLayoutPanel, and I created a Property on the control itself to pass the FlowDirection from the Control to its FlowLayoutPanel child.

Build, reference, component appears in the Toolbox and everything works fine, but the property on the control does not appear in the Properties window when I go to edit it at design time.

View 6 Replies

C# - MS Chart Customize Value Label And Draw Line Series Across The Chart Area

Aug 25, 2010

I'd like to get suggestion in both C# and VB.NET I created Chart like the following image:

[Code]....

View 1 Replies

C# - Make XY Scatter-type Plot Chart Using Asp.net Chart Control?

Jul 19, 2010

I have X and Y data columns coming from database.

I have to show scatter plot chart with Linear, Exponential, Log, power using asp.net chart control.

View 1 Replies

Graph - Chart Axes - Connect The Data From The Array And Use It On The Chart

Mar 7, 2011

My requirement is to graph (scatter graph) data from 2 arrays. I can now connect the data from the array and use it on the chart. My question is, how do I set the graph's X- and Y- axes to show consistency in their intervals?

[Code]...

View 1 Replies

VS 2008 Making Chart Form Txt File With Ms Chart Tool?

Mar 23, 2009

I'm trying this example but it doesn't seem to work. It gives a IndexOutOfRangeException:I'm using a txt file where the columns are Tab seperated.)

Imports System.Windows.Forms.DataVisualization.Charting
Imports System.Data
Imports System.Data.OleDb

[code].....

View 6 Replies

Multithreading - Create Custom Objects/list Of Custom Objects In .NET?

Jan 24, 2010

I need two seperate lists, which every item is Integer, String, Bitmap - and one which every item is Integer, String String. However I don't know how to do this, or even where to look - I've googled for custom objects and custom object lists. What I'm trying to do is this.Custom Object1 is Integer, String, Bitmap Custom Object2 is Integer, String, String

In one thread I'll be adding items to List1(Of Object1), and processing them, and adding the results to List2(Of Object2), however I need to be able from other threads to look at the list and say only give me the items where Integer = (my thread ID), is this possible? Any help, or even links to information that would be relevant to this request would be helpful?

View 2 Replies

Dynamically Add And/or Remove Chart Series From WinForm Chart?

Mar 23, 2012

How do I dynamically add or remove a chart series on a WinForm. To date all my MS Charting experience has been dealing with ASP.Net charts with static sql select statment to a SQL Database. In the new project that I have been assigned I have different cities with different amounts of points that they want monitored. One city might have 3 an another might have 5 or 7 so I can't hard code the amount of series that I need. It needs to be set up so the amount of series can be flexible depending on the city selected and then display those points on the chart.

View 4 Replies

Print Data Chart The Resolution Of The Chart Changed

Feb 17, 2012

When i'm tryed to print Data chart the resolution of the chart changed as shown:

View 3 Replies







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