I am making a FlowLayoutControl panel which the user can edit by dragging controls onto it in any required order. The controls are mainly (subclassed) Buttons and (subclassed) TextBoxes, plus perhaps a few labels. There might easily be several hundred of them interspersed at random. I need to be able to save the FlowLayoutPanel and/or its list of controls to a file, and then restore the whole thing again later when needed.If I am not mistaken, this will involve serialization -- a subject about which I presently know next to nothing. I have tried trawling the web for introductions and relevant examples, but I am suffering from information overload. There is so much written about serialization that I don't know where to start.As I can't spend too much time on this, I'm hoping there is some simple way through all the complications. Can anyone here explain, or point me to, the basics needed for saving a control like my one?
This is newbie VB question. My son is learning VB and I am learning with him. We have RichEdit control application (non WPF), where we input text, formatting its Style (bold, italic, underline, etc.). Our next task is to save the text together with its attributes into the file. The question is: what type of serialization is preferred at this case?
I've been using XML serialization for a while, and today I realized something really odd. If I have a new line right after a "dot" (.), when i deserialize, I lose the dot. Has anyone ever had this happen to them? The following is my serialization code:
Okay, this actually relates to some work I'm doing that I already have something in place. So if a change is necessary down the road, I'm in no hurry... But I did a dangerous thing and began reading. As I began reading about ways to stream file data, I became curious as to when it is a good idea to one method or the other.
I have created a huge monster based on generic objects and the BindingList. It is a web app that has users, security rights and restrictions, as well as the business logic to persist to the database. I have been using inProc sessions but each user creates about 50 megs of memory. I was initially told that would not be a problem, that a few users it at any time, and the items in the collections were supposed to be lot smaller, but I digress. For the amount of processing that the app has to do in real time, and for how it manages the data, the data it produces is 100%.
The speed and performance has been superior, but the only problem was it was on a box that was used for alot of other applications and it would run out of memory. I have since put it on Server 08 and have placed the Serializable attribute on all classes. I get a an error how ever when the web app tries to serialize the session. I get the feeling that there is an unsaid concensus that inheriting from BindingList is not supported by .net sql or state server session handling.
I used the ideas from this post to create a custom collection of my custom class, so that I would be able to easily sort my collection. My project uses binary serialization to save everything (well the important stuff anyway) to a file. The problem is that my custom collection now breaks the serialization.I can't seem to figure out how to get the custom collection to serialize![code]
I have two experimental web services. One is an asmx contained within a .net web application. The other is a WCF service library being invoked from the web application.The asmx basically does everything I need, but I think WCF would be better, except that it doesn't do anything as I would expect after fiddling with the asmx service.For example, the same method behaves differently in each:
' ASMX <WebMethod(BufferResponse:=True, EnableSession:=False)> Function Test(aObject as Object) as Object ' object will have been successfully serializaed into a dictionary
I have a client sending data to a server using a Serialized Structure. I get a rather...nasty stack trace message that I can't begin to figure out why it's doing what it is. Here's that Stack Trace:
Trying to make a simple browser with some simple addon's. What Ive done is setup a menu(forum) for the user to enter their email providers web address and it will save it in a xml file. When they click on the email link, it should load the email xml iformation and place that info in the tb_html.text and navigate. I keep getting a null exception and im not sure what going on here. Here is the code:
Browsers: Private Sub btn_Email_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Email.Click 'Load Action Dim SavedEmailObj As Storage
One day i decided to make Checkers (the game). Black and white circles are moving cross the field made of buttons. And i had to program each button (32 buttons) several times for each condition (moving black, moving white, black eating white, white eating black, black won, white won, whose turn it is...) Count that and multiply it by 32. It is really big code for something that simple.
if i can use one function for making all that conditions. Let's use more simple example: tic tac toe game[code...]
I am trying to make a simple web browser in Visual Basic 2008 (with Visual Studio 2008 Professional Edition) that uses the Gecko engine via a tool called GeckoFX and the XULrunner's dll's and resources.About GeckoFX - geckofx - Project Hosting on Google Code The book I am learning VB with hasn't covered this aspect yet but I almost have it all set up - this is just a side project I decided to play with because it looked really easy.
The Problem:
[code]...
I have downloaded both the GeckoFX package and the XULrunner package and unzipped them and placed the GeckoFX folder and the XULrunner folder in C drive.I have right clicked Choose Item in the toolbar and chosen the GeckoWebBrowser control to use in my form app.I know the path to the XULrunner runtime is C:xulrunner My browser only has the windows form with a text box, a button and the GeckoWebBrowser control.Now I need to set the call for the uxlrunner startup path where it needs to be. I have read that if I right click the project in Solution Explorer, I should see this option under properties.. but I do not see anyplace to do this
Will any of the free light-weight charting libraries; ZedGraph or NPlot, be able to draw a simple graph similar to attached image (no waste of space, and with colored plot areas)? This plot will act much like the task manager "CPU Usage" plots, with update of last value every 500ms, but only making a new datapoint every 1 minute or so.
Or is this so extremely simple that it's better to hard-code it? What classes should I look into for this?
I'm stuck at the moment gents, and would like to ask I have a registry value (reg_binary): B7 59 C4 4A I know that this value contains a Date and a Time, you guessed it
I'm pretty new to VB.NET and I'm looking for a comparison to do this:
For Each c As Control In Me.Controls If TypeOf (c) Is ComboBox Then If c in (combo1, combo2, combo3, combo4) then ' do some crazy stuff else 'do other things
I haven't used VS in awhile and now I need to use it and I forgot it all. Anyways, I need to know how to create SIMPLE and easy login form nothing special. I just need it for a school project for a sample type game. I want to show a login screen for it, and I forgot how to make one. I'm using the premade login screen that they provide. On the add module part.[code]
I've written an app that gets an integer value every 500 ms from a MCU over usb. Works great. I want to get that same value over TCP/IP. Programming the MCU is no problem The problem is in VB.Net. I've read a bunch of sites and they seem to be overkill to what I want and just don't work for VS 2008. I just want to get that value and then manipulate it. I've tried the 'system.Net.Sockets' import and dimmed a 'New TcpClient', but one of the sites said to call the tcpClient.connect method and that doesn't come up in intellisense. Can someone help me just connect to a server with known IP address and Port, and read the integer 'x' every 500 ms?
Can anyone point me to the right thread where theres a guide how to make a simple print report from .net 2008..Basically what i need is a simple report database is ms access and the database is dynamically stored on a string,on vb6 its something like rpt. but on 2008 i don't know really how to implement this one.can anyone help me work like a dynamic or on a hardcode program,not on a static settings.
First (and definitely not last) post here. I need help with creating a search page for an application. All that needs to be done is create a search that gets the results from a database that was created. Can someone point me in the right direction of a good tutorial? I can't seem to find one.
I need help with creating a simple search function for an app im making. It shows recipes of various drinks.I want it like when I press "Search" on the main menu a new form should open containing all I need to search for a drink E.g if I search for "A night of passion" it should look through all the forms and then open the form containing the choosen drink.Could something like this be possible?
I have bound TextBoxes. When I edit anything, I have to move to the next or previous record before calling the Update Method for that record to be updated. With my DGV, I use
vb Me.dgvSalvageListing.EndEdit()
and it will update as expected. So, how would I do something similar to my Simple Controls?
vb Private Sub UpdateDb() Try ' Write changes back to db
I'm trying to make a simple character converter i.e. (A converts to O) or (C converts to V) I need to make defined parameters for the entire alphabet.I have two text boxes set up and a command button. I'm trying to make it so the text inputted into the first textbox is converted (using the defined parameters) Into the second textbox with a click of the button.
This seems like it would be so simple and fast, but I cannot figure out how to accomplish it in VB since there aren't many bit functions. I want to take a file and append 5 junk bits at the beginning and 3 junk bits at the end. In essence, just add 1 byte to the file, but in the process offset all the current bits so the file is no longer readable.
I just need a very simple encryption/decryption, but it needs to be very fast as well. I try XORing the bytes, but it gets slow with just a 1MB file. Some of the files are going to be close to 10MB.
I want to create a calendar control to display employees vacation schedules for the year. It could be either monthly or scrolling weekly. It will draw its data from Access. I'm just looking for some general input on how some others might accomplish this. I know there are some paid options but my boss said I am on a $0 budget. A couple of ideas I had are:
1. Make a monthly view comprised of labels and textboxes for the actual dates. Populate the texboxes with a series of sql statements
2. Use a datagridview bound to a crosstab query, but I don't know how to have the datagridview show one week after the other.
I would like to know a simple method to create a simple line graph, with a grid and X and Y values... I tried just drawing in a picturebox but that was just annoying and not clear... Is there any simple way to create a little graph with prefixed values on X and Y (graph should just be lines drawns from different Y values, with always the same change of X)
I have a (checked) listview with values in the subitems. I am trying to make a simple sum of the checked values, but I can't seem to get it to work. The values returned aren't correct.
The idea is that each time I check or uncheck a row it re-calculates the values from subitems(2).
Here's what I was trying:
vb.net For i = 0 to Listview1.CheckedItems.Count - 1 Label1.Text = CDec(Listview1.CheckedItems(i).Subitems(2).text) + cdec(Listview1.CheckedItems(i).Subitems(2).text)Next i