473,320 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Change Startup minimum time

36
I was unable to get these instructions to work:
http://bytes.com/groups/net-vb/85247...n-pause-longer

When pasting in the code below, I get an message that says "Statement is not valid in a namespace".

I am using .NET 3.5 for my program, and the code came from: http://msdn.microsoft.com/en-us/libr...splaytime.aspx

Expand|Select|Wrap|Line Numbers
  1. Protected Overrides Function OnInitialize( _
  2.     ByVal commandLineArgs As _
  3.     System.Collections.ObjectModel.ReadOnlyCollection(Of String) _
  4. ) As Boolean
  5.     ' Set the display time to 5000 milliseconds (5 seconds). 
  6.     Me.MinimumSplashScreenDisplayTime = 5000
  7.     Return MyBase.OnInitialize(commandLineArgs)
  8. End Function
Mar 18 '09 #1
4 1132
tlhintoq
3,525 Expert 2GB
When I try your line 3 in C# it wants <> not () but that might be a language syntax difference. I don't do VB
Expand|Select|Wrap|Line Numbers
  1. System.Collections.ObjectModel.ReadOnlyCollection<>
It might help to know which line VS is breaking on to give you that error message
Mar 18 '09 #2
Infog
36
The message is given for
Expand|Select|Wrap|Line Numbers
  1. Protected Overrides Function OnInitialize( _
  2.     ByVal commandLineArgs As  _
  3.     System.Collections.ObjectModel.ReadOnlyCollection(Of String) _
  4. ) As Boolean
Oh, and as a note, this code is in ApplicationEvents.vb
Mar 18 '09 #3
Infog
36
(woops... how do I delete a post....)
Mar 18 '09 #4
have you put the function within a class? or right beneath the namespace definition? make sure it's within your class statement..(Partial Friend Class MyApplication)
Mar 19 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Richard Cornford | last post by:
For the last couple of months I have been trying to get the next round of updates to the FAQ underway and been being thwarted by a heavy workload (the project I am working on has to be finished an...
1
by: Vikrant | last post by:
On my DB2/UDB system, some tablespace 'Minimum recovery time' is 2000-11-19 or some '1999-10-04' or different, for some tablespace theres is no 'Minimum recovery time' , what does it tell me? ...
1
by: wolftor | last post by:
Using Access 97, tools, startup, application title. When I change title, it take effect while my app is running. If I close app and reload app, the title change is gone ie. the title remains the...
6
by: Ramaraj | last post by:
Hi All, I am very interest to know the c-startup routine (like GNU gcc C-startup routine). and it s working principle and How this function is attached to operating system Thanks in...
12
by: David Sworder | last post by:
Hi, I'm writing an application in which a client (C#/WinForms) and server (C#/service) interact with one another. The client establishes a "session" with the server but for scalability reasons...
8
by: Boni | last post by:
Dear all, imagine this is scroll bar. Min|-------------|scroller|---------|Max The position of scroller is set with Value. How do I change the width of scroller? Thank you in advance, Boni
3
by: Steve Long | last post by:
I hope this isn't too stupid of a question but I'm looking for a way to change an item in a listview control when the mouse moves over it. I'd like to change its color and underline it for a...
0
by: PkRichard | last post by:
I want to change the x axis of my mschart. I can change the y axis with the following commando: With Chart1.Plot.Axis(MSChart20Lib.VtChAxisId.VtChAxisIdY).ValueScale .Auto = False .Minimum =...
2
by: rqcoder | last post by:
Is there a way to change a Service's startup type somewhere in the .net framework? I've been messing around with the System.ServiceProcess namespace which allows me to start, stop and pause...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.