osamaT's Q&A profile
.NET Development custom control focus enter event
I'm sure I posted this before but now I can't find it on the boards. I've made a custom control which has three picture boxes and a combo box. Is there a way to determine when the control as a whole has or looses focus. It was suggested that the enter event for the control could be used. This, however, only seems to work if I click on the actual control 'container' . If I click on the picture boxes or combo box it does not seem to be triggered. Have I done something wrong in the creation of the control or not set some property Any advice or thoughts greatly appreciated. Cheers, Gareth Thanks, I ended up putting the following into the click event of each control; this .UserControl_Ente ...Show All
.NET Development SqlBulkCopy.WriteToServer - more details from InvalidOperationException?
Hi, I have a dataset with 100,000 records and 50+ columns. I am trying to bulk insert it using SqlBulkCopy. The data is originally coming from a text file and is parsed to the datatable. With a text file with 50 records, it works fine. But with 100,000, bulkCopy.WriteToServer() is throwing an exception, which looks like this: The given value of type Decimal from the data source cannot be converted to type decimal of the specified target column. So there is a problem with data truncation I am assuming... but HOW do I get more details on this What column and what row is causing this error Without this information, I'd go crazy trying chunks of this huge file untill I found the culprit and changed my format appopriately.. I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .NET Compact Framework and XNA
I heard that the xbox 360 will support a framework similar to the .NET compact framework. How do I filter the .NET Framework in XNA Game Studio Express so that only modules in the .NET Compact Framework show up with intellisense/etc show up Hmmm... thanks for the info. I know that you can look in the documentation of a class to see if it is supported in the Compact Framework. I was just wondering if there was an easier way to do this (for example, tell if a class is supported by the Compact Framework without having to go to msdn and search for the class). Anyway, it's not too important. ...Show All
.NET Development EventLog text repeating 100 times when "%1" is part of data
Hi, I've run into a problem when sending a certain string to the Event Log using the System.Diagnostics.EventLog class. If the string contains "%1" as part of the data then any text preceeding the %1 is repeated 100 times and and text that comes after the "%1" is repeated 100 times in the Description field of the Event Log. For Example: log.WriteEntry("A%1B", EventLogEntryType.Information, 0, 0); (where "log" is an instance of System.Diagnostics.EventLog) will cause the string: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%1BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB" to be written to the event log. If I use "%10" or "% ...Show All
Visual C# Right clikc : find all references crashes the ide
It start prosessing but after a while its non-responsive and dosent seem to do anything more. My solution is a mix of a web site, some class librares, some test console applikations and a setup. About 20 prosjekts in all. Anything I can do to work around this bug This happened to me today also. Same VS2005 build. Been rock-solid for months now. Tried to Find All References on a DotNotNuke web project, and it hung; I had to Task Scramble End Task and sent error report. After a reboot and starting up a c# project, all was fine, until I right-click Find All References. This time the machine Hung. I will followup on the Connect Feedback site. ...Show All
Visual C# constructor question (contains some managed C++ code)
lets say i have the following created in a .net assembly: public class A { public int n_myInt; } public class B { public string s_myString; public A o_myAObject; public B() { this.o_myAObject = new A(); } } when i try to create any object of class B in a C++ app compiled with /clr, ive had to create a new Class A object on the managed heap in my code like something similar to: int main() { . . . B^ myNewObject = gcnew B(); myNewObject->s_myString = Marshal::PtrToStringAnsi( (IntPtr)s_some_string, nsize ); myNewObject->o_myAObject = gcnew Some_namespace::A(); . . . } what i think is happening is that even though the B constructor creates a new A object, that it loses the reference and gets reclaimed ...Show All
SQL Server SSIS: Oracle import works, but not when scheduled
Hi, I am running SQL Server 2005 and have built a simple SSIS package to import data from an oracle database to my SQL Server 2005 database. When I run it in SSIS, it works and it imports just fine. When I schedule it, it gives me problems. Help! It might be a problem with Oracle Provider client I installed. Is there a client version I can download and install the one I downloaded from oracle doesn't work. I bet i did something wrong though. Here is my version: Microsoft SQL Server Management Studio 9.00.2047.00 Microsoft Analysis Services Client Tools 2005.090.2047.00 Microsoft Data Access Components (MDAC) 2000.086.1830.00 (srv03_sp1_rtm.050324-1447) Microsoft MSXML 2.6 3.0 4.0 6.0 Microsoft Internet Explorer 6.0.3 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A few XNA questions.
Now with XNA will you be making the game right in XNA, or do you like make it with another program using different code and then just use XNA to make it playable on the 360 Thanks! Correct. You use XNA GSE to code (on your PC) and debug (remotely on your 360 or on your PC for a Windows version) your game. The assumption, I believe, is that you have a network in your house that both your 360 and PC are hooked up to. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A Question (Creators Club)
I was wondering this. Since I have a cable connection (no router) directly to my computer, how would I connect my Xbox to my computer so I can use the Creators Club Right now I just disconnect the Ethernet cable from the back of the cable modem and connect the Xbox 360 Ethernet cable to get Live on my 360. A bridged connection may work, last time I tried it, though, it didn't work properly. I suggest getting a cheap wired router for around $40, though. ...Show All
Windows Live Developer Forums About SDK
Is there new robot SDK including source code Do you mean the source code of the SDK, or do you mean sample code for building a bot All the available SDK's have sample code included, none of them the source... ...Show All
Visual Studio Team System Getting build path from BuildStore?
I am currently using the GetListOfBuilds method from the BuildStore class. I do know the buildtype to pass in. However, I'm trying to find if there is any way to ascertain which path the buildtype currently points to. We have a list of builds by product name and by environment. So, one of our buildstypes is named something like MyProduct_Dev (build for MyProduct for the Dev branch - whatever it is currently). As we create a new branch I edit the workspacemapping file to point to the new branch. This mapped path is what I'd like to be able to extract for a given build type. Can this be done via the API Thanks in advance. You can't do it directly from the build API in version 1. You need to use the VersionControlServer object to get ...Show All
Visual Studio Matrix Sum doesn't handle multiple rows of same value??
Using this table: ID Date Prod F1 F2 F3 __ ____ ___ __ __ __ 1 2007-02-15 11:13:09.890 ABC 5 10 20 2 2007-02-15 11:26:28.873 ABC 8 5 66 3 2007-02-15 11:34:00.967 DEF 88 5 3 4 2007-02-15 11:39:56.577 GHI 7 6 5 5 2007-02-15 11:46:14.217 JKL 4 3 2 I attempted a matrix report whose rows are grouped by Date (just the the date part 2007-02-15). The I wanted to Sum up each field(F...) for each Prod. I ended up with this matrix report: ------------------------------------------------------- |=Fields!Prod.Value ------------------------------------------------------- [Gruop On] | =FormatDateTime |F1|=Sum(Fields!F1.Value)| -------------------------- ...Show All
SQL Server ssis bulk insert task
hi, i have a bulk insert task and i want to transfer to the source connection each time a different text file name. how do i transfer to the connection source field a parameter with a new name each time. the name will b excepted as a parameter to the package. can i do it in a bulk insert task thx, Tomer Brian, As usuall its always a pleasure getting the straight and proffesional answers from u. u r the best. thx, Tomer ...Show All
Visual Studio Express Editions Installing ActiveX Control
How do I install an ActiveX Control using ClickOnce, onto the users computer or I guess I should say registered a .OCX file in the directory of the user computer at the time of program installation. Thanks IW ...Show All
Visual Basic Form show unrequested
To get some experience using VBE, I converted a simple program I once made for myself(VB5). It's a birthday calendar, using a VB5 commandbutton for each day of the year, i found that VBE has great problems handling this many controls, it is slow, very slow and realy unworkable. Some where else in this forum I found that others with a lot of controls experience the same problems and there is no neat solution for it. In the mid 80's the basicinterpreter was quicker than this VBE with a machine that is 2000 times faster. Another problem I have is that the main(start) form of the program shows up unrequested. In the load section of the (start)form I show another form from which I normally select whether I show the (start)form or not. The se ...Show All
