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


ADVERTISEMENT

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

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 2008 Creating Itemlist Custom Control?

May 18, 2010

I did try to build a custom control but unfortunately i couldn't make it work due to lack of knowledge.I wanted to build an custom itemlist that allowed me to add 2 or 3 icons beneath it with labels associated.

View 5 Replies

VS 2008 Good Tutorial For Creating Custom Controls

Jul 6, 2009

Can anyone point me to a good tutorial for creating custom controls. I want something that is actually understandable.I have gone through a few but nothing really any good at this point. I want to create my own contol that uses its own look and not just modifying a windows control.

View 2 Replies

VS 2008 Creating A Custom TcpDrag N' Drop Client/Server?

Oct 22, 2009

Im thinking of making a really user friendly tcp drag and drop tcpclient/server like winsock.

[Code]...

How would i create this for my toolbox, but use sockets with this item. or can it be as flexible as socket?

How would i do this? Would i need to add more or create a brand new socket with my mini drag n drop Client/Server Ex: MySuperEasyClient.ASCII.EncryptData.SendData(textbox.text)

ps: What would this be called? TCPClient/Server or UDP?

View 6 Replies

VS 2008 Custom File Format?

Oct 26, 2009

OK, for those that saw my previous one, this one is different than that, much different.The program I'm making is basically an offline, open source Po, which will allow for people to create their own Databases of Pon, even custom ones, without any hex editing as long as they use the program to create the files. developing a custom format for my program, the ".pid" format, which stands for "Pokex Information Data-File". Yes, I know it's for Poon, but it's a program I promised to end with, and I'm also kinda doing this for myself (Still being a fan of the game series.)w, the file format is done something like this:

View 18 Replies

VS 2008 - Save Custom File Extension

Oct 13, 2009

i just made a small notepad type program. The function for opening and saving are working perfectly but i want it so that i could save the ".txt" as my own filetype lets say ".tox" or something.

View 1 Replies

VS 2008 Custom File Association Actions

Jun 3, 2010

ive got a custom archive type, which i have all the associations set to me application for, when the users double clicks these files i want them to auto import, but im a little stuck on my next step.[code]the tomove string would need to point at the file which was double clicked/ran, and the textbox1.text replaced with the file name of the file that was ran.[code]And the code runs, but i need to replace the "test" (previously it was textbox1.text) withthe name of the file which was ran, is that possible?

View 4 Replies

VS 2008 Reading A Custom File Format?

Oct 20, 2009

The file format has already been explained to me, and I can easily view it in notepad to understand it. It's basically a text file with a fancy extension and what not. The only problem is that I need to read it and pull a certain span of data from it.Here's the basic format:

8200
3251
1

[code].....

This is the first 10 lines, which is useless data for me. However, right after the first 10 lines, is a span of an unknown quantity of lines that I do need that are formatted like so:grassC:Program FilesMicrosoft GamesHalo Custom itiondatalevelsestlood_creekitmapslood_creek groundThe first line is the name of a bitmap assigned to the ID, while the second line is the path to the bitmap.Finally, after the unknown span of lines, there are two lines that go in this order:01Which I can safely assume at this point that the list no longer needs to be read.What I need to do is be able to open this file, skip over the first 10 lines which are completely useless, and then pull out the unknown gap of lines, and then stop reading when the line is '0', or at the end of the list.

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

VS 2008 Start Custom .exe File By Click Of Button?

Sep 6, 2009

But thing is I renamed this player to myplayer.mo so will it work like a normal exe or is that not duable ( I know u can do this in VB6 ) but not sure how its done in VB 2008

View 39 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

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 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

VS 2008 Developing A Custom Component (single Signed Dll File)

Nov 26, 2011

Im currently developing a custom logging component, that we will deploy with all our applications, windows services, webapps, windows apps etc. I have a few questions of various nature. The component is a single signed dll file:

1) Which is the "safest" way to get the current directory? For example, in the config file, in the config section I have a property "logpath". The application will read this and write a log file depending in what they write:

c:myapplog (it will write a log here, create whatever folders it need) /Log (directly under the installed app directory, like c:program filesmyappLog) Log (same as above) I need something that work with both windows and web apps, for webapps it will log under the virtual directory of the aspnet app.

2) For exception handling, if nothing special is happening, like in the DAL, I get a sql server exception, is there any point in using

[Code]...

View 10 Replies

VS 2008 - Creating / Saving Excel File In BGW

Jun 4, 2011

I am trying to use the BGW to save a DGV to excel file, but don't know how to do it correctly, specifically setting the savefile name this code doesn't work gives me:

'System.Runtime.InteropServices.COMException' occurred
- Make sure the specified folder exists.
- Make sure the folder that contains the file is not read-only.
- Make sure the file name does not contain any of the following characters:

Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process. I also tried doing the Save in the BGW RunWorker Completed event but then there is no file name. It seems I need to pass the file name the user inputs in the SaveFileDialog to the BWG WorkerCompleted event somehow

Private Sub excelexp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles excelexp.Click
ProgressBar2.Visible = True
Saving.Visible = True
Dim saveFileDialog1 As New SaveFileDialog()
[Code] .....

View 1 Replies

VS 2008 - Creating Comma Separated File

May 22, 2012

This is my first 'serious' VB2008 project. Attempting to write a comma separated file. vis:

[Code]...

Is there a better method for outputing the data, rather than having to concatinate all the elements into a string and then writing it? In the 'good old VB6' days a Print statement followed by each value and a separator would do the trick. I can't seem to find the appropriate override for the WriteLine method.

View 4 Replies

VS 2008 - Creating Unique File Names?

Dec 22, 2009

I am creating files and then allowing the User to browse through the files via a ComboBox. I decided to name each file the current date. In order to create multiple reports each time the application is ran, each report needs a unique name.

The idea is that if they run a report once a day they'll have a unique report each day. But, then I realized that it is feasible that User could run a report more than once a day. So, I decided to create an integer and increment it each time the report has been ran. Then append the file name with that integer. So, report one of that day would show something like this:

12-22-2009_1 and so on.And this works just fine. But, if the user decides to close the app and then run the report later that day, the variable has been reset and no longer works as needed.I'm using a StreamWriter to create the file.

View 6 Replies

VS 2008 : Creating A File With Multiple Sections?

Jan 29, 2010

Is there a preferred method of creating a file with multiple sections? For example a program for a small retail business that might include different categories of sales, etc.I've come up with a primitive way of separating sections of a text file, which I can read and write right now, but I'm not confident that it will always work. I have a feeling it could produce an error down the road.

View 6 Replies

VS 2008 Write A File Version When Creating?

Jul 20, 2009

Im doing a FileStream.Write to create a file on a local computer from a file I download from the web.

qq1 =>how can I change the version property of the file after writing it or while writing it?

qq2 => and how can I check the version property of the file?

View 17 Replies







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