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
ADVERTISEMENT
Sep 28, 2010
I'm creating a custom control which inherets the BindingNavigator.I need do add one ToolStripButton at specific posistion (9 element) on the ToolStrip of the BindingNavigator.So, I wrote the following code:
[code]...
View 7 Replies
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
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
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
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
Apr 16, 2010
i have a BindingSource Bound to a DataTable which is bound to a DataGridview. I have Insert, Update, Delete commands etc. Private Sub InitialiseDataAdapter()
[Code]...
You cannot set the NewObject property when bound to a DataView or DataTable because you cannot add a new DataRowView to the list.
View 6 Replies
May 15, 2011
The editor basically uses a bunch of labels and pictureboxes (for now) and then an image is created from the panel which contains all of the controls.It sounds quite confusing, but basically i'm trying to create something like visual studio itself, which will allow "controls" to be added onto a panel, and then everything can be exported as an image when the user chooses to.I've worked out all the code to move controls and exporting the image, just having trouble trying to work out how to add an event for newly created controls as you can only handle a control, and not a variable.
View 3 Replies
Jan 28, 2010
So I have a custom control that when added to a form will create two child controls inside it. The custom control's designer handles the creation of these. The problem I am having is that when the designer generates code for these controls only the parent control is declared "WithEvents". So my que
View 9 Replies
Oct 6, 2009
I need my app to create a excel file, but I am getting a error running this code. While running this in debug, on the line "xlWorkSheet.SaveAs("C:vbexcel.xlsx")" there is a error saying "ComException was unhandled" and "Exception from Hresult 0x800A03EC"
Imports Excel = Microsoft.Office.Interop.Excel
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object,_
ByVal e As System.EventArgs) Handles Button1.Click
[code]....
View 2 Replies
Mar 31, 2009
how to generate code from user input. In Visual Studio 2008, Visual BasicI am new to this so I will try to explain the best I can.[code]I would also like to have these available on the UI but wont generate unless a user checks a box to add them or there is a box already for them but wont step into the code unless the user enters something into the box.Is there anyone that can explain how I would go about doing this. Or maybe some kind of visual studio plugin that will help me out. Or reference?I don't need anyone to do this for me I just need an explanation of how to do this or some kind of reference. Would this be a text template?
View 2 Replies
Mar 30, 2009
How to generate code from user input. In Visual Studio 2008, Visual Basic. My script always begins with:
Code:
function Init(Quest)
Then from here a user would input a quest name, type and zone in a interface using windows forms.
Ex:
Code:
RegisterQuest(Quest, "Kill Zombies", "Heritage", "Firestorm")
end
This part a user would enter in his interface what would an NPC say if accepted.
[Code] .....
What I need is a few text boxs that a user can input "Kill Zombies" or whatever they like and when they push a generate button it will create a file with a .quest extension. All of the code remains the same except for the quotes that would be the user input from the interface. Basically everything in quotes can be changed by the user in an interface. I have created my own functions for when a user accepts, deny and complete a quest. The user just needs to input what should happen then click a generate button to throw it all together as a .quest file to be saved in his or her quest folder for the server to call on later.
I also have many other functions like:
AddQuestRewardFaction --- (Quest, Faction ID, Amount)
AddQuestRewardCoin --- (Quest, Copper, Silver, Gold, Plat)
AddQuestStepObtainItem --- (Quest, Step ID, Description, Quantity, Percentage, TaskGroupText, Item ID(s))
Etc
I would also like to have these available on the UI but wont generate unless a user checks a box to add them or there is a box already for them but wont step into the code unless the user enters something into the box.
View 4 Replies
Dec 6, 2011
I have the following code in "Custom Code" in SSRS 2008. It works fine in VS2008 but it won't run on the server:
Public Shared Function Ns(ByVal num as Object, ByVal def as Object) as Object
if IsNothing(num) OrElse Not IsNumeric(num) OrElse System.Double.IsNaN(num) then
return def
[code].....
View 1 Replies
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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