|
Dave,
Quick correction:
ping -t device_name
I used greater than and less than on the first post.
Terry
|
|
|
|
|
Hello,
I am using the standard VB.NET and when viewing the Property Pages of my build application (Project / Properties), the Settings button for the Bootstrapper option is grayed out. I do have the option of choosing None, Windows Installer Bootstrapper, and Web Bootstrapper. Is this because I don't have the professional edition?
Vi
|
|
|
|
|
Hello,
Never mind my question. I was being an idiot. The Settings is only activated for the Web Bootstrapping option.
Thanks!
Vi
|
|
|
|
|
When building a setup program, is it better to set conditional statements such as having the setup program install certain components needed in order to run the application. For example, if deploying an application, would it make more sense to have the setup program search the user's computer for required components such as the .NET framework. If the setup program does not detect this, it would automatically install on the user's PC.
Also, what is the standard practice in software development and whether there is a downside to doing this? Or is it best to let the user install the missing components on their own?
Vi
|
|
|
|
|
Hello ,
I'm using VB.NET 7.0 and would like to apply a customized icon to a small application. I was able to apply the icon to the main form, however, I would like to apply it to the application when the user installs it on their computer. Currently, the user sees the default white window when viewing from Windows Explorer. Could someone please direct me to the proper area for this?
Thanks so much!
Vi
|
|
|
|
|
Simple. Open your project, and go to the Project menu. Click on <projectname> Properties at the bottom of the menu. In the left navigation pane click on Build, and you should see on the right 'Application Icon'. Click on the '...' button and you can pick an icon file to use or you can select from the drop down list an icon file that you already have as part of your project.
Click OK and rebuild your project and your done!
RageInTheMachine9532
|
|
|
|
|
Thanks so much Dave. Your instructions were extremely clear. I found it right away.
Vi
|
|
|
|
|
Hi Dave,
I tried exactly as you had instructed and saw the the icon file as added to my project. However, after building the solution and running the setup on my Win 2000 machine, I'm seeing the Paper icon instead (looks like the default). Is there another step or setting to go through?
Vi
|
|
|
|
|
A single icon file can store several icons in many sizes and color depths. Do you have copies of your icon in 16x16 and 32x32? It the only thing I can think of. I haven't run into he problem your having.
RageInTheMachine9532
|
|
|
|
|
Vi,
Did you ever resolve this issue? I am having a similar problem (shows default application icon when switching via ALT+TAB), but have also 'done everything right' as far as specifying the app icon in the VS 2003 build properties and have 16x and 32x icons.
...Steve
|
|
|
|
|
Hi Steve,
I was able to resolve this issue. I had to go into the (I forget what it's called because I don't have the program on this computer) setup of customizing the installation where you could customize the program to install on the desktop and the start menu and add the icon there. Once I did that, the icon did appear after I installed the program.
I hope you're able to resolve your issue.
Vi
|
|
|
|
|
Vi,
Yes I was able to fix it. It turned out to be the ShowInTaskBar form property which I had set to False. Changed it to True and all is now as it should be.
I used the False setting because I am minimizing the form down to the task tray rather than the task bar. Obviously the Windows O/S sees that and decides not to display the application icon during an ALT+TAB operation. I can live with that and work around it programatically.
Thanks for your help.
...Steve
|
|
|
|
|
Accessing cellphone memory i.e phonebook, phonecode, IME NO. etc
|
|
|
|
|
A bit more information would be helpful, like the model of the cell phone and what OS it's running.
RageInTheMachine9532
|
|
|
|
|
Hi everyone;
Right now I'm develop a application using VB.NET, nice. But i have to go all the machine to install this application, one by one. How i can create a page (I think using ASP) when the user click to the link, download my application and install?. If the application already exists into the user machine, the installation must be unistall first anf then install the new version.
Please help me on that.
Johnny Lizardo
|
|
|
|
|
In Visual Studio, select File-->New-->Project... or File-->Add Project-->New Project... (if you want to add the deployment project to an existing solution - which is useful because the setup project can take the output of another project in the solution which keeps everything nice and up-to-date)
In the list of project types select "Setup and Deployment Projects"
In the list of project templates select "Setup Project"
Then give it an appropriate name and location.
After this, it all really depends on what is in your project and how you want the installer to run.
EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
|
|
|
|
|
You can get trouble if your users don't have .NET support.
----
hxxbin
|
|
|
|
|
I have a really big problem here. This is what I need to do: Create a Class Library (I did that)in this class it will open a *.* file and once that file is open it needs to read that file and then count the number of characters, words, sentences and Paragraphs. I created a ReadOnly Property for each: Ex:
Public ReadOnly Property as Characters as Integer
For each of these properties they need to have hidden variables for the ReadOnly property to return. The hidden variables is where I need the calucaltion to be at to count the characters, words,...ect.
Can someone just give me one code for either one of the above counts and I should beable to go from there?
Thanks in advance!
|
|
|
|
|
Sorry -- I am a bit confused; do you need functions that determine the counts, or do you need to know how to code the accessors for the properties?
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Actually an example of both would be nice. Thanks
|
|
|
|
|
OK, this is a pretty basic example -- the way you parse words and sentences can be way more complex -- but it is a starting point...
Imports System.IO
Imports System.Text
Public Class FileCounts
Private _text As String
Private _name As String
Private _sentences As Integer
Private _words As Integer
Private _characters As Integer
Public ReadOnly Property Sentences()
Get
Return _sentences
End Get
End Property
Public ReadOnly Property Words()
Get
Return _words
End Get
End Property
Public ReadOnly Property Characters()
Get
Return _characters
End Get
End Property
Public Sub New(ByVal filename As String)
If File.Exists(filename) Then
_name = filename
_readFile()
_characters = _text.Length
_sentences = _text.Split(".").Length
_words = _text.Split(" ").Length
Else
Throw New ApplicationException("File " + filename + " does not exist")
End If
End Sub
Private Sub _readFile()
Dim sb As StringBuilder = New StringBuilder
Try
Dim fs As FileStream = File.Open(_name, FileMode.Open, FileAccess.Read, FileShare.None)
Dim b(1024) As Byte
Dim temp As UTF8Encoding = New UTF8Encoding(True)
While fs.Read(b, 0, b.Length) > 0
sb.Append(temp.GetString(b))
End While
Catch ex As Exception
Console.WriteLine(ex.Message)
End Try
_text = sb.ToString()
End Sub
End Class
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
bootstrapper does not install .net framework
I had written a simple application and added a setup project. To install this in a win'98 second edition, i used bootstrapper sample provided by microsoft. However it says setup is working but after few seconds an error occurs "application set up failure".
When i tried to install dotnetfx.exe manually, it invokes and says that internet explorer 5.01 v is required. Why not the same error comes when i install with bootstrapper. Isbootstrapper invoking dotnetfx.exe file or not?
Please help me urgently,
Thanx in advance,
Zaffar.
|
|
|
|
|
Dim FN As String = Server.MapPath("\esmp\temp\" & Session.SessionID & ".xls")
Dim xl As New Excel.Application
Dim wk As Excel.Workbook = xl.Workbooks.Add()
xl.Cells(2, 2) = "its ok"
wk.Close(SaveChanges:=True, FileName:=FN)
wk = Nothing
xl.Quit()
xl = Nothing
-------------------------------
that was the coding I wrote in the button click event. It does work fine...but it is creating a separate process every time, the event is fired...and the process from task manager could not get deleted automatically. If I click on button 5 times....5 processes named as "EXCEL.EXE" are staying in the processes of TaskManager.
So, How to make the process to close byitself after the completion of its work.
|
|
|
|
|
The Excel process won't close until your app closes. You could go through the pain of coding a subroutine that forces the process closed, but there is no reason for it.
You might want to consider setting up a global Excel object for the duration of your application. That way, the resources you use in Excel are available at any time and you only keep on instance of it open. When your application quits, so does Excel.
RageInTheMachine9532
|
|
|
|
|
Hi,
I need a way to find out before starting the download of a file with FTP if the file is being changed.
Ex: with a regular file, i can try to open the file EXCLUSIVELY.
Is it possible to do the same thing with wininet.dll and FTP
Thanks
Michel Dubord
michel.dubord@avon.com
|
|
|
|