|
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
|
|
|
|
|
No. FTP servers normally don't support that functionality unless it is an implementation specific extension, and I don't know of any that do. Normally, FTP servers don't support exclusive access to files being downloaded. The problem is the status of the file can change in between the request for the locked status and the start of the actual download. So with that in mind, by the standard specification, when you start the file transfer, the server can respond with a '450-File unavailable' error. But you have to try and start the file transfer to find that out.
RageInTheMachine9532
|
|
|
|
|
In the windows form, I have a datagrid which is binded with the dataset. How can I know the rows number of the datagrid after I load the datagrid.
|
|
|
|
|
If you are binded with Dataset,it is easy to get number of rows.
datasetvariable.Tables("Tablename").rows.count.it will work. here you will get more information. http://www.syncfusion.com/FAQ/WinForms
|
|
|
|
|
i'm new to .NET so please bare with me...
i have a library full of large jpg that i'm trying to put into a web server but they are too large (i have them in large format for printing purposes)
is there a way to create a new image file in a different size?? how would i go about this. basically i want to create a program that will go through all the directories and create a copy of the images that are half the size to post on the web.
thanks
|
|
|
|
|
Hi, I have a few forms of pocket pc. How can I transfer variables from one form to another? thank you!
|
|
|
|
|
I'm using VB6 to write a report and some of the reports's controls are being formatted with an underline at run-time even though it isn't in their font property or visible at design-time. Can anyone help?
If it's broken, I probably did it
bdiamond
|
|
|
|
|
Hi folks... Looking for an answer if you have one please.
I'm currently writing an game using vb.net. Its not the most graphical game on the planet but it's steadily growing... My question relates to size.
I already have 18 forms with over 5 Mb's of artwork and sounds. When I compile the program it comes to about 1.4 mb's (I'm keeping the graphics and sound separate for the moment.)
As I'm about a third of the way through this small epic I was wondering about the EXE. As it add new forms it grows (not surprising) . But what are the limits (if there are any).
Most modern game files are small 1mb ish loaders that feed off large data files. Should I be looking this way or am I ok to carrying on increasing the size of my ending EXE.
All the best Coops.
|
|
|
|
|
coopsqc wrote:
But what are the limits (if there are any).
Don't worry - You've got a long way to go before you hit these. You're more likely to need to worry about the amount of memory installed on your user's system first.
coopsqc wrote:
Most modern game files are small 1mb ish loaders that feed off large data files. Should I be looking this way or am I ok to carrying on increasing the size of my ending EXE.
I would recommend you would be better splitting it up in to logically separate DLLS so you can load and unload them as the game progresses and keep the runtime memory overhead down. As you're keeping the graphics and sounds separate that at least means, as I see it, these are loaded on demand rather than residing in memory for the duration so it keeps the memory overhead down a little bit also.
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
|
|
|
|
|
Colin Angus Mackay wrote:
I would recommend you would be better splitting it up in to logically separate DLLS so you can load and unload them as the game progresses
Unloading a .NET assembly isn't an easy thing to do. Even if you load it into a separate AppDomain, this will hurt performance, as all calls will need to go through remoting.
The resulting code can be much slower than loading everything on memory.
Perl combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski
|
|
|
|