I'm using a DateTimePicker (.net).Is there a way to update the value only when the calendar closes?Or is there a way to know when the calendar open/closes?The DateTimePicker is bound to an object and this object check the dates and pop a message box when needed. When the user is browsing for a date, the message box appears. I only want this rule to execute when the date is chosen
I have this piece of code that works very well and gives me the path the user's start menu:[code]This obviously uses late binding. Now say I want to do this in C#, or in VB.NET strict mode, neither of which support this kind of syntax with late binding.
I have user log in logic in my web app. after successful log in, i set the user id in Session, so i can keep track of the user. and in my master file page load event, i do
Session.timeout = 60
so session should timeout after an hour. but my session times out at around 10 - 20 minutes. What am i doing wrong? i bet it's obvious.
when a value gets over another value everything is good until i set the second value 300 then i get the message actualy to early? like the first value is 30 and i set the second one 400 no problem when i change it to 300 it doesnt do what it needs to do :s
For f As Integer = 0 To UBound(num) - 1 If ping(f) >= txtmaxping.Text Then playermethighping = num(f)[code].....
I'm trying to detect if the Sub New() in my class has ended early due to missing fields. Below is a sample of my code:
Class Account
Public Sub New(ByVal Firstname As String, ByVal LastName As String, ByVal Username As String, ByVal Email As String, ByVal Password As String) ' Check For Blank Fields[code]...
How would I catch the Exit Sub from the class in the parent form to prevent the further processing of Process.OtherUse()?
here you are one of the problem I had in my past few yeas spent in automating office processes with vba.If you develop an application and you don't know which office version is installed on the pc on which your application will be installed you can have problem with references.
I've been aware for some time that the Cells() property is early bound but the Cells.Item() property is late bound. In VBA this all works seamlessly apart from the fact that we lose intellisense in the VBA IDE in the latter case: Code: 'VBA code Cells. '<---- we get intellisense Cells(1). '<---- we do not get intellisense
However, in VB .Net with Option Strict On this means that we have an extra consideration in that we have to explicitly convert to an Excel.Range if we want to set the range reference to a range variable:
Code: 'VB .Net code Option Strict On Imports Excel = Microsoft.Office.Interop.Excel ' ' ' Dim oApp As New Excel.Application [Code] .....
I'm comfortable enough with this because I'm aware of it and it is trivial to handle by explicitly converting to an Excel.Range. We also had a pretty good discussion about the Cells property a little while back in the VBA board which looked at some of its inner workings. My question is to dig a little bit deeper into the way that this has been implemented. I'm trying to get a better understanding about the reasoning behind the Cells.Item() property returning an Object rather than a Excel.Range?
I started programming in VBA, then graduated to VB6, and I am now using VB.NET 2008 Express.I have read, in the various posts, that I should keep Option Explicit and Option Strict both on, in order that I use correct VB.NET code and not VB6.I am trying to do that but am totally confused with the results of one of my programmes that was running perfectly with Option Strict off, but now advises:Option Strict On disallows late binding. To me it appears that I am using early binding, but to be honest I am not clear on the binding situation. I have checked through a number of google items, and a number of this Forum's items without seeing the light.[code]
I am currently working with a vb2010 front end with access as the database. everything works for accessing the information adding information. But when I try to edit/update the contents of a row I find that the update is being applied to the first row of the table rather than the target row. i have tried using the ID as a way to specify the row i want updated but that doesn't appear to work.
I know there are several ways to publish updates but I would like to know the best way to do it. What I already have configured is a shard network folder which I intend to have the program update from there. What would the best way to publish updates to the folder be?
In the following code, TextBox5 reports conditions while the mouse is moving over the form, and TextBox7 reports only when the mouse has STOPPED moving over the form. When I start the program, and move the mouse from outside the form, onto the form and don't stop the mouse, the coords continually update in TextBox5 as expected. When I then stop the mouse, TextBox5 clears and TextBox7 reports, "Mouse Hovering", also as expected. Then if I start moving the mouse again, TextBox7 clears, and TextBox5 starts displaying mouse coords again, as expected.
Why does the first method below work? I would have thought that the variable 'row' is completely separate from anything else, such as a row in DataTable1. Also, is there a drawback to using the first method? For changes to lots of columns in a single row, I'd rather do it that way.
I got the printing. Now how can I allow users to update the database, such as Add, Change, or Delete records accordingly? Then I am finished with my project.
Alright, when I open my program I want it to check for updates and if there is an update I want it to download. So far I have a text file saying the most recent version and then it downloads that file and compares it to the current file version. If the current file version < recent version then it will download the file. :O Can someone help me with the code? :3 I have a hosting server with direct download links.
I'm unsure of how realistic it is for this to work but I know a lot is possible in vb. I have an application called WindowsPRO available from my filesharewebsit This application is intended for those in school to easily be able to do several daily tasks such as calculate and use notepad within one window. I have been working on this application in part with the help of MSDN.Back OT, currently when I click the "Check for updates" I use process.start to open my website. Not very complicated is it. What I want to do is open a form in whichchecks for the update from my site. Whenever I upload a file, I'll upload it as a .zip onto my site and always name it like: "Application name v1.0" or whatever the version number is. That is the only thing that changes.
When the user presses the check for updates, I want to checkhe site in background for a "higher" version number. If my application is v1.2, I want it to check for anything higher than 1.2. So if I have on the site 1.2.2, or 1.3, I want it to check for the highest number version and download it.My question simply is, how do I check for a "higher version" from a website?
how to check if a field( a cell within a database for talk sake date of birth) has been edited in the past then flag it now this field may not be change for a year but how do i keep a record of that and the flag it if it is change.
I'm trying to create a form that uses controls that are bound at runtime. All the data objects are declared at the form level. The Select statement includes the two fields that make up the PK form the table. The Owing_Company data displays in the bound control. I can change the text and in Save_Click the RowState is Modified and Row!Owning_company has the changed data. DsForm.HasChanges is False. A simple call in Save_Click daForm.Update(dsForm) does not change the DB. If I update the Row!Owning_Company in code dsForm.HasChanges is now true and daForm.Update changes the data. What am I missing that allows changes made via the bound control to modify the DataSet?
I have a Form with textboxes and a datagridview, the textboxes are to fill a new row in the datagridview but in stead it is updating the first row, the following is my code
I don't like to build myprogram to a click-onceapplication becauseI lose the .exe and I don't know how to edit it after building it. So unless someone this, here is my main question:I was thinking about updating a .txt file that have uploaded somewhere that has the current available version. Can I use streamreader for an online file? And if so, if the available version is updated, how can I edit the code and everything to updatethe file?
Currently converting the infamous Windows Update VB Script examples to VB .NET so that I can have a more polished GUI for our end user's as we have to nofity them every step of the way when installing updates (so the built in WUA interaction is not viable for us).
Converting from VBS to VB .NET seems to be more troublesome then I estimated, FYI I am no a full time .NET programmer so I might be making newbie mistakes!!!
So here is the VB Script example from MSDN for searhing, downloading and installing Windows updates using VBS:
We have a VB web application that for some reason breaks when some clients run Windows Updates. To resolve the issue we have to force the application to recompile on the servers where the application is installed. In some instances we must do this multiple times and/or restart IIS as well to resolve the issue.
This didn't start happening until October of 2009, and then suddenly it happened all the time... but not for every client, and not with every update. It continues to happen and we have been at a loss to understand why. Is anyone else experiencing this issue or found a way around it? If there is something in our code that we can alter to keep this from happening I would love to know about it, as we spend time and resources troubleshooting and resolving an issue that doesn't exist until a Windows update runs and our application becomes un-usable until resolved.
I have a program with commercial uses. Currently I have email out updates. I would prefer that when the program loads, it searches for updates either from the web or I was toying with the idea of creating a file host server. I want the program to search for updates without opening a web browser, however (giving anyone power to email out a free download link). I think of the way Digsby opens, checking for updates, or gimp. This is what I want.
I have a problem when im trying to publish my project to my ftp site, ive put in everything corectly..i get a message saying Error 1 Failed to connect to ' url... the Web site url...The components for communicating with FrontPage Server Extensions are not installed. ive tried microsofts fix for it - without sucess/.im using visual basic 2010 express/
My project uses an MS Access Database, and amongst other things records the current cost of a series of categories which are regularly updated, thereby erasing the previous entry. However, I need to retain all previous costs to produce a history graph for given periods. I have considered importing an Excel spreadsheet, but having a functioning database it seems sensible to use it.
I am writing a Windows Update Client in preperation for it's use with our Windows 7 OS when we start to migrate this year from our Windows XP SP3 computers. We currently use a vbScript to control the installation of Windows Updates, we dont use the built in Windows Update client for the installation of updates as we need a little bit more control to allow for the deferral of updates being installed and more notification to the end user as to when a reboot will occur.
I want to replace the vbScript with a VB .NET executable as the presentation of information is much nicer, so I took to converting the Microsoft WUA API examples from vbScript to .NET, Following is the the vbScript Example code I am working with, at this stage of development of the application I am looking just to get a count of updates that need to be installed:
Set updateSession = CreateObject("Microsoft.Update.Session") Set updateSearcher = updateSession.CreateupdateSearcher() WScript.Echo "Searching for updates..." & vbCRLF
Just looking to keep application looking neat, One Form Parent / Child relation, set to cascade updates / and deletes. What I'm looking for is when the form loads the user enters some information for the parent (about 2 column out of 5), then I create a datarow with the information that I have. At this point before I actually send and update command, I would like to get the next scope identity for that datarow.
The reason is I also use that Identity as an Id number in this case a receipt number, and the user will enter detail data that is stored in the child, then calls the save function, this is when I intend to actually call the update to the database.
So the question is, Can I retrieve the scope identity for a datarow that only exist in the dataset without calling the update command and actually storing the data in the database? Or in my case creating my own auto index sub a better choice?
I am part of a developers group that deploys a inhouse developed solution using objects built by GE. This solutions is installed out to various computers on our network. The lead developers work on this project and then when testing is complete they deploy the updates to the various servers for the client applications to request the updates from. However, not just anyone can install the updated application. Seems currently only anyone on site with local administrators access to the client can install the software. how does we change the application and the install script to allow for the application it's self to install without the credentials from the user being a factor?