Linear Programming With VB?Oct 25, 2011
I want to use VB for linear programming. Can any one tell me the best approach or give sample codes.
I want to use VB for linear programming. Can any one tell me the best approach or give sample codes.
I'm looking for a reference showing how to implement linear regression on data in VB2005View 1 Replies View Related
Basically a vertical progress bar with a user settable scale configurable either vertically or horizontally. Fancier looking the better.There's a lot of nice ones in commercial packages, but they come bundled with 80 other controls and generally have a price tag of several hundreds to thousands of dollars - which is a hard sell to a manager when you only need one control from the bundle.My other option is to embark on writing my own; something I don't look forward to and don't expect to look nearly as slick or "3d" as some of the things out there.View 22 Replies View Related
I have data that are numbers both on x and y and have charted them using mschart 4.0
I need to add a trend line/linear regression to a bunch of points I have. The data on x and y are both numbers (no dates anywhere), for instance (33.4,45.1) would be a point.
In the samples I downloaded from the first link I found a linear regression sample in the code files forecasting.aspx(.cs), and I found this ms documentation
I have added a linear regression line to the chart with the following line (once all other data it setup etc)
Chart1.DataManipulator.FinancialFormula(FinancialFormula.Forecasting, parameters, "Input:Y", "Forecasting:Y,Range:Y,Range:Y2");
The problem with both of these is that they assume dates are used. I went ahead and implemented it anyway, but my regression line starts at around the x value of 20, and will go to an x value of the max x value of one of the points (almost 70) if I give the parameter Period a value of 700. But since it doesn't start at x value 0 I don't trust it is correct.
I have a form that scales a background image. The form is painted 30 times a second (using Invalidate so it redraws the whole background image). When the window size is less than half my screen (1366x768), Task Manager reports that the program's CPU usage is 00. If I increase this a few pixels in width, all of a sudden the CPU usage jumps up to 50+. I can get up to about 606000 pixels in the client rectangle before it starts exhibiting this behaviorView 1 Replies View Related
i think the title says all what needs to be said, so i wanna make my mouse follow a random path from A to B, without straight lines..View 13 Replies View Related
OverviewThe fastest way to read or write Xml documents in a linear fashion is to use the XmlTextReader and XmlTextWriter classes in the System.Xml namespace. If read- or write-only forward-only access is too limiting, however, the System.Xml.XmlDocument class provides the ability to easily modify existing documents (adding, removing, or modifying elements and / or attributes) and leverages the powerful search capabilities of XPath.
Getting StartedThe XmlDocument can load Xml from a string in memory, from a URL, or from a file path. There are two methods that enable this functionality: Load and LoadXml. To load a document from either a URL or file path, use the Load method. Following is an example of using the LoadXml method to load an Xml document from memory. (NOTE: we will be working with this particular document throughout this article)
I need a VB.NET program to solve linear system with any number of equationsView 5 Replies View Related
I try to achieve to paint a form with a gradient backcolor and overlap an image with transparency. This is possible? I want using a tile background image with transparent background and paint the background with a custom linear gradient.View 2 Replies View Related
I have recently taken a liking to programming, and have programmed a few games in C#,my friend has asked me to program an application for him to use in his shop. But I have no idea of what language is best suitable?View 8 Replies View Related
I avidly create games in VB.net. Being a hobby programmer I give my games away for free. Since I'm a hobbiest without formal training I do try and educate myself on proper programming principles and follow them when programming such as OOP. There are however some things I have obviously missed being self-taught that perhaps I would know if I were formally educated. Once such issue that has really been my bane is how different classes (from now on referred to as objects) 'know' about each other WITHOUT programming specific interaction.
Okay imagine this, you have a space game and the following objects
Now each one of these objects has a Health, X,Y and Z private members and properties that are all inherited from clsSpaceEntity for argument sake. Now one way of programming collision between them would be to code out the following logic in the main game loop
Now this might seam okay if your talking about the simple example above but some of my games have tens or even HUNDREDS of objects that interact in this basic way. Is there a way in OOP to do the following... for each thing that inherits from clsSpaceEntity check against every other object that inherits this type (except itself) and if they collide then reduce health next? This sort of ability for a type of objects/class or whatever to be 'aware' of another and how they are the same/different and interact would save me tonnes and tonnes and TONNES of coding.
In short words I am looking for a .NET translation of JFugue.Update I realize that there is no real .NET alternative for JFugue,Note: I want to emphsize that my search is on the transcription part, not the playing part, in other words, I am looking for a .NET engine that has MIDI-mapping classes etc.View 5 Replies View Related
im using tasks parallel library in .net 4.0 i want to have the ability to specify a task for each core independant of the other cores. usually in TPL, i create a task and i tell it to run in parallel, i have no control over the number of threads created nor can i control the number of cores to participate in the parallel task. also, i cant specify each particular core a different task.i'd like to know how to achieve this in TPL if it is possible.View 3 Replies View Related
n a program i'm using i want to be able to create a box (done that) but pressing a button, but now i need to attach a sub onto it so i can interact with it, how would i do this?View 6 Replies View Related
So far I have worked with C Programming and C++ Programming. I am fairly new to DOT NET environment and my current project requires VB.Net skills. I need to know
1)Which books to refer for starting with VB.Net language?
2)How to Start with VB.Net Programming?
3)Are there any forums/articles for quick head start.
I have done my application programming in VB. But now i am trying to do some application related to network programming. But i am unable to find the winsock control in Visual Studio 2010.View 5 Replies View Related
I have been reading up on the parallel programming and even now still a little confused on the whole concepts. Lets say I have a single project with about 5 classes that interact and have local variables in methods and variables accessible to all methods in a single class and even 1 or 2 variables accessible to all classes accessed through instantiation. Now using threads I know that global variables would be overridden by multiple threads if there were no locking applied but local variables to a method/function do not, right?
So if I ran the project multiple times meaning as a new process, the methods and variables would be thread safe right and no data corruption occurs? So to implement parallel programming using the task factory, if I created a project that basically creates tasks and each task is basically running an instance of another project, then shouldn't the variables and data be thread safe and safe from corruption? But what if I had the output files and they named by Output & datetime.now.tostring, would there be conflict issues and I ask this knowing that I have seen this happen when trying it. [Code]
i was wondering how do you know if your programming in vb.net or vb 6.0 idk the difference.View 12 Replies View Related
I have a general question about the programming language vb.net. I wonder how I should see the vb.net language compared to a "lower generation " language like for example C+.For example if you had to develop a CRM application , can you build such an application in both programming languages with the same amount of detail and efficiency?
Is it right if I say that the "language" vb.net is an abstract version of for a example a lower language like C+ in a way that the same possibilities are possible as with C+ but more efficient so it takes the programmer less time? So basically if you would compare it with building a house in C+ you would need to build a door with all the separate pieces while in vb.net you would just place a door as a whole. But this does not mean the possibilities of building a house as a whole are fewer.
So now comes my final question: can vb.net be seen as a true programming language like C and can somebody who masters vb.net be seen as an equally good programmer as somebody who masters C+. Or would the C+ programmer in this case be superior?
I'm new to VB programming usually im a PHP programmer, i am advancing fairy fast on the structure, theres one thing i have been stumped on[URL]..What im trying to do is when i put the detaisl in the fields, i press save and then am prompted to save with my own extension
I want to know what is the programming process of Visual Basic 6.0 i.e how does the program compile, like in vb.net it is converted to MSIL, how does the programming process go in VB 6.0View 3 Replies View Related
I am a new visual basic learner and I already have some difficulties in finding the proper softwares to start my first programs. I will have to develop in vb6.0 and 8.0 (.net 2005) and 9.0 (.net 2008), what softwares do i have to use? From my search, I will have to use Visual Basic 6.0, Enterprise Edition (or another edition) for 6.0 programming, right? And for 2005/2008 vb.net programming, could I use visual studio 2010 for both languages or is that better to use visual studio 2005 and 2008? Well i guess i might be a bit lost in all those different terms.View 6 Replies View Related
Why use VB over other programming languages?View 2 Replies View Related
While working on a project I have come across a way of not having to check if a string isnull or empty
dim sb as new stringbuilder
dim bob as string
sb.append((bob & string.empty).padLeft(10, " "))
Here, bob is not instantiated but doesn't throw a null reference error. In situations like this, is it more readable to do the above code or the below code?
if string.isnullorempty(bob) then
sb.append(string.empty.padleft(10, " ")
I personally think method #1 is more readable and maintainable.
Dim obj As CommandButton
' I would like to do smth like this, the name of the button is in a variable
a = "Commandbutton1"
Set obj = a
obj.BackColor = vbBlack
I have a class with a mthod which does a a time consuming task. I know how to start the method in a separate thread using the Threading.Thread class. What I want to do is use callback so as to have the method report its result to another method when completed. I chose to use the asynchronous Begin/End call pattern.
Private Function BeginConnect(ByVal URl As String, ByVal callback As AsyncCallback, ByVal state As Object) As IAsyncResult
i'm creating an Asynchronous socket programming in vb.net. i've utilised the code from Asynchronous client and server code frtom the following links:m a new user so could post only one link fully)When I try to connect the for more than one client the second client always waits until the first clientcompletes the call. i want the clients to accept calls at the same timeView 1 Replies View Related
I am trying to create a program that calculates the prices of different payment methods of a buffet.The program requirements are simple. The buffet start in 1/7/2011 and ends 31/8/2011. Payments methods are online, cash and coupon. coupon is only valid from 1/8/2011 to 31/8/ 2011. 1 child is free for every 2 adult that pay. There are different prices for weekends (sat and sun) and different prices for weekdays. [code]View 3 Replies View Related
In an article in techrepublic about 10 tips to go from a beginner to an intermediate developer
one of the auther's suggestion was "try to become an expert in at least one area of focus" and learn advance idea in depth about that area. With this in my mind I have programmed for about a year mainly for database application in .NET envirnoment (VB/C#), Currently I want to focus or be an expert in at least one area of .NET environmt. As a resutl I had skimmed some area in .NET such as WCF,WPF, ASP.Net MVC ...etc (just reading an overview of different books). My current job . also demand on database programming mainly for desktop application.
So can you suggest me a list of areas of focus in .Net where I can delve on it beside my current job.
I am not sure whether they can be an area of focus I had some ideas such as SOA with WCF
MVC web application Database design and modelling
Edit @sajoshi I have some strength on data modeling and objected oriented design and mainly I like to work in domain modeling and object persistance with ORM tools.I have little interest on UI design.
i am stuck on chap 10 question 3,6,10, i dont know why they are giving me a hard time.View 1 Replies View Related
I am trying to make a cnc program i have learnt a little about g-code i want to know how i can generate g-code from an image? Also how i can use this g-code in my program in vb to move motors?View 1 Replies View Related
for a test project that i'm doing i am looking for ways to program a LED screen. I ordered a few LED screens (320x160) that can be connected together). Using a special controlcard the whole thing can then display text etc. Using the software that a Chinese supplier gave me. All the above works fine. But I am depending on the software I have. I have VB.Net experience and I would like to put the software aside and write my own software. I would like to set up the COM connection and tell what LED to activate.
Problem i'm facing is that the chinese cannot provide me good use of the software dll files. I need a small Vb.net program that does the above. Would somebody be able to figure out how to do this.
I have made an application (similar to Logo) which can take some simple code and draw a line according to that. I have the graphics covered but I want to know a few steps towards compiling and running a programming language. A few specifications are: - Has built-in methods and variablesView 2 Replies View Related
i'm new to database programming and am currently learning vb.net and ms sql. I was working on a simple add-edit-delete program and somehow i managed to make the Add button work, with this code:
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click
Dim sqlAddProduct As String
I want to know when I need to define a property in programming in general?,in every languageView 4 Replies View Related
i have tried itextsharp for putting watermark on pdfs. It worked fine. Now i am trying to edit existing Header on pdf file to desired header. Is it possible? if its possible then i have to try to use it on the bunch of pdf files in one single folderView 2 Replies View Related
I am trying to finish up a project and can not figure out what I am doing wrong. Very frustrated with this. I am getting an error "InvalidCastException was unhandled" and I am not getting my calculation. I have changed the program and worked on this for several days and decided to ask for some help. Below is my code.
K I'm looking for some instructions on how to use gdi + to animate a .gif file. I found tutorials online but can't seem to get any of the code working.View 2 Replies View Related
I'm creating a RPG or something similar but I can't find a... thing....like if something is 'weak' and is lvl 4 then this MP cost but if it is strong and is lvl 2 then this other MP cost.View 11 Replies View Related
When my picHero enter a room where a picEnemy exists I should make the picEnemy follows picHero no matter how it moves up, down, right, left and as picHero is moving 5 px i want to make the picEnemy moves 4 px. I've tried to do use a condition as
if(picEnemy.location.X <> picHero.location.X) then
location = new point (picEnemy.location.X+4, picEnemy.location.Y)
picEnemy.location = location
Also for the Y axis, but it didn't work.
Can VB.NET be used to develop games in Microsoft Excel? Have seen interesting games such as Batman that run in Excel and would like to know what programming language is used for that.View 5 Replies View Related
I am working with MS Visual Basic 2008 Express Edition and MS Access 2007. I have managed to populate a temporary table with data from a text file containing eight fields. I have applied the namespace System.Data.OleDb What I want to do now is: 1) to order the data by a specific field (let's say Fld4); 2) delete duplicate records; 3) append the sorted data to a main table; 4) write the data from the temporary table to a new text file and save to a folder; 5) clear the contents of the temporary tableView 3 Replies View Related
I'm new on touch screen and have difficulty on finding a touch screen programming (script/code).I want to write a simple protoype/program (script/ code) for touch screen and still wondering which programming language (c++, vb, .NET) is easy to use.I want to apply it for my reserach on effectiveness of touch screen and run it on windows7 OS.I don't know where/how to start writing the program.View 1 Replies View Related
I have designed a application in MS Excel 2008 on Windows XP using Visual Basic Application (VBA).Each and every thing is going fine on my side.My client is using MAC OS and MS Office for MAC. When i deployed my application to Client end one serious problem comes arise.
The problem is that when my client is opening this project he is getting it into the Design Mode.
I am trying to write a VB application that will talk with USB Printers. After seaching far and wide, I have come across a wiki that I think may be what I am looking for, but the examples are written in C, which is absolutely not my thing.I would like to use the functions SetupDiGetClassDevs, SetupDiEnumDevice Interfaces and SetupDiGetDeviceInterfaceDetail included in setupapi.dll to retrieve the devicename of the printer so I can then call CreateFile() from kernel32.dll to get a handle on the printer I would like to use. I'm not sure if the steps I've mentioned are the right way to retrieve the device name (hardcoding in a device name doesn't seem to work, so I'm assuming this is the only thing I can do). The main problem I am having with those functions is that I do not know how to call them. As I mentioned, I referenced a wiki, which can be found here, but I do not understand the parameters and structures etc.. that I need to pass in order for this to work. Can someone please explain the parameters (namely where to get the first parameter for SetupDiGetClass Devs), how to define the structures etc...If it matters, this is all the code I have for this taskView 3 Replies View Related