Abhiram Bandhakavi's Q&A profile
Gadgets onDock called twice
My event handler is seeing onDock called twice when the gadget is docked from an undocked state. I tried this on a couple of different unrelated gadgets and they all exhibit this behaviour. any ideas on why this is happening Dan I'm just guessing: Maybe it's the same like a SelectBox in Java. It is called twice, too - once for mentioning "deselected" the old item, and once for "selecting" the new item. But this is just a guess :) Probebly it's completely wrong :) ...Show All
Smart Device Development Composite UI Block
Anyone here good with coding with this practice for the mobile what do u want to know Composite Application Block(Cab) for mobile devices is a port from CAB for dekstop . Cab models ui according to the use cases of ur application. ur workspace is use case ,it knows how to drive the ui. and move to other workspace acc. to flow. MVC/MVP patterns are mostly used in cab ui development. i guess that is 10,000 feet preview. chk the documentation ...Show All
Audio and Video Development Pixel Fractions??
I saw this code in another team's demo: animateProperty("height","1123.2px;1144.8px",8); I'm not a video guy but you cannot display pixels in fractions right I think Flash lets you define pixels in fractions but I thought those were rounded up in the browser. I guess if you put something like this in your script players will ignore it. If you try to have pixel fractions in your markup your file won't be valid when you check against the schemas. ...Show All
Windows Live Developer Forums Define custom colors in Windows Live Writer?
Hi! I downloaded the Windows Live Writer yesterday and I've been practicing with it. I'm wanting to add text that matches my space, but the "Define custom colors" feature in the color palette is greyed out for me. Is it like that for everybody Is this just not an option yet If it is supposed to work, how can I fix it. Thank you! X http://x-evolutionist.spaces.live.com/ When will updates to the program be coming out X http://x-evolutionist.spaces.live.com/ ...Show All
SQL Server Stuck with "Login failed for user xxxx\ASPNET" error, need a hint please
Hi, I am stuck with that error when running my ASP.NET application on my production server for many weeks now and still don't have a complete solution to that problem. I formerly posted that thread and read that other thread without success, so as I have made a few progress in delimiting the problem I am posting this new thread with the hope somebody will finally be able to help me. To summarize: 1) I have developed an ASP.NET application, - on a Windows XP Pro SP2 computer - with VS studio 2005 Dev and included SQL 2005 engine - this application works fine on the dev computer 2) I have deployed the application on a production server which is: - a Windows 2000 SP 4 computer - with SQL Express SP1 with Advance servi ...Show All
SharePoint Products and Technologies dormant task escalation
Hi everyone, I have what seems to be a simple task that I can't seem to figure out. So I have the textbook SharePoint createTask -> what for it to change throught the onTaskChanged Activity within a While Loop -> Complete Task. The above is working perfectly. The problem is that I want to have the capability to escalate the task to another party if it takes, say longer than 5 days. This is contained within a sequential workflow and I would like to keep it that way, but I'm open to converting it to a state machine if that's what needs to happen. So my question is: what's the best approach to going about this Thanks, rnellis2002 ...Show All
.NET Development How detect particular COM port?
Hi, on Control Panel -> System -> Hardware -> ports (COM and LPT) I usually have several COM ports: Communication device (COM1), communication device (COM2), etc. etc. Depending from the drivers (.inf file of added card), I could also have "Special communication device (COM9)", where COMx port depends from the computer. Now, how can I detect if my "Special communication device" is installed on my PC and which COM port corresponding There is a function for this in System.IO.Ports called GetPortNames(); It returns an array of type string that you can iterate through thusly SerialPort myPort = new SerialPort(); Foreach (string s in myPort.GetPortNames()) Console.WriteLine(s); ...Show All
Visual C# Represent string as a object
Hello, How can I represent a string as an object "String" is not working, because it always returns a string(value type). I have sucessfully implemented it by creating a "Text" class with a string property, but I was wondering if there isnt any other way to do it, using existing classes. Thanks. Hi, i think i understand your problem... you get back a string value, which you want to use as a reference... As far as i know it's not possible to get a reference to a value type... You can only have a reference to a reference type The type String is just a wrapper around the string type and does not provide any reference to an instance... the reference you can use is i ...Show All
Visual Studio 2008 (Pre-release) Pattern to Emulate a Property with no set in a DataContract?
I'm writing the WCF Service Hosts for our application. I know that in a DataContract a DataMember marked property must have a get as well as a set . Does anybody know of a good way to get around this Say I've got an Employee class that's a DataContract. I would like the client to be able to change FirstName and LastName and all that stuff, but I don't want them to be able to change the EmployeeId. I just want them to be albe to read it. Both my Service and Client are .Net apps. Any help would be very much appreciated. Thanks, Geoff Rajesh, Thanks for the reply, that was a lot of help. I ran into a couple of problems implementing the /reference: option. On my trivial example that ...Show All
SQL Server Anyone who can help me the solve the strange problem
Hi, i encountered a very strange problem when using SSIS, the oledb source convert some fields in retrieving the data from oracle database,the datatype of the target field is NUMBER(5,1), and all the data retrieved from it have the uniform 'x.y', and remained same when i previewed the data in the oledb source,but the output of the data changed to 'x', the data converted to integer, anyone knows how to solve the problem please let me know, thanks a lot. Where is this output that you are looking at The output of the OLE DB Source If so, it could be that the externl columns have been mapped to the wrong pipeline types. Check this out in the OLE DB Source Advanced Editor. -Jamie ...Show All
Community Chat Convert Money value to its Textual Representation
Code Competition I had answered a post Convert to letter format a number value and provided a response that went counter to the logic of the threads up to that point. The two code examples provided to the poster used enums. I posted with a title Enums make me E-Numb and provided a code sample that use no enumerations. One of the other poster's code sample was .Net but based on a previous process he had written in a non .Net language. He commented that he had run my sample and after 100K operations mine was four second faster. He requested that I add some features to the code and repost so he could retest. I accepted his request and that is what this is...a place to post the code away from the original post so it does not become an OTP fro ...Show All
SQL Server Can not create maintenance plan
I have had two SQL 2005 Stnd x64bit servers running without any problems for several weeks now. I just setup two new ones last night. One the two new ones, I get an error message when I try to create a Maintenance Plan. I also get an error when I try to create a plan using the Wizard. The error message is: TITLE: Microsoft SQL Server Management Studio ------------------------------ The action you attempted to perform on a remote instance of SQL Server has failed because the action requires a SQL Server component that is not installed on the remote computer. To proceed, install SQL Server 2005 Management Tools on the remote computer, and then try again. For more information, see "How to: Install SQL Server 2005 (Setup)" in SQL Ser ...Show All
.NET Development Acces Database
Hi, I'm trying to add some variables to an access database that has one table with three columns. The code doesn't produce any errors but when I open the database file there is no data. Here's my code "data" as an instance of a dataset called RDXInfoDataSet data.Table1.AddTable1Row(type, extn, linetype) data.Table1.AcceptChanges() data.AcceptChanges() Any ideas why it's not working I had - but I didn't read it properly... I only read the part about AcceptChanges, which didn't apply to me as I wasn't using it. I missed the part about copying the MDB file... That was it! ...Show All
SQL Server RMO Replication problems with Pull Subscriptions
Hello, I have the following situation. I have a single publication on my publisher Server. This publication is created using SQL Server Manager. Snapshot is created completly. Now I want several Pull subscriptions from several machines to work with this publication (One subscription per machine). I'm creating these subscription using RMO. I'm synchronizing data using RMO again. My code workflow is: Syncronize -> success -> do nothing -> fail -> Check if everything with Publisher and Publication is ok -> Generate Snapshot -> Create Subsscription -> Sync again. (I tried to eliminate Generate Snapshot step but couldn't because I receive error that I must rerun Snapshot Generation.) When I tested my code per singl ...Show All
Visual C++ Dialog without resource
I tried to create the dialog using CreateIndirect function. But even after filling the DLGTEMPLATE structure, I an application error occur on creation. The dialog box contains a list box, which is created dynamically. Could you please help me to create dialog without adding resource to RC file I found one article in Codeproject but the parameter specifying as BYTE array which is a bit difficult to understand. However I checked the binary values in a hex editor after writing to a file. But it is not matching with the DLGTEMPLATE structure. Sarath. wrote: [...] BTW this will not call the OnInitDialog virtual function no In my quick tests with a class derived from CDialog , the OnIni ...Show All
