pkhannah's Q&A profile
Smart Device Development Set System Date in Pocket PC in C#.NET
Hi All, How can I set Pocket PC's System Date using C#.NET How to use the P/Invoke OS API like SetLocalTime() Thanks in advance. Regards, Varun ...Show All
Visual Studio Express Editions Hiding other programs
Is there anyway to hide other program windows, for example lets say I'm on the computer using messenger and looking at hotmail while posting pictures on yahoo and don't want soemone to see what I am doing when they walk in, at that point I would press my predefined keyy and it would all "hide" posible or impossible I don't have any idea's but I need one before the end of the night so please shed some light. Average Joe I would suggest placing a lock on your door in that case i'll see what else I can dig up and see if there is a better solution ...Show All
Visual Studio Tools for Office Using AxSpreadsheet
I have managed to add MS Office Spreadsheet 9.0 to the toolbox and added the spreadsheet to a form but I don't know how to dimension (Dim statement in VB) the various components required to program the contents and formats of the cells and ranges etc within the spreadsheet. Hi Matt You're getting a typical "no one is responsible for this" run-around, here. The programming language folks see "Office" and their knee-jerk reaction is to sent you to the VSTO forum, although VSTO is a very specific technology. And VSTO moderators send people to the application newsgroups, even though those groups are VBA-oriented. Truth is, there really isn't one single place that teaches .NET folks how to aut ...Show All
Smart Device Development int main(); entry point
i have a c++ win32 win32project all tested previously as a c program. i build the project and all is ok, i get my exe file. my windows gui program runs and displays text, as it should, which is good. my c++ program does not run!!! i can not enter the c++ program at " int main()"; i have tried calling my c++ program as "int main(), int wmain(), int _tmain(); and twenty more different ways. i moved the code around to different locations and it still will not run do i even need to call int main(), from my windows program. i would think the compiler would automatically run the int main(), but it does not. everything is aligned and the program should work, if i could get my C++ program to run!!!!!!! ...Show All
.NET Development Running multiple frameworks...
We are currently developing asp.net applications in the 1.1 framework, but I want to get my company to make the move to 2.0. But our server guys are saying that they have major concerns running 1.1 asp apps along side 2.0 apps. So much so that they think the only way forward is to run the new 2.0 app (which I want to develop) on to a seperate production server. There issue is that if 1.1 apps and 2.0 apps are running together then the servers performance will suffer due to running multiple frameworks. Is there any truth in this I suspect not, but I need to find some more information on the subject ahead of a meeting I will be having with them next week. Can anyone help and shed some light on the matter. ...Show All
.NET Development ExecuteReader requires an open and available Connection. The connection's current state is Open, Fetching
cmd.ExecuteReader Run-time exception thrown : System.InvalidOperationException - ExecuteReader requires an open and available Connection. The connection's current state is Open, Fetching. I'm having a issue with my program. My application does a search first, then the user has the ability to edit the search results. So first a datareader is created and the ExecuteReader is called and you know the rest. Then once the user is ready to submit their changes and executeNonquery is called and you know the rest. The code fails at cmd.exectuenonquery line. Here is my code First the user searches for records based off an id: Private Function RetrieveErrorRecords(ByVal ErrorID As String) As DataTable ...Show All
Visual C# compile incompatibility: "/mt" and "clr"
I am trying to write a C++ wrapper for my Csharp code -- essentially to go from "unmanaged" to "managed" code. I used some samples on the internet as a basis but have hit some issues when compiling in Release mode v. Debug mode.... It works fine in Debug mode ! It fails in Release mode : " D8016 " /clr and /mt are incompatible (etc.) I am using VS2005 and it seems like some things have changed with respect to the "clr" compile switch. It's frustrating because it works when compiled in debug mode. I have tried everything to resolve the compatibility issue, but it seems like VS2005 just overrides the options at run time and forces "/mt" on me (even though I change it to "/md&q ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What games or applications are allowed?
Hellos I have a few questions regarding the content of the games: Is it allowed to put out advergames sponsored by 3rd party commmercial companies (Either games that feature sponsored splash screens in menu etc or even product placement in the game) Then what about adult content Like how much Blood, Gore, Drugs, Nudity is allowed Do games have to be politically correct cheers Nils Jim Perry wrote: Why does it have to be about money MS releases a lot of stuff free. Gimme a break! A big corporation like Microsoft never does anything out of the goodness of its "heart," aside from giving charitable donations ... and oftentimes even THOSE are government-mandated or beneficial for tax re ...Show All
Windows Forms Dataset designer problem using sql IN clause
I have a query that works just fine agains the database using an in clause. where id in (5,6,7) However, when I try to use the dataset design and build a query using a in clause the designer is apparently looking at the data type of id and only allow me to pass in a valid integer for the parameter for the in clause. where id in ( ) I have tried change the parameter definition and actually specify that the parameter is a string but it still complains. Anyone know how to fix this Thanks I think I'll open up a ticket with microsoft and see if I can find anything out. I'll post something here if I do. Thanks for taking the time to read and respond. I agree a stored procedure w ...Show All
Visual Basic Hide Caret in a TextBox
Hi, This is my requirement. I have a textbox in which readonly property is set to true. I want to hide the caret symbol blinking in the text box when i click on the text box. I tried this using the Hide Caret API. Code is Public Declare Function HideCaret Lib "user32.dll" ( ByVal hWnd As Integer ) As Integer Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer i = HideCaret(TextBox1.Handle.ToInt32) MsgBox(i) End Sub This function does not work as i variable is always returned 0. Also setting readonly to a textbox does not hide caret symbol. Pls help me to achieve this functi ...Show All
Audio and Video Development Disabling all Selectable Elements
I want to disable all buttons at once from script. What is the best way to do this Can I pass an xpath expression like so: document[class('foo')] What is the best method for disabling Setting state:enabled to false If you mean only the navigational buttons, then you could set focus to an empty button which goes nowhere. <button id="lx" style:x="1px" style:y="1px" style:width="1px" style:height="1px" style:position="absolute" style:navUp="none" style:navDown="none" style:navLeft="none" style:navRight="none" > Don't know if it is possible to disable every button on the remote with one single line. ...Show All
Visual Basic Any easy way to print a "large" form?
I've got a VB application that has a number of 1280x1024 forms. I'd like to be able to implement a "print screen" function. I tried the PrintForm Power Pack, (Form.Print), but I only get about 80% of the form, so the form must be too big for a single page (other threads say this is all PrintForm can handle). If I capture the form (via Print Screen), and suck it into Paint, it also is 2 pages, but there is a print option to scale it to 1 page, which worked. So, is there any simple way to make this work And, no, the printer won't take 11x17 paper! thanks... Hi jptrt, PrintForm component cannot scale and print the form as one page at this version. And I do not see an easy way to work around ei ...Show All
SQL Server Microsoft Access Database Synchronizer (ADS) RTW
Hi, Today we are very pleased to announce the RTW release of Microsoft SQL Server 2005 Compact Edition Access Database Synchronizer (ADS) for which many of you been waiting eagerly. Access Database Synchronizer provides a way to synchronize data between Microsoft Access database on a desktop and Microsoft SQL Server 2005 Compact Edition database on a device. The salient features of this solution are summarized below O Provides a synchronization solution between SQL Mobile/SSCE and MS Access. Data conversion is done while synchronizing the data. O Synchronization happens when there is an active ActiveSync connection between the device and the desktop. O There is no update to SQL Mobile/SSCE ...Show All
Visual C# How to handle HTML tag info in control?
I tried to use Server.HtmlEncode to solve this problem, but to find it still doesn't work. temp=Server.HtmlEncode(content.Text); Some people rendered HTML tag to attack website, some others did this for normal purpose. For those different clients, how to solve this problem Did i make it clear Thank you for your help in advance! ...Show All
.NET Development DataView RowFilter not filtering on percent sign
I have a DataView that contains two rows, and contains only one column called Name. The data is shown below: 1% Potassium Sulfate Solution 10% Hydrogen Peroxide We have implemented a search functionality on the DataView by using the RowFilter property. But I also need to be able to filter by the percent sign, which is a special character in the RowFilter property. I want to be able to search '*1%*' on the Name column so that only the 1st row is returned. But I am having problems properly escaping the % sign. I have tried RowFilter = "Name LIKE '*1%*'" but this returns both rows RowFilter = "Name LIKE '*1\%*'" but this throws a syntax error of "unrecognized escape sequence" RowFilter = " ...Show All
