Creating Custom File Type In .net 08?

Feb 5, 2011

i want to make a custom file type like "abc.xyz" which should have all the attribs of a directory like

moving other files and folders to it, open, close, delete, create new, etc... in vb.net or c#.net

View 5 Replies


ADVERTISEMENT

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

VS 2008 Creating A Custom Log File?

Dec 16, 2009

I'm running several different automated processes and when I get done with them, I show the results in a form with various controls.

In this form, I use Panels, Labels, TextBoxes, and TreeViews, and ListViews to display a wealth of information.

When the automation part is done, I want to be able to log this info and save that log file on the User's PC.

I thought it would be best to make a custom file extension and then hash it with MD5.

I'm pretty sure I can get all of that done. The problem is that I'm not sure how I would load that info back into the application.

Since the log files will appear on a seperate form, I can't just load the data back into the original controls.

Would it be best to create a blank template of controls and then load the data into those controls? Or is there a way to save content "as is", controls and all?

View 12 Replies

Custom Type Cannot Be Cast To Custom Type And Losing Will To Live

Jun 10, 2010

I have been trying to solve a problem related to using RolesProviders in MVC.Basically I would like to an additional set of criteria to the roles table so that a user can switch roles based on what they are doing on the site.However as simple as it may sound its proving to be a nightmare. I cannot for love nor money come up with a solution. I have tried overloading the provider, creating extension methods (which never work with the Roles class) but finally I decided to simply create a reference to my own custom provider and just completely bypass the whole User, Roles class.Now I am getting a ridiculous error which states that I cannot cast MyProvider class to an instance of MyProvider class? All I am doing is calling the Roles.Provider method and casting its return value to my custom provider class (which inherits from RolesProvider). The asp.net forums are a waste of time since no one ever answers the questions and there are simply no examples of extending the Roles/Membership model without using SQL server.

View 3 Replies

Add A Custom File Type To An Application?

Feb 3, 2010

i want to add a custom file type to my application For Example

somefile.dlh

the file type is a .DLH file how would i add this to my application so that it can read it ... like it would say a text file or something?

View 3 Replies

Embed Icon For Custom File Type?

May 22, 2009

I know how to add a resource to my project and I also know how to add an icon to my application. What I could not figure out is how to embed another icon for custom file types - I do know what registry entries to add / modify though, I am just not able to add a 2nd icon as resource to my profile and make it 'accessible', so, that the Windows System can display it for files with my custom extension.

View 15 Replies

VS 2008 : Create And Read A Custom File Type?

Aug 15, 2010

i am using VB 2008 and i was wondering if it was possible to have my program create and read a custom file type?

View 3 Replies

VS 2008 Custom File Type Associations Set Icon?

May 31, 2010

i have 8 new custom file types which go with my app, i can set them to open with me app easily using this code on a button:[code]But im a little stuck on what to change in that, ive made certain all my new extensions are unique and i have all my icons for each new file type made, i just need to be able to set them.

View 5 Replies

IDE :: Creating New Type Of File That Has Its Own 'parsing Language'

Jun 14, 2010

I have been working on a very advanced feature that will allow programmers to right object that spit out other objects. Code that writes code. However, I have run into a problem. I use a file type that specifies to the coding parser how to create the object that is going to write the objects. Example, the Programmer writes a "NTF" file which contains code switches and variables that the Computer will parse and create a "Template Object" that the programmer can include in his project and call to generate the code objects. I'll right a object that creates an ASPX page for each table in my database, and I'll then call that object against my database. It's pretty straight forward. This "NTF" file has special parser commands, and uses VB.NET to manipulate the output based on the variables that come into the object. The problem is I would like to have an editor just as advanced as Visual Studio to recognizes the custom parser commands and the VB.net code. At the very least, something that formats the "NTF" file and integrates into Visual Studio.url...

View 2 Replies

Creating Excel File - Force As String Type?

Feb 12, 2010

I have a vb.net app that I create an excel file with from sql data. It creates it fine but for cells that have a social security number, it makes that cell numeric and removes the leading zeros. Does anyone know how to force this cell as a string when adding it to the worksheet? Is there a property or method I can call to do this in my vb app?

View 1 Replies

"Creating Own File Type" Clarification?

Mar 13, 2012

Okay, I was doing a lot of research this morning and found what I hope to be a promising example (code and installation file in the zip folder I downloaded). Even though it is from 2005, and I am working with 2010.I had to update/upgrade the entire project to view the code, and... ok, I am just rambling.I know how to set the filters for SaveDialog and OpenDialog (took me a long while to understand, but I now understand it), but when I finish and build the project to host it on CNet Download or somewhere similar.

