Instead of a message box, how can I make it round when the unit price field is tabbed off of. If they tab in to the unit price field don't round, if they tab out of it, do.
Private Sub UnitPrice_LoseFocus(AllowLoseFocus As Boolean)
' Runs logic to round unit prices with long decimals
' Enter price rounding here
I was just wondering how I could send commands to a tabbed browser. Such as navigation. I know of webbrowser1.navigate, but that will not work with the tabbed browser. I would also like to use an commands to automatically login. But I am not sure how I could do that in a tabbed browser either. Webbrowser1.document.getelementbyid does not work for this.
The application uses ADO.NET to invoke sprocs for nearly every database operation. Some of these sprocs also contain a fair amount of domain logic. The data access logic for each domain entity resides in the domain class itself. ie, there is no decoupling between domain logic and data access logic. I'm looking to accomplish the following:
I am building a data based application using VB 2008 an SQL Express. I need to create textboxes on my form using code, (With & End With) method. I need a simple code string that will allow the app to check if the field to wich the textbox wil be databound is Nul, If so the textbox will not be created.
There are lots of questions about this but I've not been able to solve my problem using the answers to any of them (after many, many attempts..)
I'm working in vb.net creating an asp.net web application. I have an SqlDataSource and a GridView on my page.
I want to change the DoNotMail boolean value represented by a Gridview checkbox and automatically update in the database if the checkbox is checked from 0 (False, Will Mail) to 1 (True, Won't Mail) here is the code I used. [code]...
is it possible to do a two way sync on the entire gridview when the user hits a button so you don't have to do an update every time a row is changed? because the user might check the box and then check another box then uncheck a box and it would be a lot of updates...
I'm working on a web browser, (it uses the IE engine, im fairly certain)with visual studio, anyway, whenever I click on a link, it opens in a new IE tab, not in my own brrowser, as do popups.
Dim query as String = "Select * from openquery (devbook, 'SELECT wb.arrival_time FROM web_bookings wb ')"All I need is to convert my arrival_time into a datetime field in the query
I am trying to edit a dbf table. I would like to be able to rename field headings and change the field type, ie string or dbl, and the size of the field. is this possible to do with vb.net. I have connected to the dbf file but after that am lost on what to do.
In many of the articles I have read on the web say that when creating properties in vb.netthey should use the get/set methods and a private/protected member variable in the class.
Like so: Public Class Person Private _name as string
in my page Having 4 Buttons ..(FIRST,PREVIOUS,NEXT,LAST) ..i am confusing to this one..
Actually what i am doing is Iam developing one efrom Designer in this user is adding pages..
so We have given These Buttons (before told)..so user click on First Button page goto Starting page and When click on Next Button Goto Next page ..like this
I have 3 tables:Sales data - SaleID, Date, StoreID, CategoryID, Cost, Retail
Store names - StoreID, Name Category names - CategoryID, Name
I have a dgv bound to my sales table, and 2 comboboxes, one each bound to the remaining tables, with display member set to the name, and value member to the ID.
An ID of -1 represents "All Stores" or "All Categories" An ID > -1 represents a specific location or category
So, can I use some sort of If,Then,Else logic to do something like this:
SELECT (*) FROM Sales WHERE (IF @StoreID > -1 THEN StoreID = @StoreID ELSE True) AND (IF @CategoryID > -1 THEN CategoryID = @CategoryID ELSE True) AND Date BETWEEN @Date1 AND @Date2
I've found some different examples of If/Then/Else and Select Case type logic for SQL using google, but they don't seem to fit my situation, and I'm not sure how to apply that to what I'm attempting here.
I am creating a tabbed web browser, and I've added code to show the url and page name on the browser tab text box and title but i've come across a problem when i navigate Then i erase the highlighted code and click play, the url is shown for only that page, navigate again and it stays the same It's pronounced Sky - Fi, and its gonna rule the world,cos i'm inventing it?
this is my trouble i tried that Checkbox in project Properties, but sitll doesn't do my needs my program is file associated with (example) .mfx and i have the Checkbox In Project Properties ( make Single Instance app ) checked this happens:It works, adds a new tab,... But when i Open another .mfx nothing happens. This shows me it doesn't do OnLoad again.So il explain it better:I want it so that you can't have two Windows of my APP Opend, but when i open a .mfx file without any window ( or with one ) it adds One Tab to it and does its thing (Form_OnLoad) how to do this?
I followed EndLessMind's Post on this thread[code]...
well.. first you have to be able you save the change.. to start with got to "project --> properties --> setting" and here you add a net setting.. let's call it HomePageUrl.. and sett the type to string and the scope to user.if tabbed browser ( like mine) the you need this one for the go.home button [code]...
I have got this code for a web browser but i can't seem to convert it to a tabbed version.Private Sub webBrowser1_Navigated(ByVal sender As Object, _ ByVal e As WebBrowserNavigatedEventArgs) _ Handles webBrowser1.Navigated ToolStripCombobox3.Text = webBrowser1.Url.ToString()
I'm trying to create a simple web browser that supports tabbed browsing. (That is, using to tabs to open multiple windows without launching the program multiple times.) I have everything except the actual tab part complete.
I need to know how to add a tab and assign a web browser to it. I can get it to add the tab but assigning the browser as a child is beyond my knowledge. If at all possible a full example of a tabbed browser would be most effective for not only completing the task but also for me to learn how to do it.
I am using a TabControl and a WebBrowser for controls and both seem to work correctly. Other than that there are just the basic browser controls. I am using Microsft Visual Basic Express Edition on a Windows XP Pro Edition computer.[code]...
Anyone know how to get the progress bar working for a tabbed web browser, using the tab control? I can get it to work with the standard web browser control but not tab control.I have been searching around everywhere for an answer to this, but to no avail
I have made a tabbed webbrowser and what i want is that when the webbrowser page is loadedthe name of it will go to the form text ,the tab text, and the apsolutepath at the URL textbox on top.My problem is that i cannot find what i will put in the handle option becouse i want to handle all webbrowsers
I am trying to make a tabbed webbrowser Using DotNetBarI already tryed the Most common ways to do It but It is giving me an error every time and Sometimes its working but if I click the add tab button It will ad an tab without webbrowser and It keeps on giving me errors
I have written a tabbed web browser in vb.net using this link. However, when I debug the program, the tabs work fine until I try using the 2nd tab, 3rd tab, 4th tab, 5th tab etc. When I try to use these tabs, the web browser minimizes and the code window comes up with this code highlighted:[code]
I've got a problem when I'm trying to refresh my form. I've narrowed it down to why I'm getting this error so I'd be interested to hear people's opinions because logically, I don't think I'm approaching this the correct way.
I read from a table that gets x number of records. From the results, I create dynamic check boxes. It's OK if x is greater than the previous refresh but when it's less than, I can still see the old objects.
If I completely close the form and re-open it, it works fine and that is exactly what I'm trying to emulate. However, I'm failing miserably. Here's a broken down version[code]...
I have a datafield [Money] of datatype float.when i input currency value with $,or , it throws an error.How do I allow $ or "," to this field without changing the datatype(I know changing to type money may fix it)
While building an xml document I require to use logic to dictate the outcome of the xml; logically it is similar to the following piece of code (although this does not work):
Dim buildElement As Boolean = True Dim xe As XElement = _ <xml>
[code]....
I have managed to do this using the method show below, is this the suggested way of doing this or is there a better one??
Dim buildElement As Boolean = True Dim xe As XElement = _ <xml>
How can i write logic to check is it my sql statement being insert into my database ? is there any ways to create or thing can check thru by using webservice?
I want to create a logic to calculate the age and unit from entered birth date. eg: If the difference between birth date and current date is >= 24 months, I will want it to display the age in years. If >= 8 weeks, I will want it to display it in months and so on here's my code
I have been programming in vb6 for few time ago and i used open SQL Server connection and command objects to make database transactions. I have been searching for similar approaches in vb.net too but not finding any starting point. How can we work similarly in vb.net application?