Tasnim's Q&A profile
Visual Studio 2008 (Pre-release) When will the C# version of LinQ be ready for VS.NET 2005 RC0
I am very excited about LinQ and would like to use it asap. Since I have to use the VS.NET 2005 RC0 version to create demos, I would like to inquire when will the C# version of LinQ be ready for VS.NET 2005 RC0. Yes, I know that LinQ is already compatible with the VB version of the RC0 VS.NET release, but I would like to show Java programmers a flavor of what they are missing ! If the normal CLR metadata could encode a type declaration w/o a name, such that all types with the same signature (across all modules) would become the same type, then the anonymous types could flow freely outside the me ...Show All
Visual C# hi
hi , when i use datagrid and double click event how can i choose data from the datagrid that i want thx There are certain values passed when the user double click on a DataGrid (WinForm) private void dataGridView1_CellContentClick_1(object sender, DataGridViewCellEventArgs e) { this.dataGridView1[e.ColumnIndex, e.RowIndex].Value = "ALI"; // By the help of Row/Column Index you can do anything with that Row/Cell } ...Show All
Visual Basic AmbientProperties: how to get it in my ActiveX control?
Help me please! I am beginner in VB.NET and i have a problem. When I wrote ActiveX control in VB6, container properties was accessible in InitProperties or ReadProperties events of UserControl as: Private Sub UserControl_InitProperties() Set m_objMyObject = UserControl.Ambient.SomeObj ' or just ' Set m_objMyObject = Ambient.SomeObj End Sub How i can get same container property in VB.NET And where i can get it (in what evemt or method) Thanks! Thanks! But i think it is not exactly i need. I make ActiveX control. Some applicatio ...Show All
Visual Studio Express Editions VbExpress DataGridView Header BackColor
I have setting the property of a DataGridView like this: DataGridView1.ColumnHeadersDefaultCellStyle.BackColor = Color.Blue it works on a Windows 2000 system but not on two different Windows Xp System ...Show All
Visual C# Web browser Instance is not Killed
Hi am using a web browser control axWebBrowser1.Navigate(Application.StartupPath+ \\Results. Doc,ref Optional,ref Optional,ref Optional,ref Optional); now a word document will be opened in browser (word.exe is also opened in background) now when u close the browser the word.exe is still running background. pls tell me how to solve so that i am not able to modify the word document . it says its being used by other process" i have kill the Word.exe Pls tell me how to solve This is the nature of Word - to remain open in order to satisfy multiple requests. For example, if you have Outlook and ...Show All
Visual C# Asynchronous BeginInvoke GUI update order
Yes/No question for the experts: If I only have thread A and B (thread A being the GUI thread), and B calls several BeginInvoke's in a row to 'Post' messages to thread A, is the order in which thread B updates thread A guaranteed to be preserved I can write a simple app that would give an answer, but I prefer to hear the answer from the GURUs just to make sure. Thanks -Kevin Thank you for the reply. I am surprised, I thought they would be in order, as long as they are all coming from the same source thread. I am using C# 2.0, and what I am doing is more involved than what I was asking. However, I was still interested to know the ans ...Show All
Windows Forms event on scaning barcode
hi , i am using vb.net 2003 and i want to scan barcodes with the scaner i want if the scaner completes the scaning doesn't matter what the length is the next textbox is focused i tried it on different events but could not find the proper event can any body help me best regards ali shah The problem appears to be with the&nb ...Show All
Smart Device Development Adding a new target device to the VS2005 IDE?
How can I add a new target device (a custom WinCE Emulator OS) that I built with Platform Builder to the target device dropdown in visual studio In short, I built a Win CE OS using Platform Builder. Now I want to debug an application on this device (it's an emulator build) using the VS 2005 IDE in which I built the program. I can't figure out how to do this 1. Build SDK in PB. 2. Install SDK. 3. Follow this to debug on the emulator (note that would be PB emulator). http://blogs.msdn.com/vsdteam/archive/2005/01/05/347332.aspx ...Show All
Visual Basic How to capture mouse events on shapes or regions
I am drawing irregular shapes at runtime (VB.NET 2005 beta2) using the FillPolygon command. I want to link these shapes to mouse events. Say if the user clicks on one of these shapes it triggers an event. I have read a lot about events, but could not find out how (or even if) I can make these shapes trigger an event. I do not want to use User Controls as it appears that they do not support transparency when overlapping other controls, which is essential in this case. Any support would be greatly appreciated. Maybe I am entirely on the wrong track here and just got bogged down. So any input would be great. Thanks Hi ...Show All
SQL Server footer not shown for subreports
hi, i am showing a subreport from a main reports. i have set header and footer for the subreprt. But it is not shown. Thanks in advance, Vinu You can add a textbox inside the body but out of table or add e rectagle and add all inside it, depend wich type of information you need.. ...Show All
Visual C# MessageBox behind console window when run in debugger (F5)?
I have a message which looks like this: MessageBox .Show( "Init failed!" , "Trace" , MessageBoxButtons .OK, MessageBoxIcon .Exclamation); When I double-click on the .exe file in the debug directory the MessageBox appears on top of the console window (it's a C# console application). But when I press F5 to run it in Visual Studio 2005 the MessageBox appears behind the console window (it peeks out at the bottom of the console window). How do you get it to appear in front of the console window Have this sometimes aswell. add "this" as first parameter. MessageBox.Show(this, ...Show All
Visual Studio 2008 (Pre-release) property initializers and immutable classes
The way property initalizers are now implemented, it is not possible to create classes that are immuatble that also support property initialization. Id like to propose the use of the readonly keyword on properties, which makes the setter accessible only at initialization time, and that readonly fields should also be accessible during initialization time. If the class implements ISupportInitialize (or something like it), then BeginInit/EndInit methods would be wrapped around the initialization. Consider this: class Foo : ISupportInitialize { private int _bar; public readonly int Bar { get { return this._bar ...Show All
Visual C# Wierd error : Attempted to read or write protected memory. This is often an indication that other memory is corrupt
Ok I have a project that runs fine from the IDE, the problem is if I install the app or run it from the bin\release folder then I get this error on one of my method calls. I have tried this on a test machine and on my development machine and the results are the same. I have spent hours trying to figure this one out....... The crazy thing is, the method shows up in the stack trace but there is not code at all executed in that method. I was having the same problem when trying to instantiate a FoxPro .dll in my VS2005.net web application on the production server. My problem was in the COM .dll itself using a va ...Show All
SQL Server Replication Isues After upgrading subscriber to 2005
Hi There A while ago i migrated a 2000 database to a new instance of sql server 2005 and succesffully setup replication from a 2000 publisher. However to experiment i took an existing 2000 instance with a subscriber databases and upgraded the default instance to 2005. (Upgraded from 2000 Enterprise to 2005 Enterprise) After the upgrade the setup logs were all successful, i also run upgrade advisor before and made sure there were no issues. To see what happens i did not drop the subscription before upgrade (is this an absolute neccessity ) All i did was stop the distribution agent before upgrade, to see what would happen, i did ...Show All
Visual Studio 2008 (Pre-release) WSE client for WCF service
Hi, I have a WCF service. I have installed WSE on the same system where WCF is there. Now I generated client proxy for using WSDL.exe for WCF service I am getting the following error: System.Net.WebException: The request failed with HTTP status 415: Unsupported Media Type. with WSE generated client. So can't we use the WCF service from WSE client Thanks, Venkat Pablo has sample on WSE->WCF interop,This may help http://weblogs.asp.net/cibrax/archive/2006/04/19/443402.aspx can you please send your repro,my email id is madhup@microsoft.com -Thank you Madhu ...Show All
