r3n's Q&A profile
Windows Forms Splash Screen in VB 2005
I have a Small question i used the preset splash screen that is available in VB 2005 now when i run my project it only shows the splash screen for about 1 second how would i go about controlling the time to show the splash screen before it to continue. Usually the reason for using a splashscreen is to show the user something while the main form is waiting to show due to preliminary processing for the application. The last thing you want to do is put the app to sleep. Use the My .Application.MinimumSplashScreenDisplayTime property. You can't set this in the Startup event. Set it in the New constructor for the SplashScreen before InitializeComponent(). ...Show All
Visual Basic Best place to put application initialisation code
Hiya, I'm trying to get to grips with using a VB2005 splashform. Where's the best place to put in initiliasation code, like loading in XML settings, checking DB connection Is it in the Application OnInitialize function, the splashscreen_Load sub or somewhere else I'm a little concerned in that the splashscreen will close after X number of seconds. How do you ensure that all the initialisation is done before it closes Many thanks John good one. Well it makes logical sense that if you are going to be initializing your form in some way, to place the code there rather than calling it from another method, since you create a "new" instance, it makes logical sense that ok, you ...Show All
Windows Forms Thread Killing (That do some Extensive Work)
Hi, I am intantiating thread that do more extensive work, i.e. executing query on FoxPro 2.6 through ODBCDataAdapter with VisualFoxPro driver. Since the query executing is Complex and navigating through 870000 records and taking a time about 2-2.5 minutes. Once the thread is started and goes for data retrival. Meanwhile if I try to close the form. The thread is still running. I have also added Code for killing thread in Closing event of form using Abort() method. But it does not kill the thread. Instead the threadstatus returned is AbortRequested. Please help me in this regard, as Closing event fire the thread should returned and leave the resources. Thanks Thank you Sir, After this long discussion I conclude that only way I use is ...Show All
Internet Explorer Development Sharing data between different instances of BHO
Hi I work in a single sign on system that uses a BHO to complete logins in IE. In IE6 everything worked fine, but now doesn't It seems that the data used to complete the fields isn't beign received. The data is passed throught a shared data memory area inside the BHO's DLL. The question is, with the new security changes, could be that IE7 doesn't allow sharing data between different BHO instances and a controlling app Each tab haves a BHO instance A BHO can send messages via PostMessage to applications I'm testing the BHO in a XP SP2 so no protected mode is involved. And I'm coding in VC++ Thanks a lot Sebastian To answer some of your questions: Yes, Each tab does have its own instance of the BHO. ...Show All
SQL Server Best way to launch report from a C# Winforms app?
I'm new to SSRS. I would like to launch a report from a C# desktop application, supplying parameters programatically. I was able to do this using System.Diagnostics.Process p ... then p.Start(@"(path)\iexplore.exe","(reportURL)"); I'm betting there's a much better way to do this. Ideally I would like to create an IE window that shows only the report, that is, only the report viewer toolbar is visible, the IE toolbars and menus are hidden. I want to specify IE as the browser in case some other browser is installed as the default web browser. Can anyone link me to a tutorial or provide a code snip Thanks. Alas, it is at present still a .Net 1.1 application. I'll use ReportViewer when I u ...Show All
Visual Studio Team System NUnitASP Style Tests
How do I write NUnitAsp style unit tests with the UnitTesting framework There was an answer posted here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=10378&SiteID=1 but the code no longer seems to work. Or I can't find the namespace that these attributes are in <WebServerType(WebServerType.WebDev)> _ <WebApplicationRoot("/WebSite")> _ <PathToWeb(@"C:\WebSite")> _ Thanks Aeden This may sound dumb, but what dll is that namespace in I don't see it in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll I looked for the attributes in the namespace Microsoft.VisualStudio.Testi ...Show All
SQL Server nested set model
Hi, I am storing some hierarchical information using the nested set model. I would like to transform the data into XML to bind them to a TreeView object. Did someone do something similar before. Any input would be very much appreciated. Many thanks. Christian -- An example for SQL Server 2005 only, may be helpful CREATE TABLE MyTable(Name VARCHAR(10),lft INT,rgt INT) INSERT INTO MyTable(Name,lft,rgt) SELECT 'Top' , 1 , 12 UNION ALL SELECT 'Level1A' ,2 , 3 UNION ALL SELECT 'Level1B' ,4 , 11 UNION ALL SELECT 'Level2A' ,5 , 6 UNION ALL SELECT 'Level2B' ,7 , 8 UNION ALL SELECT 'Level2C' ,9 , 10 GO CREATE VIEW Adjacency -- Converts the nested set to an adjacency list AS SELECT P.Name AS Par ...Show All
Visual C# Retreive local computer's acount password?
How can I retreive the local computer's accounts passwords Is there a way to search through all of the keyboard characters to determine the password characters one by one Thanks, (PS: I'm not trying to break into an account) At one time SysInternals had a brute force password cracker for WinNT. It could take days depending how secure a password you had, but it WILL eventually get it. Don't know if they still have it... http://www.sysinternals.com/ ...Show All
Software Development for Windows Vista Blue Screen of Death
I recently purchased a copy of Windows Vista Business addition. I currently own a copy of Windows XP home edition which is installed. I want to have dual booting operating systems, I have a 120GB SATA 7200 RPM hard drive and a 200GB IDE Maxtor 7200 RPM. XP is installed on the SATA and i want to put Vista on the empty 200GB hard drive. I insert the disk and reboot my computer. When it boots off the CD i enter my key and all that. Then it asks if i want to upgrade or fresh install. I choose fresh install. I click the empty 200GB hard drive and it copys the files finishes everything then reboots. When Vista tries to load up i get a blue screen of death and a system crash error, it will reboot its self and try to load it ag ...Show All
Visual Basic Convert a string to decimal (where punctation is [,] instead of [.])
I am converting a string to a single, but I don't get the expected results when converting a string where the punctation mark for the decimal is comma. lets say the text is 6.5 Dim sngMyNumber As Single sngMyNumber = CSng(txtInputA.text) The result is the single number 6.5 .. SUCCESS :) But when the text is 6,5 (which would be a common punctation mark for my application) Dim sngMyNumber As Single sngMyNumber = CSng(txtInputA.text) The result is 65.0 and not 6.5 which I expect. Is there any way to instruct VB to handle [,] in the same way as [.] when converting strings to numbers I could of course handle the string before conversion, and replace any [,] with [.]. Before I do this, I'd like to know if there is any 'standard' wa ...Show All
Visual Studio Express Editions linking between forms in the same project
is it possible to link between forms within the same project basically i want a button to load up another form, if this is possible what code will i need thanks If you have two forms say Form1 and Form2 with a button on Form1 then the following will create an instance of Form2 and display it. Dim F As New Form2 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click F.Show() End Sub You could also use ShowDialog which would show the form modally. ...Show All
SQL Server Equivalent of DTSStepExecStatus in SSIS
Hi, I am migrating a dts package into SSIS.The dts package has a dynamic property to set the execution status of a data pump task in the package. the dts paskage is setting the DTSstepexecstatus of the datapumptask to 1 or 3 ie waiting and inactive. The dynamic property cannot be migrated to SSIS. May i know any equivalent property in SSIS to DtsStepExecStatus property of Dts. Thanks in advance Neethu You can use expressions on precedence constraints: set some variable in the script task to true/false, connect the script task with the data flow task with precedence constraint, double click the precedence constraint, select expression and enter the @varName ...Show All
.NET Development .NET 1.1 vs .NET 2.0 behaviour with Image fields
In not .NET 1.1 and 2.0 the System.Type mapping for a SqlDbType of Image is byte[]. If you use this type to create a SqlParameter (with a value of DBNull.Value) and then use this in a SQL statement of the form "Update table Set ImageField = @parm where ......" Then in .NET 1.1 it works, but in 2.0 you get an Exception "nvarchar is incompatible with image" How can you determine the correct System.Type to use for Image fields, and why is the behaviour now different The application code is generic and not tied to specific database designs. Thanks Tony Here is my sample code which will generate the error. Create a table with an image field, and update the ...Show All
SQL Server Cataloged Index. Must be text data type?
I have some columns that I just Cataloged Indexed. The data type in these columns are Varchar. For cataloged Indexed columns for full-text search, must the data type on these columns be of text data type ...Show All
Visual Studio Express Editions Inherited forms: lost controls :(
I have a base form A that has just the basic Accept and Cancel buttons, and some coded functionality for data base apps. When in the designer I create a new form B and by code I specify it inherits from A, visually I can see the two buttons coming from the base form, with the usual lock icons. My problem is when I run for the first time the program, in run-time the buttons disappear; when I go back to the child form using the designer, buttons are just gone.... What’s wrong is it a bug If any one can help, I can send you required files. Thank you, Guillermo Click on my name in the post to find my e-mail. I'll try to look at it if it comes through okay. (I am not a VB guru m ...Show All
