cleomc's Q&A profile
Visual C# object disposed exception
i dont know what to do with this exception!!if i open the form for the first time all its correct, but when i try for the second i receive this exception please help me!! tnx private void OrgProperties_OnClick(System.Object sender, System.EventArgs e) { //per invalid cast exception devo usare questo metodo &nbs ...Show All
Visual Studio Express Editions Reference an Array using a String Variable
I want to be able to pull an array using a string that I built. Is there any way to do this Here is my example code: dim ary1() as string dim ary2() as string private sub test() dim totalLength as integer dim i as integer totalLength = 0 for i = 1 to 2 totalLength = totalLength + getAryLength(i) next i end sub private function getAryLength(i as integer) dim ary as string ary = "ary" & cstr(i) 'This is the part wher ...Show All
SQL Server Simulating Errors
How could I create an allocation or consistency error (or otherwise corrupt a db) in a database to test a backup and restore system it either does not return allocation or consistency errors from changing a few binary lines, or too many binary lines are changed and it does not recognize the file as a database file and will not attach it. Is there another way, or is there certain lines of binary i should look for to change ...Show All
Visual C# else or not else?
Hi all! Just a little question. Should I use rather if (cond) return a; else return b; or if (cond) return a; return b; What's the actual difference at runtime What do you prefer Thanks for any hints! The most common standard here is to define a default return value ( usually for failure ) at the top of your function, and set that value on the way through, having only one exit point at the ...Show All
Visual C# How many threads running from the threadpool in a point of time
How can I know how many threads are running from the threadpool in a point of time in my app Thanks in advance Try using ThreadPool.GetAvailableThreads() and subtract it from ThreadPool.GetMaxThreads(). Am I missing something ...Show All
SQL Server Select Distinct
Hi there, I run that query SELECT Products.recid, description, partno, price from Products JOIN stock ON Products.recid = Stock.recid Now I want to run the same query but I need the Products.recid to be Distinct, I've tried this but it won't return a distinct value SELECT DISTINCT Products.recid, description, partno, price from Products JOIN stock ON Products.recid = Stock.recid I don't get why it won't return a Distinct value ...Show All
SQL Server average of selected members?
I got a measure caled [number of persons] Now i want another calculated meassure which shows the average number of persons within the selected time period. My timedimension is : [Date].[Period].[Month] Let's say i have jan - 1000, feb - 1200, mar - 1100, apr - 1000 So if i select "feb" and "mar" in the cube, my average should show 1150 if i select jan,feb,apr i want my average to show 1066,67 is t ...Show All
SQL Server SQL Server 2005 Reporting Serivces: XML Datasource problem
Hi, I'm just starting to use SQL Server 2005 Reporting services, and need to use an XMLdocument as the datasource. I will get the xml data from a webservice and then need to bind it to the report. Here is what I am doing: 1. I created a webservice at the following location: http://localhost/myWebDirectory/myService.asmx . this webservice has a method called " GetXMLDocument" that has 1 parameter (sql). This method uses the sql st ...Show All
Visual FoxPro RICHTEXT.RichtextCtrl
Hi Guys Please point me in the right direction.... I retrieve RTF from SQL via ADO into Excel. I need to strip the RTF, within VBA, to show only the text, before pushing it to excel. Would the following be the right way: Dim objRTF As Object Set objRTF = CreateObject("RICHTEXT.RichtextCtrl") And where do I go to from here Please, please, please HELP!!! This RTF is killing me!!!! Since y ...Show All
SQL Server How to manage different input (Excel files) format
Hi all, I have created a package which import data from excel file and do some technical & business validation on the data. My package has about 20 control flow items. Now I'm asked to handle a second (and probably more in the future) excel file format (columns name are different, some fields are murged in one single column...). I definitely don't want to create a different package for each excel file format. But I can't find a way in ...Show All
Visual Studio Express Editions access parent form function
Hi, I am fairly new to the "Visual" IDE arena. I have a program with a parent window which switches between several child windows, only displaying one at a time. I created a switchPanel method which takes a form variable, closes the current form and sets the new form as the current child. This function works fine as long as I use it in the parent window, but I cannot access it from a child window. I am sure this is some newbie e ...Show All
Windows Forms Combox.SelectedValue is null after item is selected
In my new C# 2.0 windows application, I want to display drop down lists that hold key/value pairs. So I created a simple class "ClsLookup" with LookupText and LookupValue properites. I add instances of these lookup classes to a ComboBox's item list and set the DisplayMember and ValueMember properties of the ComboBox. After the user selects an item in the ComboBox, the ComboBox.SelectedValue property is null. The ComboBox.SelectedIndex ...Show All
SQL Server Provider for OleDb\Microsoft OLE DB Provider for Visual FoxPro
I am using OleDb\Microsoft OLE DB Rpovider for Visual FoxPro for my Data Source Connection and it includes the deleted records from the Visual FoxPro database, how can it have it ignore the deleted records HELP! Thanx Moshe Rob, Just to pass on a tip - make sure you're using the latest OLDB version 9 driver, it's a lot faster than version 8, even if you have version 8 FoxPro ta ...Show All
Windows Forms Drawing and Form
Pals. how can I move the drawing inside the form for example if I move the rectangle drawing up to the edge of the form the rectangle drawing will be look like a half rectangle... tanx in advance, hope you get my point ...Show All
Visual C++ Invalid signal
Hi, With vc8 we now get the error Invalid signal or error when we try to unregister ourselves for signal 5 (ctrl-c). No idea what is happing, this works with vc6/vc7/vc71 and vc8 beta without issues. Someone an idea When I just start our app, press ctrl-c we get the assert in the runtime. This just didn't happen in the past. Does someone know what changed and what the meaning is of the assert in msvcr80d.dll!signal Johnny   ...Show All
