indersunny's Q&A profile
Smart Device Development Losing Databinding with ResultSetViews
I am programming in C# for the .net compact framework 2.0. I am binding controls on the screen to my SqlCe database using ResultSetViews. Everything works fine, as long as there are rows in the table when I create a ResultSet. If I create a ResultSet when there are no rows in the table, and then later add rows to the table, and after that set up the databindings, the bindings won't work (Controls who's Text property is bound display no text at all). Do I need to do something to update the resultSetViews This is (sort of) how I am doing it: cmndDB = new SqlCeCommand("SELECT * FROM MyTable", dbConn); SqlCeResultSet rs = cmndDB.ExecuteResultSet(); ResultSetView rv = rs.ResultSetView; ... cmndDB.CommandText = ...Show All
Smart Device Development Smart Device Phone Conversation recording...
I'm wondering if it's possible on Windows mobile to record a phone conversation to two files: one exclusively recording each party. It seems this would entail isolating the mic stream from the line-in stream. Is it possible to separate these streams Can Windows mobile 5 support two wave recorders simultaneously Much thanks. Venkat No, it's not generally possible - not to one file, not to two files. You can not record from the phone line or play to the phone line due to hardware limitations (or rather hardware design): http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=704452&SiteID=1 At best you can record outgoing voice (and potentially incoming – if microphone would pick ...Show All
Windows Forms Need Help getting image to show up in PictureBox
I have a program that has an openFileDialog and some pictureboxes that I want pictures to show up in according to the images you choose in the openfiledialog from the local harddrive. But I don't know what to type in the GetThumbnailImage(); private void openToolStripMenuItem_Click( object sender, EventArgs e) { if (AddPic.ShowDialog() == System.Windows.Forms. DialogResult .OK) pictureBox1.Image.GetThumbnailImage(); } Hi, Please try this. private void openToolStripMenuItem_Click( object sender, EventArgs e) { if (AddPic.ShowDialog() == System.Windows.Forms. DialogResult .OK) pictureBox1.Image =Image.FromFile(AddPic.FileName); } ...Show All
Visual Basic Write data to SQL database
I have a small program that I am writing and it scans through a .txt file to find "key" information for me. The "key" information is stored in a 1-dimension arrary temporarily. As I find the data I want to write it to a SQL database for storage until I call for the data to populate a calendar in CrystalReports. Can someone please help me! I don't know how to do anything with SQL in VB.NET . Thanks alot that really helps me out.... One quick question though...... I have two tables Employee & Patient . Employee has a PK of Employee_ID that is autogenerated. I also have a Patient table that has Patient_ID as PK and Employee_ID as FK. How would i link these together ...Show All
SQL Server Recordset.update with SQL Native Client doesn't work
We recently migrated from SQL Server 7 to SQL Server 2005. Now there's a curious thing with some legacy applications. I have pasted some code below. Don't judge me, because like I said, it's legacy. You can see, that I have two connection strings. One is commented and accessing via SQL Native Client. The other one is doing this through the old SQL Server driver. Funnily enough, when I use the new Native Client driver, the exception "Run-time error '-2147467259 (80004005)' [Microsoft][SQL Native Client]Invalid attribute value" is thrown in the rsPorder2.Update line. With the old driver, this works just alright. Is this a bug Is there a way, to make the code run, because we don't want to search the whole application for othe ...Show All
Visual C++ F1 help context bugs when App is starded from Createprocess()
Hi , I've created an application in which I implemented F1 help context. Everything works well when the application is launched by mouse (chm help files deploy well when I hit F1). But when the same application is launched by Createprocess( ), the F1 help context stops working (nothing happen anymore when I hit F1). I suspect that CreateProcess makes the child application loose his help context. But I haven't yet found the way to solve that . Does someone has a solution for that Thanks. About rights: Its just a guess. But if you didn't reduced any rights nothing should be different when starting a process from the explorer or starting it from a process that was started from the explorer. Sorry I have n ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Audio Clips Cutting Out
Hello, I've followed the xna audio tutorial here: http://xbox360homebrew.com/blogs/audio/archive/2006/09/01/119.aspx and can get sounds to play fine. However, I notice that they often don't play when called or "interrupt" each other as if there aren't enough channels and the resulting effect is poor. public static void Play( string name) { Cue returnValue = soundbank.GetCue(name); returnValue.Play(); } I'm also calling Update on the AudioEngine when the game updates. Anyone else running into this Your cue objects are being garbage collected, at which point the sound will stop playing. You need to either hold onto a reference to your Cue instance f ...Show All
Visual Studio Express Editions Number Line Functionality
I am trying to figure out how to design a number line structure. Much like the left side numbering in the source code in visual basic 2005 express edition and one that you would find on the left side in dreamweaver and etc. I want to be able to count the number of lines in one RichTextBox and to show them on the left side 1..2..3..4..etc..etc..etc. Any help would be greatly appreciated. Thanks. http://www.codeproject.com/useritems/RTF_LineNumbering.asp Enjoy ! ...Show All
SQL Server Can't add a SQL Database (2005 Express Edition) to a C# Project over RDP
Good Afternoon. I installed C# with SQL Server 2005 Express Edition. Everything works fine on the account I installed it on, on the local machine. However. 1) I can't connect using RDP to that same account and use SQL. It times out. 2) Other users on that computer cannot make user of SQL. Also times out. I couldn't find documentation on these issues. Thanks, Philski Phil, here is a thread from the DB Engine forum that seems to address this issue. Were you logged into the box through TS or on the box locally http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=116459&SiteID=1 Thanks, Sam Lester (MSFT) ...Show All
Visual Studio Express Editions Transparancy
Hello all, I'm just learning how to use visual basic, but i know a small bit, and I would like to learn how i could get the area surrounding a bitmap to become transparent. (ex. set a certain color (100, 100, 100) and have the computer not draw that color) Thank in advance i read the code, and actually understood what it was trying to do So I copied it, and replaced the file names with my file names, and deleted all my other failed attempts of getting that to work, but nothing happened! I even renamed one of my pictures to "Grapes.gif" and still all I got was the blank form. What could I be doing wrong ...Show All
SQL Server AS2K5. Internal error: An unexpected error occurred (file 'pffilestore.cpp', line 3267, function 'PFFileSto:HandleDataPageFau
I have a simple query, that produce internal server error. Internal error: An unexpected error occurred (file 'pffilestore.cpp', line 3267, function 'PFFileStore::HandleDataPageFault'). WITH MEMBER [Product].[Product].Slicer AS [Product].[Product].&[ 214 ] SELECT ([Date].[Fiscal].[Fiscal Year ].&[ 2005 ]) ON COLUMNS, CROSSJOIN({[Product].[Days to Manufacture].[All Products],[Product].[Days to Manufacture].[All Products].children},{[Measures].[Internet Sales Amount]}) ON ROWS FROM [Adventure Works] WHERE ([Product].[Product].Slicer) Another MDX query produce wrong result. WITH MEMBER [Product].[Product].Slicer AS [Product].[Product].&[ 214 ] SELECT {([Date].[Fiscal].[Fiscal Year ].&[ 20 ...Show All
Visual Basic text formating
Hi, i would like to ask whether can i format the text in textbox in such a way that whenever there is a bullet, it will display it in a newline. the textbox data is retrieve from a database in the same column. Hi, sorry I wasn't clear. It should be: Private Sub txtDisplay1_TextChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtDisplay1.TextChanged txtDisplay1.Text = txtDisplay1.Text.Replace("."c, ". " & Environment.NewLine) End Sub You also hadn't declared the characters correctly, as it would have been looking for a string "95". If you're using a full-stop now, it should work OK as above. However, you will want to be careful doing this in the text-changed event. Wh ...Show All
SharePoint Products and Technologies Events Raising in Sharepoint Desinger
HI all i am new to Moss 2007 I doubt was , i am editing some of page in Sharepoint desinger and modifiying the layouts, in that time i used some of the ASP.net controls in the page, but how can i write the code for an Button click event, in sharepoint desingner it not supporting to raising the events, but how can i make to do some opteration when i click the button, Please help to come out of the issuee... Thanks in advance... Hi, Sharepoint designer is not designed (if you will excuse the pun) to do that. If you want something on the page that will work server side, you should develop it as a asp.net control (or maybe web part) and then you can use designer to put it in the page. The code still has to be written in a .net I ...Show All
Software Development for Windows Vista WorkflowWebRequestContext in Beta 2.2
I just installed Beta 2.2 and ASP.NET sample code, but ASP.NET sample failed to compile. It says WorkflowWebRequestContext is not available in the default.aspx.cs. When I looked at the help file, I can see that WorkflowWebRequestContext class should belong to System.Workflow.Runtime.Hosting, but when I look at the classes in that namespace, I can't find it. I can see other classes in that namespace such as WorkflowWebHostingModule. Anyone has any idea what might be wrong Thank you, Brian Thanks Tom for your super duper ultra fast reply. I will surely go through the links you have sent. Thanks Thanks Thanks Thank You!!! moredotnet ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multiuser games?
Just curious... but has anyone used XNA/C# to develop MOG's or even MMOG's I doubt there is one available now, its very new and no one would have had the chance to build an MMOG! You could be the first to try :) I believe its possible. ...Show All
