woodland30033's Q&A profile
Visual Studio Express Editions Backgroundworker copyfiles with progressbar
with reference to ahmedilyas code below to copy specific file types with progressbar... how can I run this code with progressbar in a backgroundworker and trigger the progressbar progress http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=833129&SiteID=1 Dim theExtentions() As String = { "*.jpg" , "*.bmp" } For Each currentExt As String In theExtentions Me .ProgressBar1.Minimum = 1 Dim theFiles() As String = Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), currentExt, SearchOption.AllDirectories) Me .ProgressBar1.Maximum = theFiles.Length Me .ProgressBar1.Value = 1 Me .ProgressBar1.Step = 1 For Each currentFile ...Show All
Community Chat Here is my first application
About a month and a half ago, I discovered Visual Basic 2005 Express and now, here is my first application. My first software "baby" is a simple Stopwatch accessory. It features a stopwatch that counts up to tenths of a second, and a countdown timer. Documentation is included in HTML and plain text formats. Installer and uninstaller are provided. Main UI screenshot Coundown dialog screenshot Source English and Spanish executables with installer/uninstaller and documentation. Hey, looks cool from the screenshot. However, I think you might get more interest if you made the source code available instead of an EXE. Nothing personal, but I don't download executables if I do ...Show All
Visual C++ Return Location of Cursor Click
Is there a method of returning and then testing the location of a cursor click in VC++ I have a form with an imported bitmap of a controller with some buttons. I want to be able to click one of the buttons which will in turn flash LED's. I want to be able to click the image of the button and have the code recognise that the click occurred on the form in the general area of the image. The correct LED should then light. So to clarify, I want to be able to click anywhere on a form, that contains an imported picture and have the code recognise certain areas and give the correct output. Get the rectangle where you are going to track the click You can use PtInRect function to know where the given point ...Show All
Windows Forms Obtaining time from the DateTime Picker
Hi! I am setting up a little program that allows me to schedule my appointments. I have two datetime pickers. The first one allows me to choose the date. However, in the second datetime picker I want to also be able to choose the time of this appointment on the date I have specified. Is there any way of choosing the time from the date time picker I am unable to do it as all the second datetime picker displays is todays time instead of the time I want to have the appointment. Thanx Sorry, but I am afraid it doesn't. I already tried it. You see, in a datetime picker, you can specify a future date, and it will display this future date but in addition it displays the current time only. I want to be able to sp ...Show All
Visual Studio Custom Add Item
Hi All, I will try to be as brief as possible. I've been making a DSL project for 2 months now. And somehow my application need to access the inner-structure of Visual Studio. I went to DSL forum to solve my problem, but someone pointed me to this forum. I hope there is someone here who can give me some ideas, or point me to some related threads. It goes like this, when I run my DSL project I can add an item in Experimental Window by left-clicking the Debugging in solution explorer and then a window with templates appears. There I can choose my DSL template for the file I want to add. My question is, how can I perform this by only clicking a button I made by myself How can I show the Add New Item Template window by clicking my button ...Show All
Visual C# Form.Close() or Form.Dispose()????
I am trying to figure out what i need to do too well let me explain differently.....I have a login in form then once i login a new form comes up with some information in it but the login form is still there.....So my question is How do i get rid of one form when the new one is loaded You should be fine with just calling Close() on the form to close it unless you've got some resources that the form uses that you need to explicitly clean up in which case calling Dispose() afterwards to do so would be good as well. ...Show All
Visual Studio Express Editions BindingManagerBase Position_Changed Problem
Hey Everyone, I have a program that has several textboxes bound to 1 dataset which contains only one table. When the form loads, the data is displayed in the textboxes allowing the user to add, edit, delete, etc., as well as navigate through previously entered records. However, when trying to navigate through the records, it doesn't do anything. The recordCountLabel, which keeps track of the record number that is displayed, changes, but the first record stays on the screen. Here is a little of my code. Protected Enum Record RecordNum DDate Shift ATO Vehicle End Enum Private Sub Form_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'Loads data into the 'TripSheetI ...Show All
Visual Studio Team System Custom rule to validate the value of a string literal
Hi, guys. I have methods that takes a string argument that is utlimately passed to String.Format. Stuff like "{0} has value {1}". I've written an FxCop rule that can ascertain when these methods are called but I'm stumped on how to actually extract the contents of the string literal in order to analyse its contents. Any clues It must be possible as Reflector.exe can display the strings. Guess I'm just missing the correct API. Whilst I'm at it, do you know of an existing rule to analyse a format string Kind regards, Angus ps. If there's a way to improve my "TraceMethodTakesStringFormatter" so that I don't have to do a string comparison on "System.String()", I'm all ears ;-) public override ...Show All
SQL Server Parameters in named queries
Hi, I try to build a named query that would either take a parameter or run a procedure to get a value. The idea is to have a named query used by the cube partition. The named query must limit the lower boud time item according to a complex logic build in a stored procedure. First I am not sure if it will work even if I can get the named query to behave this way, however I would rather avoid to alter the view behind the cube. If possible, how can I create a parameter in a named query, something like this in pseudo-code = (EXEC up_FirstCrawl_Qtr) SELECT * FROM dbo.V_ST_Crawl WHERE (RSD_QRTR = ) Or SELECT * FROM dbo.V_ST_Crawl WHERE (RSD_QRTR = (EXEC up_FirstCrawl_Qtr) ) Thanks, Philippe ...Show All
.NET Development .Net 2005 app fails if built on XP Home machine
I have been developing an application that utilizes .Net remoting as well as some unmanaged code. It is written in C# and uses Windows Forms (no ASP, SQL, etc). I have been building it on an XP Home machine and testing it on multiple XP Pro machines. After a recent enhancement, if the app is built on XP Home and run on XP Home, it locks up the OS requiring a reboot. If that same build is run on an XP Pro system, it silently fails (hangs) but doesn't crash the system. If I build the app on an XP Pro system, I don't have this problem. In attempting to debug this I tracked the code into a thread Start method. Executing the Thread Start crashes the Home system. I admit I am making an assumption about Home vs. Pro but, other than one bein ...Show All
.NET Development i want the mysql connector for .NET 2.0
hi .. i want to access the mysql from vb.net 2005 from where i can to download the mysql connector for .NET 2.0 thanks in advance. Follow this link: http://dev.mysql.com/downloads/connector/net/5.0.html ...Show All
SQL Server Dynamic Cube partitioing in MSAS2000
Hi, Pl give me a way, by which i can dynamically make the cube's partitions. Actully every month on start i have to create a partition for that month manully. Can it make it automatic by any way Pl help me for this regard i need it urgently. Thank and Regards Abhishek Hi Matt, Thanks for your response, But i am working in MS AS 2000. Pl help me for SQL Server 2000 reference. Regards Abhishek ...Show All
Visual Studio 2008 (Pre-release) OnChildAdded/removed event
I have to know when my object (derrived from FrameworkElement) get or lose it's childs. How to implement it Are there any existing events might help with this case Thank you Wow, nice find, altough my code can work sas you expect, but overriding the OnVisualChildrenChanged method is way much better, I will add this stuff into my WPF scout. Sheva ...Show All
Visual C# Why ImageList can not dispose the image it contains?
It's strange that ImageList can not dispose the image it contains, when I invoke imagelist's dispose method. private void Form1_Load( object sender, EventArgs e) { ImageList images = new ImageList (); Image image = Image .FromFile( @"xxx\bookmark.png" ); images.Images.Add(image); images.Dispose(); this .pictureBox1.Image = images.Images[0]; } I have invoked imagelist's Dispose method, but the picturebox can still show the image in imagelist. Why ImageList inherits its Dispose() method from Component. Component.Dispose() does nothing but remove the component from the container. ImageList does have a protected virtual void Dispose(bool). It properly calls Dispose on all the i ...Show All
.NET Development suggestion on DB design
I have a db I would like to design and code against, but I have a FK contraint issue I believe and I think I need to redesign this. I would love to get your input on what to do please To simplify things, I have three tables, Teams, Arenas and WebLinks. Each row in Teams and Areanas can have multiple rows in WebLinks (one to many in both tables). I would like to use some referential integrity (FK constraints ), but I'm not sure how to do this If I implement as I have suggested above with three separate tables, then I can't put the FK on the WebLinks table as a row from Arenas won't be in Teams and the FK will fail. Any suggestions would be greatly appreciated. Thank you. You can accompl ...Show All
