Starting From A Blank Project?

Jun 3, 2012

I decided to explore deeper into how blank forms and controls are created.I don't know where to start. I'm not expert by any means I believe I just now the basics.I tried and start new project but instead of windows form template I used Blank Project. Added a module and creating sub main.I created a new class and copied few lines from a previous project and it gave me several errors.Brushes, Color, Font, Graphics are not defined. I am not sure if it's correct but when I added System.Drawing Reference and System.Drawing Namespace the errors was removed.Moreover, 'My' is not declared.

I would like to know what basic references and namespaces I need to add.(Note: I tried to add all the referenced and namespaces found when I create a windows form project but the errors was not removed)Moreover, how to create my own form and controls.

View 9 Replies


ADVERTISEMENT

Starting A New Project From A "Blank / Empty Project"?

Jul 4, 2010

What is required to use the "My. (anything)" namespace? i am starting a new project from a "Blank / Empty Project" add a new class

Shared sub main()
my. (anything)
end sub

now, logic says that im missing a reference or import, i have include all the references from a new forms project, so should not have any issues with this. but no.con someone enlighten me on the "My" namespace and what reference is required to use it.

View 5 Replies

Starting A Combobox - Treeview - Checked Project In Vb?

Sep 5, 2009

in making a combobox - treeview - checked in visual basic. I have seen a few examples in c++ but I am unable to convert that code. Nor do I know how to integrate ++ code into my project. So, where do I start? Custom control? Is there a custom control project at startup of visual studio?

View 3 Replies

Starting A Project Through Another Project In VB?

Jun 27, 2012

My notepad program in vb is stored in C:librariesMy DocumentsVisual Studio 2010Projects

otepad
otepadindebug
otepad.exe

And my Tic-Tac-Toe program is stored in C:librariesMy DocumentsVisual Studio 2010ProjectsTic-Tac-ToeTic-Tac-ToeindebugTic-Tac-Toe.exe These are the paths of the applications(the ones which will run when double clicked).Now, I want to create a third project in visual basic. It will have only two buttons. One, to run tic-tac-toe and the other to run notepad. How do I achieve this? That is, how do I make one project run when I click a button on another project?

View 1 Replies

Console Versus Blank Form Project?

Jan 21, 2011

