RangeBar Sample Creates Big Red X?
Jul 31, 2009
The sample program for the Chart Control is written in C#. It provides VB snippets but there appears to be a key piece of information missing or at least hidden. Can anyone explain to me what is needed to get the Chart Control working in VB.NET VS2008 Pro?Using the Chart Controls sample, I tried to create a RangeBar. The only thing showing is a big red X across the chart. Here's the code almost exactly as taken from the VB sample:
Private Sub ChartSample()
' Populate series data
chrtTCP.Series.Add("Tasks")
[code]....
View 1 Replies
ADVERTISEMENT
Sep 29, 2010
i already finish this module but while doing 2nd module i notice that my 1st module doesnt work anymore, then i checked my code, i double click the control at design time and thats it instead it brings me to my actual code of that control, it brings me to another event, like this, this is where my original codes are placed:
Code: Private Sub lblSupplier_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub then, after the poblem occurs, the control created another event like this:
Code:Private Sub lblSupplier_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub notice the difference, they are the same click event but the other one has an "_1" at the end of click.
View 1 Replies
Apr 13, 2011
1. Write a Visual Basic Console Application which creates two DateTime objects. One DateTime object should be used to store a value for date purchased. The second DateTime object should be used to store a value for date paid. See below for more information.2. Assign values to the two DateTime objects. See page 197 in your Doke & Williams book for help with this step.3. Use the toString method to display the two DateTime objects. See page 197 in your Doke & Williams book for help with this step.4. Compare the two dates to determine which date occurred first.
[Code]..
View 4 Replies
Jul 17, 2009
Anyone know of a product/solution that creates web forms on the fly? I want to allow my users to create their own web forms.
View 1 Replies
Mar 30, 2012
I have a Car object that does a few things, but I need the program to create New Cars without having to write the code for every new one. Basically, the user checks some combination of Checkboxes and then pushes a button. And I need the program to create a New Car with a unique name for each combination of checked Checkboxes when the button is pushed.
For example, if Checkboxes 1,3,5 were all checked, it would create a New Car that had a different name than the New Car that is created when Checkboxes 1,2,3 are checked.
But I also need the program to be able to check when a New Car has already been assigned to some combination of checkboxes, so that it doesn't create a New Car every time that Checkbox 1,2,3 are checked and instead will use the Car that was already created.
View 8 Replies
Oct 19, 2009
The program runs off a timer that execute the cndstart button every 15 minutes but then it throws out a variable not defined error "oleasMailItem" but if I take the timer out and click the cmdstart button then the application runs fine without errors and I don't know where I went wrong if I add the timer
[code]
Option Explicit
Dim MinCount As Integer
Private Sub cmdstart_Click()
[Code]...
View 1 Replies
Mar 26, 2011
Is there code that creates a button onto the form? The button will not exist until the code is run.
View 1 Replies
Aug 6, 2009
I was thinking about creating a program that creates an .exe file. (I know that that is very difficult but I have 3 days that I'm not sleeping because i'm thinkin about it)The program should create the .exe file on button clickThe created exe should be in Normal Windows State, it should have only a button that doesn't do anything and it's path should be C:UsersAdministratorDesktop
View 4 Replies
Dec 15, 2009
A weird thing just happened. I created a program wich creates folders and now when i want to "save as" an excel document in a folder created by my program this error occurs:[URL].. But this only error occurs if i try to save as an excel document
View 7 Replies
Feb 5, 2010
Converting a C# project to VB.NET, C# projects start off with namespace Foo { in each class. Is it possible to have the same behaviour in VB.NET?
View 1 Replies
Feb 25, 2009
I am using the following code to write and empty (dummy) file to take up the remaining space on a device.RemSpace is a Public Variable declared as Long I have a function that gets the remaining space on the device and stores in the RemSpace variable (in bytes). I have tested with a msgbox to display the result of RemSpace, and it comes back correct (not 0). However, when the following code attempts to create the dummy file, the file is properly created but is only 0 bytes. What am I missing here?
[Code]...
View 10 Replies
Aug 19, 2010
I am trying to catch an error that a directory does not exist. When I don't try for the error checking, this line works just fine:
Dim
xmlFolder()
As
[code].....
View 5 Replies
Dec 3, 2009
I am trying to AVERAGE 6 different fields on a DataTable, but without grouping. Just the AVERAGE. I have found a couple of examples in C#, but can't find any examples for how to do this in VB.Here is what I have so far:
Dim query = From dtRow In dtIn.AsEnumerable _
Where dtRow.Field(Of String)("FOLLOWUP") = "Alert" _
Select New With { _
.Brand_Functional_Avg = XXX.Average(Function(f) f("Brand_Functional")), _
.Brand_Personal_Avg = XXX.Average(Function(f) f("Brand_Personal")) _
}
What should I use for XXX? I tried all of the options that I could think of and nothing is compiling.
Trust me, if I could write this in C#, I would, but the project requires VB.
View 1 Replies
May 22, 2012
I have a treeview with a couple of rows + cells. How do I loop through the treeview so it creates the XML.
<myxml>
<name><%=mytreeview.cells(1).text %></name>
<description>A fixed description</description>
[Code].....
View 9 Replies
Jan 9, 2010
I'm working on a project that will create new windows components. (If this is possible). I have made a button that creates new forms when clicked in the MDI container.Now I'm just wondering if someone can figure out a code to make it so when I click a button it creates a new button on the new created form. [code]
View 37 Replies
Dec 2, 2009
I am attempting to keep user inputs into our application as clean as possible. One way I am attempting to do this is not allowing incorrect data type in fields (not allowing alpha characters when expecting numeric values)I found and implemented the following code:
Private Sub txtSocial_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtSocial.KeyPress
Dim UserKeyPress As Char = e.KeyChar
Dim isKey As Boolean = e.KeyChar.IsDigit(UserKeyPress)
[code]....
View 1 Replies
Nov 2, 2011
I need to create an application that creates Pascal's triangle the user would enter the number of rows, and using the formula (which i do not know... :/) would create the triangle. For example: the user enters 5 rows
triangle:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
as you can see the numbers are created by adding the 2 numbers above it starting with 1 at the top
View 6 Replies
Jan 15, 2012
how can I add a user to a table in a mysql database without datagridview? [code]
View 6 Replies
Sep 28, 2010
I have been thinking about creating an event calendar. I thought through the idea of how i would attempt it, but only came up with one idea; Text files, a folder for each year, and a folder for each month.. when the user creates a new event a text file gets created in: e.g. \2010\Jan\12.txt and if another event is on that same day, the text is added into the same text file. But this leaves lost hopes for my other ideas, since it will get very complicated. Like yearly events, monthly events etc.
View 6 Replies
Mar 15, 2012
code that creates a program where a user can key in 3 coordinate points and when the click "Generate Triangle" button. the program automatically creates the program.
View 5 Replies
May 24, 2009
I've built a dialogbox with a RichTextBox and I'd like to have the following behaviour:
I've got the focus (cursor) in the RichTextBox. When the ENTER key is pressed, then there should be a new line in the rich edit control created. The ENTER should NOT close the dialog box [as it does now :-( ].
View 2 Replies
Jun 11, 2011
I keep getting this error, The requested resource is in use. (Exception from HRESULT: 0x800700AA)how do i fix this
I'm using this script to copy the form
Public Sub CopyFORM(ByVal sTARTLOOP As Integer, ByVal ENDLOOP As Integer, ByVal textinputbox As String)
[code].....
View 3 Replies
Mar 20, 2009
Ive been using this code for a user to pickup a picture box basicly, but if a form exceeds a certain size When you drag the picturebox it will warp around instead of smoothly being dragged, what is causing this?
Dim offset As Point
Dim bDragging As Boolean
Private Sub PictureBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
[code]....
View 2 Replies
Jan 27, 2012
I created an even on a form called Sub New so I can handle some events and close the window down if there is an error.Upon doing that, I came across 3 errors that I don't know how to fix.[code] ShowDialog really isn't necessary I could just use .Show. I want to use ShowDialog because the line under those 3 shows the current form.How do I pass the date to the form?In case it's relavent, my code for sub new on frmEmail.[code]
View 7 Replies
Sep 1, 2009
I created a sample ASP .NET app. I set the location to File System. When I tried to debug it I get an error message: "Internet Explorer cannot display this webpage". I was meant to understand that I can test this app. without Internet Connection. Why is it telling that?Only performance counts!
View 3 Replies
Jul 14, 2011
This is the sample in C#
using System.Web.Script.Serialization;
var jss = new JavaScriptSerializer();
var dict = jss.Deserialize<Dictionary<string,string>>(jsonText);
Console.WriteLine(dict["some_number"]); //outputs 108.541
For I keep getting errors when I try to use an online converter to convert it to vb.net. Does anyone know how to rewrite this in vb.net?
The error I get from [URL] is: line 3 col 1: EOF expected
View 3 Replies
Jun 3, 2009
Is it possible to generate the sample xml(Used as Request xml for web service)from the xsd using vbscript code?
View 4 Replies
Jun 25, 2010
Anybody can tell em where can i get a com+ code sample (if it s ntier, better)?
View 5 Replies
Dec 8, 2009
I have a form that creates an instance of a New Class. The code is simple so there is no issues with the programming.
I can step through the code on the Main Form without issues. Stepping Into moves from 1 line to the next.
I can't seem to debug the code within the class though. I set breakpoints but "stepping into" doesn't work. The code gets executed, but it doesn't step through each instruction.
I've tried changing many of the options within Tools > Debug with no luck.
I've tried deleting files from bindebug and obdebug.
Not being able to debug my programs.
View 6 Replies
May 31, 2012
I have a winform application written with vb2010.I changed the "Language" property of a winform of my application to german, only for testing purpose. I built the application and in my indebug folder it was created a new de folder with the localized resource file "appname.resources.dll". Then I set back the "Language" property to (Default) and "Localizable" to FALSE and built again the application, but the de folder with its appname.resources.dll were created again. I have controlled each form in my application, the My Project setting too,nothing points to any other culture. I deleted the whole debug folder, but after each build, I get always the de subfolder.I cannot understand what is changed in my application now: why does the compiler create a localized resource if I set back the form properties?I repeated the same for a new culture (afrikaans), to discover any changes in the form properties: I found nothing that could help me, but now I get two subfolders.: de and af
View 5 Replies