Using Custom User DLL's In .NET 2010 Project?

Sep 21, 2010

I have a dll I created using VS 2008. I was able to add a reference to it in all my VB.NET projects built in VS 2008 with no issues. I added a reference...added an import statement....created a reference in my code and viola! All is good. I recently switched to VS 2010 and tried to re-use my trusty dll file in my new vb.net 2010 projects and all is good until I try to build and/or run the project. I get the following error whenever I try to do either...

'Type 'CustomFunctionsClass2010.CustomFunctions2010' is not defined.'I have tried all sorts of things from rebuilding the dll from scratch in the new VS 2010 IDE to changing where the file is stored on the network to placing the dll on my local drive and nothing seems to get me past this error. I even tried placing the dll in both the debug and release folders with no luck or change in the error shown. Am I stuck just not being able to write and use my own dll's?Here is a snippet showing how I am using it in

Imports CustomFunctionsClass2010.CustomFunctions2010
Public Class GetShowTimeData
Sub GetShowTimeData(ByVal dtStartDate As Date, ByVal dtEndDate As Date)

[code].....

View 9 Replies


ADVERTISEMENT

VS 2008 Add A Custom User Control To A Form Or Project

Mar 19, 2009

I'm coming over from VB6 in which you could use 'user controls' to create reusuable custom controls. They were simple and contained and you can easily create several instances of a user control within the same or other apps. In vb2008 there are user controls but I can not figure out how to add them to forms or or other apps. Can someone please give me the the basic steps to add a custom user control to a form or project.

View 6 Replies

VS 2010 Creating A Custom User Control, Don't Know Where To Start?

Oct 26, 2011

I figured it out. Check out the finished control [URL]..I'm trying to make myself a simple 'star rating' control.

It would have the properties:
StarCount (number of stars)
StarValue (number of stars highlighted)

I want to draw the stars using GDI+, have them highlight on mouse over, and change the StarValue when clicked.I have an idea on how to do this from experience with working with forms, but I'm having some difficulties with the Control development part. I couldn't find any tutorials which didn't inherit a control (such as a checkbox or button), and I have no idea how to make my control editable in the designer.

I think what I need to do is create StarCount as a property like this:

[Code]...

I also want to execute my drawing code at design time, so I can see the stars while laying out a form. as a side note to that, I don't know how to change the size of the control at run or design time, nor how to disable the user from changing it at design time.as a side note - I know that there are a few star rate controls already floating around the internet, but I do not like the quality of them (or at least the one's I've seen), they felt very windows 98. I'm trying to make something that will fit well into windows 7 (plus I want to implement custom images, but that can wait until I get it working)

View 6 Replies

Custom User Controls - Correct Size With User Choice

Sep 27, 2011

I have some custom user controls in my .net winforms program that do not display correctly when the user has selected larger text size. This setting:

My controls look like this:
Instead of like this:

The bill to area and ship to area are both custom controls. I don't know if this is contributing to the problem but I do have code in each to scale the phone/fax areas to stretch nicely, like this code from the bill to control,

Private Sub panFaxPhone_Resize(sender As Object, e As System.EventArgs) Handles panFaxPhone.Resize
panFax.Width = (panFaxPhone.Width / 2) - 1
panPhone.Width = (panFaxPhone.Width / 2) - 1
panFax.Left = panFaxPhone.Width - panFax.Width
End Sub

