I was assisted through this forum with a solution for formatting text to output via a "rectangle" defined by code. I'm not understanding where this code should go within my application. I am constructing a string, assigning the string's contents to RichTextBox.Text, and outputting the text to a printer. Where do I code the "rectangle" definition? See code:
I am using sockets to send message between computers. I send the messages alright. What I want is when the message "x0x" comes, the client must be closed within 5 minutes. Teh admin can cancel the request by sending message "-xx" as well. The routine that checks for incoming connections and accepts messages uses WHILE TRUE...END WHILE since it must always listen. Once I get a message, I need to fire a timer control or other that fires within 5 minutes. But the program cant leave the WHILE TRUE at all. If i exit it early, the timer fires and the program does get exit. How do I fire the timer or other routine while still the WHILE TRUE routine checks for incomin connections and messages?
is there any way to reference a particular code routine in VB.net external to the current loop/routine?Example:
If Var01 < 5 [Routine A] Else [Routine B] End If
where Routine A and Routine B are code sequences at the end of the entire program -- such as outside of the current sub or class? The idea would be to reference an otherwise repetitive code.
I have a sub routine where I pull in information from a database. I want to use variables from this sub routine in another sub routine. I tried making everything public but it doesn't want to be friendly and share.
Dim strEmail as String Public Sub readDB() strEmail = "whatever@doohikcy.com"
[Code]....
The readDB would read the database and set the variables and do whatever it needs to do. Then when they submit the form it would e-mail the form to whatever the email address was.
I am needing to print certain data in a specific format (I am drawingin Excel format), I wonder, what would be the best way to generate these reports in a format pre-determined? Crystal report or Other?
I have a listview that displays date and time from a range that is set from combo boxes: "Start Date" and "End Date".
Then I am printing a block that display Cycle time. This cycle time is coming from "Start Date" and "End Date". I want to change the format of the item displayed in list view after it is printed in the print block in the format as "mm-dd-yyyy".
i just write code for application, in which data is get by user and entered data is to print in a particular format?give me a code for vb.net button by which after click on it will print entered data?
I'm trying to create a print function with a corresponding print preview. For some reason, any string I create with String.Format will NOT show up on the print preview! Use the code snippet below as an example:
Dim strTemp As String strTemp = String.Format("{0, 210} {1, 75} {2, 51} {3, 200} ", "NAME", "PRICE", "QUANTITY", "DESCRIPTION")
Till yesterday I was working fine with my Project.I din install anything new, am not trying to open my solution file with a different version also.Today when i tried opening my solution, it was saying
"The Selected Fiel is not a valid solution file"
"The Operation could not be completed.Unspecified Error"
Microsoft Visual Studio Solution File, Format Version 10.00
I need a graphical front end for my College project. However the modules that perform the core task (facial feature extraction) have been written in C. This was because the company where I am working on this requires that I code in C. I need a front end to show the results to our teachers in college. Since I do not know anything on working with windows and controls in visual c++, I thought of using VB as I know this language well. What I want to know is how do I call these C functions from VB. Here are some details of my C code.
1. Most functions' return values are just for the purpose of error handling. The output is one or more of the arguments itself (I used pointers for this).
I'm current doing a program that need to convert the image into text by using OCR software. It is very time consuming and difficult if i would like to program the OCR software as well. So i plan to use the existing OCR software that available in market.May i know whether VB can integrate other software into my program?? How to do it?
I am running Visual Basic 2010 Professional. Recently our Net Admin installed TortoiseCVS for me (I'm the only developer). While it's certainly acceptable to check-in/check-out though thye Windows Explorer, I would much prefer to access CVS through the VB.Net IDE.
Is there any add-ins out there that would allow this?
we are working on a project. three different people are coding the forms seperatly. now we need to integrate all three into one project. how can we doo that in visual studio.net
i am developing an application which automatically sends invoices to clients every month. the invoice should bear a stamp from a taxation body. this signature is composed of values generated(hashed)by the device itself. the invoices are designed using a crystal report. how can i get the values calculated(hashed) from the machine and include them on the invoice before sending or how can i send the invoice to the device to be printed and sent via E-mail. Remember it is not physically printed. it should be automatically sent.
I need to integrate QuickAddress Pro into my Asp.Net web application. My page has address, city, state, zipcode textbox fields and I need to map these with the QuickAddress Pro software.
I would like to integrate AIM in my program, but I have no idea whatsoever how to! I would rather do something that doesn't just put a web browser in with AIM Express.
I have my program which does not need to be installed, and i have made a .chm. but how can i integrate it into the program, or make it so that when the user opens it, it can actually find the file, because it works on my computer as it says: Process.Start "C:Program.chm" But it doesnt work on other computers becasue the file does not exist.???
I created one download accelerator using vb.net. now I integrate that application in IE(i.e when user click on any download link it should open my application instead of normal download window.for example the system having Internet download manager(IDM) ,when we click on any download link in Internet explore it automatically open IDM instead of notmal popup. same thing I need to do in my application.
I have seen C# code for doing this but was wondering if anybody had some sample vb code.
I have dealt with excel before but usually read/write by creating an instance of excel rather than within the form itself. To do this am i going to have to write to a datagrid instead?
i used to make object of paintdotnet class in my project i.e in vb.net on button press event
Dim m = New MainForm() m.Show()
the form code of paintdotnet get called successfully meanwhile paintdotnet used to search for resource call Resources class file which internally call PdnResources class file and code below shows exception
PdnResources {"Could not find any resources appropriate for the specified culture (or the neutral culture) on disk.\r\nbaseName: PaintDotNet.Strings.3 locationInfo: <null> fileName: PaintDotNet.Strings.3.resources"}
[code]....
if i used to run paint.net standalone then it works fine without any exception/error
I'm attempting to add a calendar to one of our VB.NET Web Forms-based websites which will be used for scheduling purposes. We want to have this calendar sync with our corresponding Sharepoint calendar.
My problem is this: I know that I can integrate a Web Part into a Web Forms page; can said Web Part use a calendar from our Sharepoint site as its data source?
In Visual Basic you can use textboxes, buttons, etc. Where does the .net come in? How do you integrate Visual Basic into a Webpage and have the formulas work?
I have two projects made in vc++ & vb.net of visual studio 2005.now i a third project in vb that integrates above two.I HAVE SEARCHED GOOGLE and result is negative