Regarding a console application and VB forum program - In searching XML parsing examples I find several using Console.Write and Console.Write - To show my inexperience I (out of habit going through a couple preliminary examples) I created a new VB project with a blank form - I then copied and pasted the XML example using the console commands Errors - I just found the "create console application"What is the difference between a console application and the project using a blank form? Can the console commands like Console.Write work with a VB form project?If so (#2)What is the advantage in creating a console application - why not just start with a blank form and go?

View 1 Replies

VB - Root Namespace In The Domain Project Is Blank

Feb 10, 2010

I have an VS2008 solution with 2 projects, WebUI and Domain; WebUI references domain. The Root Namespace in the WebUI project is:MyCompany. MyProjectName.WebUI. The Root Namespace in the Domain project is blank. (Namespaces are manually declared for all classes). So everything has been working fine, until I tried to reference a class in Domain via a fully qualified path: [Code]

Does this make any sense? So, then I cleared my WebUI Root Namespace, and voila, the fully qualified declaration then does work. However, doing this then seemed to invalidate the registration of all my user controls on my pages. The only thing that seemed to solve this was in the codebehind of each user control, manually add a namespace of MyCompany.MyProjectName.WebUI. which might make sense as perhaps the namespaces of the pages somehow had still retained the root namespace value. But, if I was to create a brand new aspx page and drop a user control on (this is before manually adding the namespace), even that page couldn't properly register it. Yet, the user control properly rendered in design view. so the VS UI seemed to be able to properly resolve it, but the compiler seemingly can't.

So from what I can tell, I can at least get things to work by manually wrapping user controls in the proper namespace. Why this is necessary for aspx pages, that have no namespace specified, to see the user controls, seems to make no sense. Is there some fundamental principle I am misunderstanding??

View 2 Replies

Compile A Blank Project In .net It Is 15kb With "Enable Optimizations"?

Feb 2, 2009

I am noob to vb.net so be easy , i know in vb6 if you compile your project with p-code instead of native it can make a empty project 12kb, if i compile an blank project in .net it is 15kb with "Enable optimizations" enabled. is there anything else to make projects smaller?

View 3 Replies

In-project Components Fail If Project Is Opened With In-project Component Used On Initially Open Form?

Dec 20, 2010

Public Class ExtendedDateTimePicker Inherits DateTimePicker

View 5 Replies

VS 2008 - Timer - Project A References Project B So Can Open A Large Form In Project B

May 5, 2010

For reasons that are beyond my control, I have three Projects. Projects A and B reference project C. Project A references project B so that it can open a large form in project B. I now need to open that large form from project C, but VB won't allow me to add a reference from C to B because that would create a circular dependency. I found a way around it, though. I created a Timer in A, and when I opened C from A, I passed in that timer. When the user performs a certain action, I enable the Timer from A, and this causes C to open B for me.

View 2 Replies

Include Contact Project Into Another Project / Add More Items To Database / Forms In New Project?

May 6, 2009

I have a project that I have created, it something like a contact database.It is complete with its own sql server database, and controls and forms.I kinda of understand that I can include this project into another project.This is the tricky part,Can I include my contact project into another project and add more items to the database and forms in a new project?What I'm after is like using classes.My contact database would be like the base class, and the new project would be adding more features to that project.

View 10 Replies

Add Project Setup Project For Project For Visual Studio 2008?

Nov 15, 2010

i was developing Voice Chat Application in visual Basic .NET 2008 i try a lot methods to make installer for it :

1- i add Project Setup Project for my Project for Visual Studio 2008 Deploy & setup Type Projects and make it with output option and detect dependices

2- i try make it with Setup Factory 8.2.1

3- i try with MSI Factory 2.0

4 i try with Setup Factory 6.0

and after making installer copying it to my test virtual Machine or my friend lap and install it i get this error when try to run my application :

[Code]...

View 3 Replies

Add A Row Starting From 0:00 To 23:00 Within A Datagridview?

Nov 10, 2009

it possible by coding to add a row starting from 0:00 to 23:00 within a datagridview and colums with names or do i first have to build it within access and then import it in a datagridview.

View 1 Replies

Asp.net - .net Starting A New Session?

Feb 26, 2011

I have a page, a session starts on page load (using global.asax) the user may not move from (or interact with) that page for a long while and I dont want to increase the session timeout. When the session times out after say.. 20 minutes, I want to start a new one, without moving from the page. I also don't want constant keep-alives i want to do it via another method (timer, button press...)

View 1 Replies

Change All ID's Starting From Zero?

Mar 7, 2009

I am using Microsoft.Web.Administration to create NEW websites programatically. How do i change all ID's starting from zero? Currently i have about 100 websites and they are ordered like following:

1, 2, 4, 18, 200, 1234, 232324, 2455344 etc. etc. And i want them ordered like this: 1, 2, 3, 4, 5, 6, 7, ... etc. up to 100.This question doesn't have to refer IIS and the Administration class directly.
I just need to change the id like you change the values into database or array/arraylist or generic list.

Means the value with 1234 should be 6 if six is not already taken or 18 should be 3 etc.

View 12 Replies

Starting Another App As Admin?

Dec 5, 2009

Starting another app as admin?

View 2 Replies

Why Is It Starting ONE Before The First Element

Oct 28, 2009

Dim myDelims As String() = New String() {"<beginning of record>"}
Dim split1 As String() = temp_string.Split(myDelims, StringSplitOptions.None)
For Each s As String In split1
If InStr(s, lot__no) Then

for some reason, the first s in split1 is giving a value of "". there's nothing in it.why is it starting ONE before the first element?

View 1 Replies

.net - Process.Start Not Starting?

May 24, 2011

I'm trying to execute a 3rd party application, called from a .cmd batch file, called from a self-hosted WCF service. Like this:

WCF --> .cmd --> 3rd party app

For whatever reason, using the Shell command doesn't work fully. It will call the .cmd file, but the 3rd party app won't kick off (I know the .cmd is firing because I have before/after ECHO statements populating a log file). If I double-click the .cmd file from explorer, the 3rd party app will start just fine. So, I figured, maybe try something besides the Shell command from my WCF service.

So I tried the following code, but it won't kick off the .cmd file at all (echo statements not firing). What am I missing here?

Dim psi As New ProcessStartInfo("cmd.exe", "/C " & System.Configuration.ConfigurationManager.AppSettings("ExStream_CMD_File_Path"))
Dim proc As New Process()
proc.StartInfo = psi
proc.Start()
proc.WaitForExit()

The path in the app.config file is valid (just double-checked). Is there anything wrong with the above code?

View 1 Replies

.net :: Identifiers Starting With An Integer?

Jan 24, 2011

I have a .net dll and when I add it in the references, it goes without any issue. The problem is that its namespaces start with an integer e.g. 3gppsa5.org.AlarmIRPSystem and when I try to use or import it, the intelliSense doesn't allow and says identifier expected.I don't have the source of this library so I can't change it. I know it is compiled and the Object Browser is correctly showing all of its classes and functions. However, I am unable to use it in my code. Is there any way to use it in VB .NET

View 2 Replies

C# - Why Is Thread Not Starting Immediately

Oct 4, 2010

see below program. I start a new thread x with function abc, then I do some longer task.
Why does x only start after end sub? Shouldn't it start right-away, before sleep ?

[Code]....

View 4 Replies

Can't SetParent After Starting A Process?

Sep 14, 2011

Ok so I've been struggling for a few hours now,

Private tHandle As HandleRef
Private tPlacement As xWinPlacement
Private Sub Mainfrm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles

[code].....

View 4 Replies

Deployment :: Starting One Application From Within Another?

Feb 17, 2010

Basically I've written two Apps (A and B) and all I want to do is put a link on the menu of App A which when clicked will fire-up App B.

Normally what I'd do is something along the lines of...

Shell("C:PathAppName.exe")

However, both of my apps are installed on the target machines via a Setup-Kit generated by the Publish Wizard in VB.NET. As far as I know, after you've run the Setup you don't get an EXE file for the actual application - you just get an 'Application Reference' on the Start Menu and/or Desktop.

My problem is that I don't really understand what the Application Reference is and how my application is actually deployed onto the target machine after setup has finished...

Given that I don't seem to have an EXE file after running Setup, I need another way of telling App A to fire App B, because I'm guessing I can't use my Shell command anymore?

View 2 Replies

Error When Starting My Application

Oct 20, 2010

Unhandled exception has occured in you application. if you click continue, the application will ignore this error attempt to continue. if you click Quit, the application will close immediately Access to path "C:Program FilesRipplEsoftwareMy Product[code]...

View 3 Replies

Monitoring Programs Starting?

Dec 26, 2009

I am trying to create a windows service that sits in the background waiting for programs to be started. When the programs start I want to be able to check a unique bit of information for each program (I believe GUIDs may provide this) to see what the program is. If the program is not allowed, I aim to provide a warning to the user and possibly close the program. The aim of the application is to identify when users are attempting to install additional software on to the computer so simply monitoring for a certain executable wouldn't work as msiexec is called for all MSI's and as I only want to stop blacklisted programs...this wouldnt work

View 1 Replies

Service Created In VB Not Starting

Aug 24, 2010

We have service developed in Visul Basic .NET. This service utilizes some COM objects provided by SAP to access SAP database. This has been working fine till yesterday. On this Sunday, we upgraded the SAP system, and subsequently all other programs were also re-builded using the new DLL files (for the COM object). We tried doing the same for the service also. But it is not starting now. When started, it shows a message saying service terminated unexpectedly. This is probably due to the fact that it is not able to load the requisite DLL file.

View 1 Replies

Starting A New Process (EXE) From A .net Program?

Aug 14, 2010

I am trying to run a new process 9EXE) from a VB.NET program. Basically I am doing something similar to this:

