carlop's Q&A profile
Silverlight (formerly WPF/E) Running WPF/E applications on Handheld devices/PDAs
Hello All, I have been wondering whether we can develop WPF/E enabled applications for handheld devices/PDAs I think we can, coz I saw some video on Channel 9 showcasing this If yes, what tools are required and where can I find them and If not, is it planned in the near future What will take to do so then Thanks for your patience! Best Regards, Rohit. Just to chime in here. I have worked for 2 mobile development companies and both highly want WPF on mobile devices. Specifically the controls library. This way we can make slick UI's for our applications but also have a great framework to replace System.Windows.Forms so we can have good input, database etc. Thanks and take care. ...Show All
Visual Basic Do Loops ?
I'm afraid I'm having a little bit of a brain fart here. I have a form where I am expecting a user to enter data and then press the add button to add it to the database. Before I add the record I want to ensure that they have entered data into all the fields. When they press the add button I'm calling an Edit() routine. My question is, what kind of loop do I need to use to check this I am displaying a message box telling the user that he/she has not entered certain data, then when they press OK it is checking it again and again . This should be so simple but I've been at it all night and my head isn't co-operating. Where should the loop be and which type should I be using. Thanks in advance. Tattoo ...Show All
Visual C# Saving from a RichTextBox control in the selected TabPage
I have a text editor program I am making, where a new tab page is added to a tab control every time the user clicks a specific button. A Rich Text Box Control is added to each new tab page that is created, and I need to be able to save the text from the Rich Text Box Control that is on the currently selected tab page when the user clicks another button. Does anyone know how I'm not sure if this has been asked before, but can't seem to find a soloution (I'm only a beginner). I add a new tab page with this code: private void toolNew_Click( object sender, EventArgs e) { RichTextBox newText = new RichTextBox (); string title = "New " + (tabControl.TabCount + 1).ToString(); TabPage newTabP ...Show All
.NET Development serialport unicode characters
I use a serialport class to get information from a (serial) cach register. The problem is that it does not display unicode (greek)characters ,it displays some strange characters( A , E , N … ) instead . If i use the ReadExisting() method i receive symbols. When i run HyperTerminal it displays correctly the characters. This is a fragment of code that reads some data. String ^str; array <Byte>^byteArr= gcnew array <Byte>(50); for ( int i=0;i<50;i++) { byteArr = this ->serialPort->ReadByte(); Char c=System::Convert::ToChar(byteArr ); str+= c ; } MessageBox::Show(str); I dont know how to solve this. Thank you. You ...Show All
SQL Server Linking Dimention and Fact tables
Hi, I have two tables, cds_statday with all transactions for all customers (Meta_ID, fact table) and part of customers in Group table(PlayerID, dimention table) I can't process the cube because SSAS can't find players from fact table in demention table. What can I do http://public.fotki.com/obulay/image/screen.html OL found the reason on the forum. I changed processing settings to ignore missing attributes http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=123784&SiteID=1 ...Show All
.NET Development System.AccessViolationException from System.Windows.Forms.PrintDialog
I consistantly get this bomb when the unextended default dialog is pointed to a particular printer driver, namely, the HP LaserJet 4000 Series PCL 6. I get this bomb from both the OK and Properties buttons. This makes all of .Net printing dead on this particular printer model. It is my strong suspicion that the .Net framework is allocating space for the low-level control block DEVMODE in a fixed size that is too small for this driver. The Windows API documentation says the size of this control block is variable to whatever size the driver's designer chooses and application code should call a special version of DocumentProperties to get the proper size. ...Show All
SQL Server help with query syntax
Hi all, I have been fighting with this query and would like some advice. Please consider the following tables; prod_table widget_number shift date production_time (in minutes) down_table rec_id (ident key) down_shift down_date down_minutes Prod_table (data) widget_number shift date production_time 0001 1 08/02/06 5.00 0002 1 08/02/06 10.00 0003 1 08/02/06 7.00 0004 2 08/02/06 5.00 0005 2 07/31/06 3.00 Down_table (data) rec_id down_shift down_date down_minutes 1 1 08/02/06 3.00 2 1 08/02/06 20.00 3 2 07/31/06 10.00 I would like to combine ...Show All
SQL Server How to use variables for server connections
Hello, Today is day two of using SSIS and having some issues adjusting. In DTS I would simply populate my global variables via an Active X step or pass them in at the job line. I am having a hard time being able to do either or in SSIS. Really all I want to be able to do is pass in a server name to the Connection of an execute SQL task from a scheduled job line. Same goes for any variable really ... how do I pass them in, and how do I assign them to specific areas of a task Thanks! Mr.Bean wrote: Hello, Today is day two of using SSIS and having some issues adjusting. In DTS I would simply populate my global variables via an Active X step or pass them in at the job line. I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Could C# be the future of gaming?
Since XNA is using C#, and is is a more intuitive language than C++, is it possible that in the future that C# will dominate, espessially in AAA titles. Could XNA be ushering a new way of programming in the main stream I develop serious games/simulations at my job and we use C++ exclusively, and any loss of performance would put us below our minimum requirements for framerate, etc. However, I plan on downloading the new XNA software and learning C#. Since hardware can make up for some performance loss in the future, and for some smaller applications it would be great to reduce dev time and the number of lines of code when performance is not as important. At some point the total cost of developing an application is offset by the perfo ...Show All
.NET Development Interop Thread Leak?
Hi, I'm hoping for a few pointers for tracking down a resource leak. I developed a VB 2.0 indexing application which is using FileNet's Capture COM objects and we're occasionally seeing a fairly serious leak. It doesn't appear to happen consistently (one user has never had one and I can't seem to reproduce it in my test environment), but it does occur regularly in production. I've been using various tools to poke around in a mini-dump (w/ full memory) and I've seen a few potential problem areas, but I can't seem narrow it down any further. Using PerfMon I found that the leak appears to be in private unmanaged memory. When I open the dump in WinDbg, I get this message: This dump file has an exception of interest stored in it ...Show All
Windows Forms How to make scrollbars move accordingly to make the focus viewable?
Could you tell me how to make scrollbars move accordingly to make the focus viewable when the tab key is used to navigate through the application It looks like I miss something that the vertical/horizontal scrollbars always have to be at the position when the application first starts. Thanks. Odd, it should be fully automatic when you set a form or panel's AutoScroll property is set to True. Just double-checked it, works fine. To try yourself, start a new WF project, set AutoScroll = True, put 4 buttons on each corner of the form, then make the form small so only the upper left button is visible. Run and tab. ...Show All
Visual Studio Express Editions Framework-less compilation of console applications
Hello, is there a way to compile a simple console.writeline("Hello world") to a console exe that doesn't require the .NET Framework It's kinda stupid that such "program" requires that 10+Mb framework, things that are 100% kernal compatible (not (ab)using .NET features) should not request the install of the .NET framework in my opinion. the compiler should 'see' that it doen't use any fancy GUI/whatever stuff and thus compiles as normal non-.NET exe. but I guess my hopes are small or not existing at all right If you want to write code that doesn't use the framework, you need to use C++. Why would they take the time to write a compiler that scours your code and works out if ...Show All
Visual Studio Express Editions = and != operator
Hi everyone, In C++ while using == and = operator, if we do not overload them, while using for our classes that we create, does it cause to any compilatio error If not, would you please explain that how the compiler make comparison between objects When we use = operator, if we do not overload copy constructor, what does happen Thanks "A a = b; // the copy constructor is caled to intiliaze the " a " in spite of having a overloaded = operator." Yes. "A c = new A();" This one does not compile because new A returns a pointer to in instance of A, not an instance of A. "c = b; // the = overloaded operator is called instead of default copy constructor." Yes. In summary: The cop ...Show All
Internet Explorer Development IE7 Breaks VBScript
Hello, This used to work fine (in ie6) to get a reference to an IE window and pull a value off of the document: Dim objIE Set objIE = shell.Windows.Item If (Not objIE Is Nothing) Then 'Set session variable and submit the form. session = objIE.document.forms("DWISDBFORM").elements("SESSIONID").value End If 'Object Cleanup Set objIE = Nothing Once installing IE7, it no longer works (objIE is nothing). I figured it probably had something to do with the tabs, but no documentation was to be found. I tried changing the "Set objIE = ..." line to the following: Set objIE = objShellWindows.item(shell.windows.count - 1) This works on some machines, but not others. Can anyone help me out here I ...Show All
SQL Server Simple update query problem....
Hi, I have a table called " Cust_Vehicle_Specialisation" consisting columns named "Vehicle_Specialisation_Id", "Motortrade_Id" and Effectdate(datetime). My data in the table consists like this.. Vehicle_Specialisation_Id Motortrade_Id Effectdate A94ACDEE 007094C1 2006-05-16 13:01:00.000 2EC8B2BF 007094C1 2006-06-05 12:19:00.000 A1C617D2 007094C1 2006-06-12 17:37:00.000 458C5F70 007094C1 2006-07-25 09:44:00.000 139954DE 007094C1 2006-08-01 12:05:00.000 1F3D7BDB E1A50F16 2006-05-22 12:00:00.000 F85EA44A E1A50F16 ...Show All