View 3 Replies

Asp.net - Creating A Custom Gridview?

Apr 10, 2012

I would like to create an order form for my ASP.net page (I included an example image below). However I don't know how to approach this. I'm assuming the best method would be a gridview but it would involve two levels of grouping. Other requirements would be be to accept a quantity and then calculate the total price. Can anyone point me to some good books or websites that explain creating custom grid views like this (or maybe a better method than using gridview, I'm open to whatever). I consider myself to be an intermediate programmer in asp.net.

View 1 Replies

Creating A Custom Control Box?

Dec 15, 2009

Is this possible? I am trying to create my own "X" and "minimize" buttons on my form -- the only way that I can currently think to do it is by making my form have no border, and creating a 'fake' menu bar using labels and buttons for minimizing and maximizing. The goal here is to be able to have custom icons for maximize, close, etc that may not match the Windows default scheme.

View 1 Replies

Creating A Custom Control?

Apr 15, 2010

want to create a custom control of the button such as the button will be a bit enlarged and with a different colour.A custom control is a class that either inherits the Control class directly or some other control.So Iadded class named class1.vb and added this line:Inherits System.Windows.Forms.Button

View 6 Replies

Creating A Desktop For Custom OS?

Nov 16, 2010

Iam developing a OS using wince Kernel.It supports .net framework 2.0.

so i succesfully extracted the kernel and i booted my mips processor,Now i can see a black screen running wince kernel.

Now i want to create a form that should look like a desktop in vb.net and should have desktop Properties.cool huh?

what are the properties of the desktop.

Property-1

The Deskstop should be attached at last.

For Example:when a application is opened it should have the capability to open the application on the top of the Desktop.

and it should be locked on the background.

Property-2

If i close a application in my kernel the application is closed but the image stays still because there is no desktop background to repaint itself.so i want to create a form with the two properties above Mentioned.

View 2 Replies

Creating A Custom Font Dialog?

May 17, 2011

I'm having a bit of trouble with my project here... and Google isn't helping very much. To put it briefly, I'm currently making a sticky note program (one fairly similar to Sticky Notes, for those of you familiar with Windows Vista or 7). It's relatively simple, as the "note" itself is basically a glorified Rich Text Box.

My problem is this: I obviously want to allow some for some customization with the font, however I don't want to use a standard full-on Dialog Box. So I designed a small form with 2 Combo Boxes--one for font and the other for size--and 2 buttons, "OK" and "Cancel". What I'm attempting to do is program this form (named dlgFont) to more or less be recognized as a Font Dialog Box. I've got some of it figured out I think, but I can't seem to put the pieces together in a way that actually works.In the code for my main form, I have this within the Class... stuff:

Friend WithEvents dlgFont As System.Windows.Forms.FontDialog

As for the Command Button that pulls up the dialog box itself, well, it's actually a Context Menu Strip Item... I'm not really sure what to put. So far I've only tried this:

dlgFont.ShowDialog

And for the Apply event, I've got the generic stuff:

Private Sub dlgFont_Apply(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dlgFont.Apply
If dlgFont.ShowDialog = Windows.Forms.DialogResult.OK Then
Me.Font = dlgFont.Font
End If
End Sub

That's all I have for the main form. This is what dlgFont looks like: 'A limited-ability font dialog box.

Imports System.Windows.Forms
Friend Class dlgFont

[code]....

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

Creating Custom Folder With Setup?

Jul 20, 2009

I want to create a folder " c:imagebox " when the user runs my setup. I tried this in " Add special folder --> Custom folder " then a folder appears i renamed it to ImageBox and in default location i typed " C: " and set its property to always create but when i tested the setup on xp an vista i did not created any folder.

View 1 Replies

Creating Custom Generic Class?

Jan 1, 2011

Here are essential excerpts for the code creating the class and the page using it:

Imports System.Collections.ObjectModel
Public Class Test (Of T as xyz)
Inherits Collection (Of T)

[code].....

View 7 Replies

Extending Or Creating A Custom Vb Component?

Jan 11, 2010

I am wondering if I can extend a component (e.g a button ) in vb the same way I can in java which enables you to modify the component for your specific requirement or create a new one from scratch.

View 3 Replies

Get A Primer On Creating Custom Controls?

Dec 2, 2009

I am new to VB 2008 having spent most of my time in 2003. What is the recommendation for the best place to get a primer on creating custom controls in VB.NET. I prefer to use VB directly and not the WPF.

View 2 Replies

VS 2008 Creating 'custom Code'

Aug 6, 2010

I have a form that is populated with specific data for each user. The user chooses this data themselves.I plan on saving this data in the application settings or via xml serialization.What I want to do, is allow users to generate a unique code for that data so that they can supply this code to others and all they will have to do is copy and paste it into their client and that data will populate for them.I could just allow users to trade XML files, but I want it to be easier than that.The form is basically setup this way;

Picture - Data 1, Data 2, Data 3, Data 4
Picture - Data 1, Data 2, Data 3, Data 4

The pictures correlate to pictures that are numbered anywhere from 0-600. The data can be any integer value from 0 - 200.

View 16 Replies

VS 2010 Creating Custom Controls?

Aug 23, 2010

I got this whole thing pretty well down (it's actually quite easy), but I've seen custom controls created where you can click that little arrow on the top-right corner and add things or change things about it.

How exactly is this done? I'd Google it (which is why you don't see me post here too often) but I really don't know how to describe it.

View 1 Replies

Create A Custom File Association ( A Custom Extension ) In VB?

Dec 19, 2010

know how to create a custom file association ( a custom extension ) in VB .Net and how to open it on the application

View 1 Replies

Creating A Custom Documentation Application Using Word And .NET?

Jun 9, 2010

Here at my company we have an Access application that allows users to create documents based on invoices that are in Great Plains, an accounting program. Documents such as invoices, packing lists, export documentation, etc., etc.This application is very old and very hard to maintain so we're doing a rewrite and I've chosen this project to be my first Visual Basic .NET project.Basically what the application is going to do is allow users to do the following:

Pull up invoice information and then add some secondary information such as comments and the like Choose which documents they want to print out Open the documents and then allow the user to edit the documents That last part is the tricky part. The users right now create these documents out of Access and print to a PDF and then edit the PDF with comments that can be specific to the document and customer. If they didn't have to do that, then I could just used canned reports or something.

What I am thinking of doing is creating Word templates with text boxes and inside those text boxes adding addressable bookmarks. When the user goes to print the documents, open Word, populate the bookmarks from the database (SQL Server) and then that will let them draw text boxes and fill them with whatever they want before they print the documents and then they can save them.

Here's the code I worked out to do this (of course the final result will be much more complex):

Public Const wdPageBreak = 7
Dim oWord As Word.Application
Dim oDoc As Word.Document

[code]....

View 1 Replies

Creating A Custom Entity Class(object)?

May 13, 2011

How would I create my custom Role class based on that autogenerated class? I have read a few articles on the net but I am still lost. Can someone please show me how to do this, and what I must import(using visual basic). I want to add some validation to the string property where Role1 cannot be more than 50 characters.
Autogenerated class

[Code]...

View 2 Replies

Creating Custom Messages For Database Connection

Mar 24, 2012

I am trying to create error messages to display on a form. I added a label that is made visible if there is error.Currently if the database name is wrong the error message displays, however if I alter the connection string; example: If I misspell Server, the error label does not display and my application crashes when I try to click a control.How do I detect and display the error label, when there is no connection or a part of the string is misspelled or missing? Is this even possible? [code]

View 3 Replies

Custom Colors When Creating 8bits Bitmap?

Mar 4, 2011

Is there a way in Visual Basic 2008/Framework 2.0 to create and save a 8bits bitmap(Format8bppIndexed) to a .GIF file using custom colors(about 30) instead of the standard web colors?

If not, is there a way to convert a 24bits or 32bits bitmap to a 8bits bitmap using custom colors?

View 7 Replies

VB2010: Creating A Custom Item Template?

Jan 30, 2010

as in VB2008 the documentation suggest creating a module or class, then selecting 'Export Template' on the File menu. Regrettably my file menu does not show the item 'Export Template' in my installation of Visual Studio 2010 Beta 2.

View 4 Replies

VS 2005 - Creating Array Of Custom Controls?

Nov 6, 2009

I am creating an array of customer controls by doing the following:
Dim CtlLosArray(150) As Control

Then I'm setting up the first control in the array like this:
CtlLosArray(1) = New ShieldLOSInfobox
CtlLosArray(1).Location = New Point(0, 0)
CtlLosArray(1).Visible = True
CtlLosArray(1).Show()
CtlLosArray(1).Name = "Label1"
Me.pnlLOS.Controls.Add(CtlLosArray(1))

Now on this custom control I have a panel and a few text boxes and as you can see I may be adding about 150 of these custom controls. What I am wanting to do is to be able to access that control then the item on that control based on the array. Something like the following:
CtlLosArray(1).Controls.Item(Panel1).backcolor = Color.Yellow
But the above does not work. How I can access a specific item on the customer control within the array?

View 2 Replies







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