|
We will not implement version checking on database level.
Because our communication with DB work via webservice on web server it is not difficult to look into web.config file for version. I see our point of increasing DB traffic if for every select statement you check version with another select, so I guess I didn't pointed out web.config checking (which is a least 100 times quicker)
|
|
|
|
|
We have apps that for the client to shut. There is a versions table that the client checks every 5 minutes. If the app version is different, a warning is displayed to the user (so the user can save current work). After about 5 more minutes, the app is auto killed if it's still running.
Can't remember if click once allows you to do that? I recall that you can have the client check for a new version on startup or shutdown, but not sure while running.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Restarting anyone's computer is not acceptable. period.
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
There are several ways of doing this. Some companies have mandatory reboot policies in place. If you leave your machine on over the weekend, the machine gets rebooted automatically.
Another would be to have the app close itself after x number of hours of inactivity.
Another would be to have the app check in every so often to see if there was an updated version available on a central source. If there was, notify the user to restart the app. Upon launch, the app would have to launch an updater application that downloads the new version and replaced an files it has to to update the app, or just run an installer. The only problem with this would be the users would need admin rights to do this installation.
An another would be to use some application distribution software, like MS System Center Configuration Manager, or Altiris.
|
|
|
|
|
I prefer 3 or 4, not 1(reboot) or 2(timeout).
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Yeah I do to. But, where I work, we use all four methods. Number 1 is used to force machines to reboot themselves during Microsoft's monthly patch season.
|
|
|
|
|
Would it be practical to have two executables, one of whose job is to run the most recent version of the second? If the name of the second file were different for each version, an "update" would entail creating a new version and informing the "loader" about it; those things could easily be done while the original application was running.
Some additional code would be needed to deal with the possibility of trying to start the application while an instance of the old version was still active. Depending upon the nature of the application, one could simply start a new instance of the new application (especially if having multiple application instances open would be normal and expected), one could send invoke the old application (not using the new one until all instances of the old one had been shut down), or one could request the old application to save its state and quit, and hope the new application could read back the state and resume.
|
|
|
|
|
I have a program that what I want to happen is, when you type something into "txtEmployee" it will search the employeeID field in employee table and a message should appear saying "This employee does not exist" or show their details in "txtAddress" (Address 1 in table) "TxtPostcode" (Postcode in table)
Now what I don't want to happen is for the textboxes to be databound to the table fields, as I only want the textboxes to connect to the database table fields whenever I type something in. How would I do all this?
Thanks in advance
In the end we're all just the same
|
|
|
|
|
You should do something like that:
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
Dim txt, SQL As String
txt = Me.TextBox1.Text.Trim
'you should connect to DB only if lenght is greater for example 3
If txt.Length > 3 Then
SQL = "select EMP_ID from EMP_TABLE where EMP_ID like '" & txt & "%'"
Dim dt As DataTable
'call some your function that returns datatable or. write code here
'dt = getDatatable(SQL,"SOMETABLE")
If dt.Rows.Count = 0 Then
MsgBox("This employee does not exist")
End If
End If
End Sub
|
|
|
|
|
can help me i want source code programme on vb (read write from usb port + vb)plz
|
|
|
|
|
Lowlevel reading/writing from/to a USB-port is a very advanced topic. Is there any particular apparatus that you are connecting to that port that you want to interact with?
You can read/write files on an USB-stick/drive by using the System.IO classes. Anything beyond that will probably require an SDK of the apparatus-manufacturer
I are troll
|
|
|
|
|
You don't read/write to a USB port. You talk directly to the devices on it.
USB is not a port, but a bus, like the expansion slots inside the machine. You don't talk to the slots, you talk to the devices in them.
|
|
|
|
|
how to convert images of types gif to jpeg using vb.net code ?
|
|
|
|
|
Hi,
load the image with Image.FromFile() or Image.FromStream(), then save the image with Image.Save();
use an overload that lets you specify both the filename and the ImageFormat.
i.e. read the documentation!
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
hi,
matrix shifting its column posion while copy & pesting on ppt, how to fix this ?
also is there any way to copy rdlc graph directly to power point ?
|
|
|
|
|
Hello friends,
This is naga , I am a beginner of dot net. Now i am doing project. I can generate the report all records to show in reportviewer using report.rdlc file.
But now I dont know how to pass the parameter to show the seleted records to generate the reports in reportviewer using report.rdlc file.
Now i was take too long for this problem.Can anybody help me for this Plz.
I need example code for this in vb.net. Please kindly help me for this problem.
Thanks in advance for ur helps.
Naga
<div class="ForumMod">modified on Tuesday, March 17, 2009 4:48 AM</div>
|
|
|
|
|
Hi,
I have an odd problem in my project.
With the following imported namespaces in my project :
Imports System.Windows.Forms
Imports System.Reflection
.. I cannot add..
Imports System.Windows.Media.Imaging
If I remove the Forms and Reflection namespaces, I CAN add add the Media.Imaging namespace.
Whats going on here then ?
|
|
|
|
|
andycee wrote: I cannot add
great statement. Care to give detailed facts?
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
umm...I think you have something wrong at your end ?
I can see the entire post!
|
|
|
|
|
I see a message, it fails to explain what is going on. "I cannot add" is as meaningless as "it does not work" or "it hurts".
Do you have no keyboard, is your display defective, do you get an error message (if so which one), don't you know how it should be done, have the necessary menu items disappeared or grayed out, what?
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
OK,
This works fine on its own...
Imports System.Windows.Forms
Imports System.Reflection
and this works fine on its own...
Imports System.Windows.Media.Imaging
But have them in the project at the same time, and I get the following warning :
Warning 1 Namespace or type specified in the Imports 'System.Windows.Media.Imaging' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
With the Forms and Reflection namespaces added, VS does not allow me to add Imports System.Windows.Media.Imaging without errors.
Any clearer ?
|
|
|
|
|
The Media.Imaging namespace only works in WPF apps, not Windows Forms. Also, I think all of the classes in that namespace require Vista. XP is not supported.
|
|
|
|
|
Yup, its becoming clear that WPF and the Forms namespace won't co-exist. However, WPF only apps do work fine under XP.
"The latest version of the .NET Framework, i.e. .NET 3.0, has a much better approach to properties, but it too has its problems. If you download the .NET 3.0 runtime and/or the SDK, you can make use of the new .NET 3.0 classes, but it also introduces a completely new graphics environment – Windows Presentation Foundation (WPF) – and a new set of forms and controls which aren’t compatible with the old .NET 2.0 Windows Forms classes. Of course you could just opt to create a WPF application and forget about Windows Forms, but what about existing applications?"
(from http://www.vsj.co.uk/articles/display.asp?id=649)
cheers
|
|
|
|
|
andycee wrote: However, WPF only apps do work fine under XP.
I didn't say WPF apps wouldn't work under XP. The is a WPF extension available, though not with the greatest of performance. I just said the classes under the Media namespace are not supported under XP. There's a big difference between the classes being supported by Microsoft on XP and whether or not they actually work!
|
|
|
|
|
Hi.
well here's the project description below.
so how to do this project.
did start the project, but a bit stuck, so how to do this?
cheers Marvin.
8.1 Array of a structure. Create a project to analyze an income survey. Thestatistics for each home include an identification code, the number ofmembers in the household, the yearly income, and the state of residence.
A menu will contain File, Reports, and Help. The File menu will contain
Enter Data and Exit. As the data are entered, they should be assigned fromthe text boxes to the elements of a structure.
The reports for the project will be sent to the printer and include thefollowing:(a) A four-column report displaying the input data.(b) A listing of the identification number and income for each householdthat exceeds the average income.(c) The percentage of households having incomes below the poverty level.
|
|
|
|