Dim proc As New Process
Dim pi As New ProcessStartInfo
pi.FileName = CMD
pi.Arguments = ARG
pi.UseShellExecute = False

Code]...

View 6 Replies

Starting A Process - Converting From .Net To VB6?

Oct 19, 2010

I need to convert the following VB.Net code into VB6:

Dim app1 As Process = New Process()
With app1.StartInfo
.FileName = msFilePath
.Arguments = "/log=" + logname

[code]....

View 1 Replies

Starting And Stopping A WCF Service

Oct 8, 2009

I have a WCF service, which I can open and close by doing:[code]The problem with this is I have "downtime" of the service in between myService. Close() and newService.Open(). if anyone tries to connect while this is happening it fails. how can I make the "downtime" as small as possibel?

View 12 Replies

Starting App From A Batch File?

Aug 5, 2010

I have written a simple folder backup program which, if started with a /s switch (argument), will run "silently" and perform an unattended backup. The obvious way to start the program with the /s switch is from a batch file, which then runs as a Windows Scheduled Task. I would like to create the batch file from the program itself, when it first runs, as it can then write the value of "Application.ExecutablePath" into the batch file follwed by the /s switch.

So, the question is, where best to save the batch file without running into Vista/Windows 7 permission problems? Is the local application data folder suitable?

Bear in mind there are three parts to this: my vb.net app needs first to create a batch file somewhere without permission issues, that batch file needs to be accessible to Windows Task Scheduler and then, when the batch file is run, it needs to start an .exe which is most likely in the "program files" folder.

View 3 Replies

Starting Location For A Form?

Oct 4, 2008

I'm a bit confused when it comes to setting the start location of a form, relative to another form.I know how to set the start location for a form, however, I have a "main" form, which is behind this form. The main form will be displaying different images, labels, ect. I need the second form to display at the bottom of the main form. The main form's resolution is 800x600, and the bottom form is 800x65. I tried to set the bottom form's location to 0,535, which WOULD make it right at the bottom of the main form, but it seems that it puts it at that location relative to the user's display resolution.So basically, I just need help with getting this form to appear at the bottom of the main form. I read a bit about "containers", but am not sure exactly if they would work for this, and if they did, how exactly I would incorporate them into my situation.

View 2 Replies

Starting Process From Usb Numpad?

Mar 29, 2010

I have a user interface with pushbuttons, each starting a different process. Can I manage these pushbuttons via usb numpad? i.e. if 1 is pressed at numpad, pushbutton 1 will be clicked (so process 1 will start); if 2 is pressed at numpad pushbutton is 2 will be clicked and so on.

View 9 Replies







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