piotrfe's Q&A profile
Visual Basic How To Call Diffrent Controls
I Have Too Many PictureBoxs In My Form I Need To Call Them All In Loop Like Dim x, b as integer For x = 1 to 100 b = Rnd() * 100 PictureBox(x).Image = ImageList1.Images.Item(b) Next The Proplem Is PictureBox(x) i need to call PictureBox1 , PictureBox2 ..... etc You can't do this, you can't generate variable names like this without reflection. Your second best bet is to create an array of picture boxes and use that. Your best bet, IMO, is to create an array of structs that contain an image and a Rectangle, and use this to draw your images in your on paint handler. IMO ...Show All
SQL Server got error when using stored procedure with temp table in it
I got an error message when i created a dataset using a stored procedure with temp table in it. The error is: "could not generate a list of fields for the query. check the query syntax or click the refresh fields on the query toolbar. invalid object name ' #indented' ". after I click on the refresh button, everything looks fine. But after I put the fields in the table, and go to the Preview, it is a blank report. Does anybody know what happened 3x a lot! Your problem occurs because the sproc isn't returning metadata (column descriptions, etc.) from your temp table dependably -- No ...Show All
Visual Studio Team System Single server TFS setup on Win2003 x64
Tomorrow I will be installing Team Foundation Server Workgroup Edition on a box running Windows 2003 R2 Standard x64 Edition. I've been trying to get some handle on how to do this and if it's even possible at all. So far the most info I've found comes from a 6 month old Rob Caron blog stating that: Team Foundation Server is also a 32–bit application and when installed on a Windows 64-bit operating system, it should also run under WOW64. However, due to resource constraints, we are not able to provide full test coverage for this scenario in time for RTM. So, like I said, I'll be checking this out tomorrow and try to get it to work bu ...Show All
SQL Server Problem with logging/System::ErrorDescription variable
Hi, I've come up against a problem in my error handling. I have a package-level OnError handler which is a SQL Execute task. The SQL execute task constructs a SqlStatementSource expression to insert the error details into a table. This works fine and I've tested it by introducing various errors in the package. I have another SQL Execute task, which executes a SQL script from a file connection. This is a very long script (100s of lines) and works fine. I introduced a deliberate error into it and got the following errors: Error: The variable System::ErrorDescription contains a string that exceeds the maximum allowed length of 4000 characters. ...Show All
SQL Server Division Problem
Hi there, I need some help on a query I'm trying to build. I have two columns, one has the current months value and the other has the previous months value. I only want to select the rows where the previous and current values differ by more than 10%. The problem I have is that some of the rows have values of 0. Any help is appreciated oh. . . and my query has a mistake - select cur.TaskID, cur.MonthID, cur.MonthValue from MonthData cur left join MonthData prev on cur.TaskID = prev.TaskID ...Show All
.NET Development Resetting Web Services?
Hi all- I have deployed a set of ASP.NET 2.0 Web Services on a LAN server. I make changes to my services code, redeploy the website, but the old version of my web services still show on the server. How do I reset Web Services on the server so that I can see the new ones I've created Thanks! Are you referencing the service in another application and not being able to see the updated service definition Or you mean, you cant see the updates when you open the browser.. Any first case, right click the web reference and click on update web reference. second case, might just want to clear the browser ...Show All
Software Development for Windows Vista How use Italian Keyboard!
Hi! I'm using Vista...but...How CAN I use the Italian Keyboard I can't use this EN keyboard...Please help! THANKS ...Show All
Smart Device Development Adding CheckBoxes to a ListBox
Hi, I am trying to add a checkbox to everyitem I add to a listbox. You used to be able to change the style of the listbox in VB 6 to 2-Checkbox, this is no longer avaiable. Does anyone know who this can be done Regards, James ...Show All
Windows Forms Bind DataTable to GridView problem
Hello all I am using microsoft enterprise libraries for the first time, I wrote code to create database object and command, then I execute the command using Executedataset(command Object), I have no problem till this, then I try to get a datatable for the first item, to asign it to the Gridview I have, I got a null referance exception .. Here is my code: FileConfigurationSource fileSource = new FileConfigurationSource(@"filesource.config"); DatabaseProviderFactory dbFactory = new DatabaseProviderFactory(fileSource); Database dbLTC = dbFactory.Create("LTCConnectionString"); DbCommand dbCommand = dbLTC.GetSq ...Show All
Visual Studio Team System lost permissions after installing Team Build
This issue concerns Team Foundation Server December 2005 CTP. Scenario: The server was deployed on a single-server and in a corporate domain environment. Team Build component was NOT originally installed. Customer began using the server and creating various team projects and checking code into source control. All was fine. The Team Build component was then installed on the same TF single-server. It was tested out successfully and customers could build their source and continue using Team Explorer as usual. The issue occurred after we restarted the Team Foundation Server (after testing out that Team Build was working nicely). Afte ...Show All
SQL Server Introduction to Data Types??
Does anyone know of a good place to get an introduction to the Data Types in SQL Server I come from and Access background, so I'm used to auto-number, text, etc. I just need to figure out which types I need to be using for my data.... Any help is appreciated. If you're looking for Books On Line itself, it can be downloaded from here: http://www.microsoft.com/downloads/details.aspx familyid=BE6A2C5D-00DF-4220-B133-29C1E0B6585F&displaylang=en /Kenneth ...Show All
Visual Studio How email a report as an attached .pdf
Just wondering if there is a white paper or article to tell me how to do the following: I have a report that I access in VS in local mode. This has nothing to do with the web or HTML. I simply have a report and I would like to make it easy for the user to email this report (as a .pdf) to someone else. How do I do this Raj, you're a STUD!! I got your link to emailing a report. I haven't looked at it yet but if it works, it's gold!! Thanks YOU! ...Show All
Windows Forms how to keep ours form on top (in front) by using VB
how to keep ours form on top (in front) by using VB thanks alot Set your form's TopMost property to True and it will remain in front <u>within</u> your application. Otherwise, to keep your form at the top of ALL the windows on a PC, try this: Private Sub Form1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handle ...Show All
Software Development for Windows Vista HELP! shell extensions on Vista
i'm having a hard time getting my shell extension to load in Vista. The same extension registers and loads fine on XP, but not Vista. Something must have changed. I had a go at building and installing the sample extensions from dino E's shell book ... they failed to register ! Vista is disallowing regsvr32 to write the usual shell extension keys out... I'm logged in as Administrator. I have even tried it from a CMD box 'run elevated' - no joy.... ok so how does this work in the new World PLEEEASE will someone from the microsoft shell team step in and show me how to register and install a shell extension on Vista 5270. thanks & ...Show All
Windows Forms how can i programaticaly delete the selected item (row) from a listview with 3 or more columns ?
Hi. I make a form with a listview. I managed to programaticaly add items on the listview but dont know how to edit or remove the selected rows. Can anyone help me Thx. The ListView control's MultiSelect property is set to true by default. If the user selects more than one item, your code will only delete the first one. If you set ListView.MultiSelect = false, then this code is fine. ...Show All