How can I get my controls to size correctly while still respecting the users choice for larger text (I don't want to just set the AutoScaleMode to None)? After playing with this for a long time it seems to be a problem with anchors in the child controls. See this below image, the inner black box is the control with its border turned on, the text boxes (like name) are anchored left and right and should stretch to fill the control, but don't.

View 1 Replies

Creating Custom Events In Project?

Sep 28, 2009

I am working on a project that has some events already created and working. One of these events is called SelectedIndexChanged Event. I am using it for one of my Subs in my frmNewInspection Class, and I am trying to use it for a second Sub and it says that "Event SelectedIndexChanged Cannot Be Found".

The event is created here in a class called LabelComoBox
Private Sub tctlInspection_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles tctlInspection.SelectedIndexChanged
'MsgBox("Index: " & tctlInspection.SelectedIndex.ToString)
[Code] .....

View 11 Replies

How To Add Custom Action In C# Setup Project

Sep 20, 2009

How to add a custom action in C# setup project as creating a database in sql server by making selection of local or remote server during installation?

View 5 Replies

VS 2008 - How To Add Custom TabControl To Project

Aug 5, 2010

I'm just not able to add a custom TabControl to my project. I have found a custom tabControl here: [URL]. The CustomTab consists out of 4 .vb files. Normally I would add a component (.dll or exe) to my project. I tried adding the 4 .vb files but unfortunately no CustomTabControl.

View 3 Replies

Create A New Project Some Custom Values Stay The Same?

Sep 29, 2011

As you can see thats a properties window for an object, but is there a way to customize the properties, so that everytime I create a new project some custom values stay the same?

View 4 Replies

Deployment :: Project Output In Custom Location?

Sep 1, 2009

im still fairly new to this. i have written a program, built it and created my setup project and can install it no problems, however, in the "setup view" where you have the threefolders "Application folder" "Users Desktop" and "Users Programs menu" ... u know "the file system view/setup1" ... well here is the problem, i click on "Application folder" and change the "default location" ... so i can specify the program is installed in "C:ProgramFilesJohns AppCalculator" ...... BUT when i build the setup and install the program it does not appear in this location !! arghh i can see all the program files on my pc ... except mine ( i have tried all day and all night the only way i can get it to appear here is by INCLUDING the "project output" into THIS folder ..... even though i only want it to be on the "users desktop" ....

View 4 Replies

IDE :: How To Assemble Custom File Properties Into Project

Apr 3, 2010

I am using vb2008,I imported Custom Tool from my other project,It is on my project,But it is showing Below Warning, Not Error..!Warning Could not find type 'VBProject2.AxMSHFlexGrid Array'.Please make sure that the assembly that contains this type is referenced.If this type is a part of your development project, make sure that the project has been successfully built.

View 1 Replies

IDE :: Importing Custom Made Controls From Another Project

Feb 26, 2009

I'm developing a solution that I'm going to split into two different directions.I've built custom controls for the first application, and now I'm creating a new solution where I'm importing all the Forms and Modules to the new solution I'm developing by using "Add Existing Item" from the Solution ExplorerWhen doing this, most of the errors I'm receiving I'm able to correct by "Find & Replace" with the new name of the new solution. (They seem to be references to the old name of the solution, that I simply replace with the new name. Example. Global.Xname..... I now replace with Global.Yname.

View 6 Replies

Register Custom Class In Assembly With Web Project?

Apr 29, 2011

I'm using web project and web forms.I create Custom Class

Namespace CustomWebControls
Public Class NoValidationDDL
Inherits DropDownList
End Class
End Namespace

and i try to register this class in assembly web.config page section

[Code]...

View 1 Replies

3rd Party Scripting Editors As Controls In Custom Project?

Sep 4, 2009

Are there any third-party scripting editors that are available as controls (DLLs) for custom projects? I am interested in knowing what is out there and what scripts are provided?

View 1 Replies

Add Classes And Custom Form With Code In A Setup Project?

Jul 22, 2010

I have a main application and the setup project for the app in a single solution.I have custom classes to detect in sql server 2005 express is installed. if it is not I have classes to install it and create my database.Now I need to call the above classes from my setup project before it installs my actual application on a client pc.

View 2 Replies

Building A Custom Installer From A Windows Forms Project?

Aug 11, 2010

What actually is required to consider something installed on a machine. What happens in the background? I know VB offers an installer but Im trying to build my own from scratch. What do I need to do to accomplish this?

View 13 Replies

Custom Button Works If In Project But Not If In Class Library?

May 9, 2012

I'm working on a windows form project where the first form displays a menu list made up of custom textbox controls. When the user navigates to a textbox and presses enter the underlying code runs another form and hides the menu form. The form to run and the navigations sequence is controlled by properties I added to the custom textbox. I have done the same with a custom button. Both custom control inherit from their respective Windows.forms controls.

View 10 Replies

Import Project Namespace Into A View In Order To Use The Custom?

Jun 20, 2012

I am trying to create a custom LabelFor helper to apply by default instead of the standard LabelFor helper include in System.Web.Mvc.Html. I want my LabelFor to take model properties that are PascalCase and make a label that appears as multiple words. For example the property FirstName would appear as "First Name".

I found this post that shows how to make a custom LabelFor helper that allows the addition of html attributes. I recreated this helper in VB.Net and modified it to do what I want, but I am not able to get it to work.

[Code]...

The sample includes this Module in Namespace System.Web.Mvc.Html but when I add the namespace declaration to this module everything in the rest of the project goes haywire. For example, each of my models has a Primary Key property that is a Guid datatype and as soon as I add the namespace above to the module, I get several errors stating that System.Guid is not defined among other similar errors.

I've tried to import my project namespace into a view in order to use the custom helper, but then I get an error that says Overload resolution failed because no 'LabelFor' is most specific for these arguments.I am trying to avoid having to specify a DisplayName for every PascalCase property I have in many models.

View 1 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 2010 - Try And Load A Project (any Project) The Program Freezes

May 28, 2010

Has anyone else had issues with Visual Basic 2010?My visual basic program has been running fine for months but recently every time I try and load a project (any project) the program freezes, then I have to close it down and reload, every time I load Visual basic for the second time I get the following error:


HTML

An error was encountered while opening associated documents the last time this solution was loaded. Document load is being skipped during this solution load in order to avoid that error.Plus when trying to run a project in debug it takes ages to load (around 5 minutes) this has only started happening recently, projects were loading in seconds.

View 9 Replies

C# - Move ReferencePath Information From A .vbproj.user (or .csproj.user) File Into The Corresponding Project File?

Nov 28, 2011

Can I safely move ReferencePath information from a .vbproj.user (or .csproj.user) file into the corresponding project file? Note: All developers will be using developing from the same location on their machines.We'd like to allow users to maintain their own settings for other things, but have this basic info be setup once and checked into source control to be shared to all.

View 1 Replies

Put A Conditional Variable In Project > Compiler Tab > Advanced > Custom Controls?

Dec 8, 2010

How is conditional compilation controlled for a VisualBasic web? For a VB Windows app, I put a conditional variable in Project > Compiler tab > Advanced > Custom controls.

How in a VB web app is a conditional compilation variable assigned that can be accessed by all the files of the web app?

View 1 Replies

Setup Project For A Windows Service - Pre-Install Custom Action?

Jan 4, 2012

I need to install a windows service via an .msi for many tablets which is nooooo problem. The problem is, the tablets currently have the service running which was installed by installutil. So when my installer runs, regardless of Remove Previous Version is true, it stops stating the service already exists and to uninstall it from Add/Remove Programs.So I wrote a console app which preceeds the primary output as follows:

Sub Main()
Try
Dim filename As String = "C:Program FilesRSCProjectServiceSetupRSCProjectService.exe"
'Dim filename As String = "C:RSCProjectServiceRSCProjectServiceinDebugRSCProjectService.exe"
If System.IO.File.Exists(filename) Then

[code]....

View 3 Replies

VS 2010 1 Project - Multiple Project Types ?

Sep 30, 2011

A colleague has written a useful tool. He wrote it as a standalone tool, but it works even better as an includable dll, though it needs a bit of other functionality for it to be a really good drop-in component. What I am wondering is whether a project can be compiled as both an exe and as a dll?

There are alternatives, such as having a dll version and an exe version, since the dll version needs to include a few different methods that the exe version doesn't need, but this alternative sucks, since it would mean changing two sets of code.

Another alternative is to build the dll, then change the exe to be a project that references the dll....and does nothing other than calling one method in the dll. That kind of sucks, too, but not as bad.

I want to be able to use his module in some of my programs, and it really should be built as a component rather than a standalone app, but I want to know whether there are other options that I haven't considered.

View 2 Replies

ASP.NET MVC Custom User Roles / Profiles

Jan 15, 2010

I am creating a website using asp.net mvc model. When you create an mvc application asp.net automatically creates roles/profiles for user and admins (as far as i know) and corresponding tables in sql server database.I a need a new profile/role names "sponsor" that has all the benefits of users/admins (like authorization etc).

View 1 Replies

Custom Event In User Control

May 10, 2011

I've got a page (aspx) that contains a usercontrol (ascx).On postback of the aspx, I'd like to read some control values in the ascx. So upon reading some good articles, I created an event in my aspx that fires on postback.The event handler is in the ascx, and simply writes the values I'm interested in to the viewstate so that the parent page can read them.The problem is my event handler never gets hit, even though I see the event is raised as I step through the code. So my code bombs when trying to read the viewstate (which is empty)[code]Oh, did I happen to mention I'm dynamically loading the ascx? :)

View 2 Replies

Custom UI - Customize The User Interface In VB

Jan 30, 2009

How can I customize the user interface in Visual Basic .NET and is there stuff you cant do in Vb.net that you can in higherj level languages usch as Java and C and C++?

View 4 Replies

How To Declare The Custom User Controls

May 12, 2010

I am getting this annoying warning message "Object reference not set to an instance of an object." all the time because I created several custom user controls and drag it to a Windows form in a vb.net Windows application. I am using vs 2005 and dot.net framework v 2.0. This message pop up when I try to save the projector when I try to debug it in the Design mode.

View 2 Replies

Inheriting From A Custom User Control

Oct 28, 2011

I have a component class that inherits a user control class and i'm trying to inherit from that same class in a new class.public class B inherits class Unfortunately, I get an error pointing to the .g.vb file saying:Base class 'System.Windows.Controls.UserControl' specified for class '...' cannot be different from the base class '...' of one of its other partial types When I swap the "Inherits System.Windows.Controls.UserControl" with inherits from the base class in .vb files the program compiles but when I try to access any of the components I get an error saying "Object reference not set to an instance of an object."Why is it doing this? it's as if the my sub class isn't inheritingUserControl method at all.

View 2 Replies

C# - Creating A Custom Start Menu Shortcut Link For A Visual Studio Setup Project

Feb 24, 2010

Is it possible to create a custom start menu shortcut link?

The only possibilities I see in the setup project are shortcuts to folders or primary output.

Update:

What I ended up doing is creating a custom action on commit that dynamically creates the link using Windows Scripting Host. Then on uninstall, removing the link.

View 1 Replies

Custom User Control Graphics Rotation?

May 31, 2010

I'm trying to build a dial control as a custom user control in VB.NET. I'm using VS2008.so far I have managed to rotate image using graphics.rotatetransform . however, this rotate everything. Now I have a Bitmap for the dial which should stay stable and another Bitmap for the needle which I need to rotate.so far i've tried this:

Dim gL As Graphics = Graphics.FromImage(bmpLongNeedle)
gL.TranslateTransform(bmpLongNeedle.Width / 2, bmpLongNeedle.Height * 0.74)
gL.RotateTransform(angleLongNeedle)[code].....

As I understand it, the image of the needle should be rotated at angle "angleLongNeedle" although i'm placing the rotated image at 0,0. However, the result is that the Needle doesn't get drawn on the control.

View 2 Replies







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