Software Development Network Logo
  • Visual Studio
  • Visual C++
  • Windows Forms
  • SharePoint Products
  • Audio and Video
  • Microsoft ISV
  • Game Technologies
  • .NET Development
  • IE Development
  • VS Team System
  • Smart Devicet
  • Visual FoxPro
  • Visual C#
  • Visual Basic
  • SQL Server

Software Development Network >> NeilSt's Q&A profile

NeilSt

Member List

j3ns3n
vdv_phuong
syhzaidi
JonesAtl
A.Kahn
msmuser
RussP
Jose Rojas
Ayhan Yerli (TR-NL)
NumberKruncher
thekaran
KSmitty
Hoon1234
mschelstrate
Adam R.
Delboy62
Wayne Arant II
nattylife
CODUDE84
BoschChou
Only Title

NeilSt's Q&A profile

  • Visual C# Help: Slow Launch application at first run after each reboot

    Hi, I've developed an application (only one screen, not too big,published size is about 4MB) It runs expected. The problem I'm facing is that for a given PC, it takes quite long (1-2minutes) to launch this program. The screen waits at the Launching Application message "Verifying application requirements. This may take a few moments". This occurs only at the FIRST launch after EACH REBOOT. Subsequent launching of the program only takes a fraction of seconds. I don't understand why it happens. Hope someone can give me insights. Thanks! best regards, jackLing Hi, Thanks for your reply again. I get what you mean. I have published my application to a shared folder then run ...Show All

  • Visual C++ static const member variable initialization

    Hi, I want to initialize a member variable of a class by calling RegisterWindowMessage and i want to keep this variable as static so that this variable is initialized only once during the execution of the program. When i declare the variable as static, i am getting an error which says that only const static variables can be initialized within a class. When i make the variable as static const, i get the following error - Error 11 error C2057: expected constant expression I think this is because the value i am assigning to the variable is the value which the function RegisterWindowMessage will return and this will not be a const value. Could anyone please suggest a way out of this. Thanks in Anticipation, With regards, ...Show All

  • Visual Basic Superconstructors?

    What's the general syntax for using inheritance in VB Say I've got ClassSuper and ClassSub, ClassSub inherits ClassSuper. How do you access the super constructor How do you access values in the super class Thank ya, exactly what I needed. And just to make sure, MyBase always goes up one level, right So if I had SuperClass, SubClass and SubSubClass, to access SuperClass's constructor you'd use MyBase.MyBase.New() ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Runtime model loading

    I am trying to make a level editor with XNA. Unfortunately, I've run into a little snag. I need to load a model from a user chosen location, but as far as i know models need to be first loaded into the programming solution before they can be loaded through the content manager. Is there anyway to do this at runtime fora model thats not part of the solution As long as you can get the models into the .xnb format using MSBuild or VS on the back end, your app should be able to load them at run time. You need to derive from ContentManager and override OpenStream to read assets not stored in the local file system. Won't work on XBox, though. ...Show All

  • Visual Studio Tools for Office How to span columns selected in owc11 spreadsheet?

    thx. owc = Office web components. These aren't part of VSTO. The better place to ask how to handle them is the dedicated newsgroup. I suggest you give a bit more information about what you're trying to do, when you ask :-) http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.web.components&lang=en&cr=US ...Show All

  • Visual C# Help on creating a generic singleton class

    I am on the process of creating a generic class for the singleton pattern. My implementation as follows: public class Singleton<T> where T : new() { public static T getInstance() { if (this_ == null) this_ = new T(); return this_; } private static T this_; } Sample use would be: Singleton<Logger>.getInstance().someMethodHere(); The problem with this implementation is that the target class that would be converted into a singleton must have a public constructor, which is in the first place I am preventing it. I have implemented a simliar approach in C++, however I've used a "friend" class that sould also be declared on the user class. Please advice. Thanks. (BTW, th ...Show All

  • Visual Basic Safe threading

    I am threading a section of my application and i get this error Cross-thread operation not valid: Control 'main' accessed from a thread other than the thread it was created on. how can i thread this saftly Public Class Home Dim contthread As New Threading.Thread( AddressOf fillControl) Private Sub Home_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load curUser.Text = Login.UserLabel.Text Call acctsCall() contthread.Start() End Sub Public Sub fillControl() dep = New DepositControl main.Controls.Add(dep) wid = New wdrawd widCont.Controls.Add(wid) mng = New Managecontrol mgnCont.Controls.Add(mng) End Sub ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Transparency Level

    Hello All, I know all about the alpha blend and all that great jazz.. I can create sprites with transparency pre defined in them with no problem. The problem is what if i want to change the transparency of the hole sprite on the fly in XNA say for partical effects as fire and water... I cant seem to find a property to allow me to do this such as_sprite1.transparency = 69 is it possible to do this in XNA Game studio.. I hope so dagfari wrote: In the spriteBatch.Draw method, instead of using Color.White, you can use your own color like so; Color Shadow = new Color (0, 0, 0, 64); the parameters are (Red, Green, Blue, Alpha) Thanks for the info this worked great for me.. ...Show All

  • Visual Studio Express Editions How to save and open projects

    I started learning Visual Basic Express Edition yesterday and can't work out how to open projects once i've saved them. i can't find the answer in the lessons. i can see where the files are but when i tell it to open them nothing appears. am i being really stupid they run when i press f5 but i can't see the design form . ...Show All

  • Smart Device Development GPRS Connect at Startup

    Hi again (again), Last question, I promise. I'm looking to start the GPS up wen the device starts. I don't mind changing hte registry for this, or doing it programatically. All the stuff I have found is either for C#, or the registry info doesn't exist in my phone. Once again, any help would be very appreciated. Cheers, Dan. haha, I had that, but it was throwing errors. I realised later why, but never put it back in, thinking the way I created the variable would take care of the size parameter automagically. Anyways, I added that in, and it still didn't solve the problem. I didn't bother checking the HRESULT cause if it didn't work, the errors for HRESULT didn't seem like they'd be much ...Show All

  • Visual Studio Express Editions Global Variables? Pointing/Casting? Structs? Simple Question.

    Hello. All I am trying to do is take a LinkLabel on a form and when you click on it it loads another form with a webbrowser and sets the browser to go to that link. I am getting stuck because I cannot get my variables from one form to another. private : System::Void linkLabel1_LinkClicked(System::Object^ sender, System::Windows::Forms::LinkLabelLinkClickedEventArgs^ e) { IE^ f2 = gcnew IE; System::Windows::Forms::DialogResult retval = f2->ShowDialog( this ); } In the new form I cannot get the: this->LinkLabel1->Text I have tried: form1->LinkLabel1->Text I have tried making a global variable but it says: .\dl2.cpp(8) : error C3145: 'someting' : global or static variable may not have managed type 'Syst ...Show All

  • Visual Basic How to clear browser history

    Hello I am trying to figure out a way to clear browser history from my dektop application, ideally for both FF and IE. Anone know of a resource or some code to help me out Thanks! It's actually in C# and won't be of any use to you, it was just a question like yours on how to delete the history and was pretty much concluded that nothing much can be done about it http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=799879&SiteID=1 pretty much severe Windows hacking on trying to do what you want would be done which is of course not recommended especially when distributing your application to clients ...Show All

  • Visual Studio Express Editions Compiling error, does not recognise "Windows"

    You're all probably going to think this is an absolutely stupid question, but I keep getting an error with words like "Windows" and "Button". I'm littoraly just starting out at programming and am using the "Sams Teach Yourself in 24 Hours" book for C#. The second program in there is the one that's giving me trouble. We're told to just type straight in, and the Microsoft compiler is one they recommend, so I would have thought it would work fine. The code is: using System; using System.Windows.Forms; namespace HelloWin { public class MyForm : Form { private TextBox txtEnter; private Label lblDisplay; private Button btnOk; public MyForm() { this.txtEnter = new TextBox(); this.l ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Xbox 360 Headset

    Hello, i want to know if and when how, i can use the Head set for the Xbox 360 game i am developing. Any help would be greatly appriciated. kcchesnut wrote: i'm interested in this too. the key is if we get access to the actual headset audio stream No, wireless headset (and hence microsophone) is not enabled in this release. ...Show All

  • Visual Studio Team System Spurious AvoidUnnecessaryStringCreation

    Using a switch statement containing a call to String.ToUpper() as the source expression results in (what I think is) a spurious AvoidUnnecessaryStringCreation warning. Example: string foo = "test" ; switch (foo.ToUpper()) { case "FOO" : break ; case "BAR" : break ; case "TEST" : break ; default : break ; } This code snippet results in the following IL: .locals init ( [ 0 ] string text1 , [ 1 ] string text2 ) L_0000: nop L_0001: ldstr "test" L_0006: stloc.0 L_0007: ldloc.0 L_0008: callvirt instance string string :: ToUpper () L_000d: stloc.1 L_000e: ldloc.1 L_000f: brfalse.s L_0040 L_0011: ld ...Show All

©2008 Software Development Network