Possible To Remove The Default Namespacing That Creates?

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


ADVERTISEMENT

VS 2008 - Program That Creates And Installs A Registry Key Which Changes Default Drive Icons?

Jan 16, 2011

Basically the problem i have is i have made a program that creates and installs a registry key which changes default drive icons etc.

But registry key directories need double backward slashes in the directories, e.g.

What i recieve;
C:exampleicon.ico

What i need;
C:\example\icon.ico


I was thinking sending the directory i recieve to another textbox and replacing '' with '\'. Is this possible?

View 3 Replies

Remove Default Date For DateTimePicker?

Aug 24, 2009

Is there a way to remove default date for DateTimePicker? It defaults to today's date and I couldn't find a way to remove it. For example - when user pulls up a record and there is no date in the field - it shows today's date which is misleading. We could have the cases when the field is not filled in yet and user might think that it has today's date in it when it's actually Null. Basically I need for date fields to be blank initially. We also have the other date fields that might have dates in it but we'd need to remove the value completely. Again - DateTimePicker doesn't allow it. We tried to use masked field as well but run into the problem where existing values with single month/single day (like 1/1 for example) were converted wrong with MM/dd/yyyy mask.

View 12 Replies

Remove System Default Events?

Aug 5, 2009

I am trying to remove the "System" or "Default" events in a vb .net custom control. i dont want them to appear in the list once added to the form. [code]...

View 3 Replies

Remove Default Namespace For Class Libraries?

Jan 14, 2011

I've wrote a class library in vb. it only has a class called MathEx. Now when i add a reference to a test project, i had to refer to the class as MathEx.MathEx is there anyway i could refer to the class as simply MathEx? (in other words i do not wish to have the default namespace added to my class libraries)

View 1 Replies

User To Select Just Straight To Default Printer With Its Default Settings

Dec 3, 2011

I need to print the contents of 3 textboxs to default printer. what examples I have found dont seem to work. I was trying the documentprint1 component as i thought it would be easy but cant figure out how to tell it what to print the second part is to print a variable (string) to the printer as well.no need for user to select just straight to default printer with its default settings

View 1 Replies

VS 2010 Combobox Default Value - Display The Name Of The Person Who Is Doing The Selection As The Default?

Nov 25, 2011

I have a combobox which contains a sample of names selected from a table.Currently the default name displayed in the box is the 1st name found in the table. What I would like to do is display the name of the person who is doing the selection as the default. The name is stored in a public variable 'PubName' and I do not want the user to be able to type into the combobox themselves.Is this possible?

View 2 Replies

Control Creates Another Same Event?

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

Creates Two DateTime Objects?

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

Product That Creates Web Forms On Fly?

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

Program That Creates New Objects?

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

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

Own Browser Becoming Default/Editing Internet Default Options?

Jun 9, 2012

I am creating my own browser. I want to make an option...to set as the browser to default.To do that I have to:Write a code which opens html(generally internet) file through my browser(form load event) DoneChange the "open with..." of the .html,.xml.... files Problem I want to change the open with event from my web browser. Actually i want an options form which will ask the user "Do you want to set /Browser name/ to be your default browser?" If yes then it will change the default options of the internet files.

View 5 Replies

15 Minute Timer Creates Error

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

Code That Creates A Button Onto Form?

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

Create A Program That Creates An .EXE File?

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

Created A Program Which Creates Folders?

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

Streamwriter Creates File, But Is 0 Bytes?

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

Try...Catch Creates Undeclared Variable?

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

VB Syntax For LINQ Query That Creates A New Set?

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

VS 2010 Loop Through The Treeview So It Creates The XML

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

Button That Creates New Forms When Clicked In MDI Container

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

Checking User Keypresses Creates A Warning?

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

Create An Application That Creates Pascal's Triangle?

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

Create Table When User Creates Account?

Jan 15, 2012

how can I add a user to a table in a mysql database without datagridview? [code]

View 6 Replies

Creates A New Event A Text File Gets Created?

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

Creates A Program Where A User Can Key In 3 Coordinate Points?

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

ENTER Creates A New Line, Rather Than Close The Dialog Box?

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

One Form Which Creates A Number Of Copyof Another, And Getting This Error?

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

VS 2005 : Size Creates Warping Effect?

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







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