Corey Furman's Q&A profile
Visual Studio how to reset the record no in the crystal report when the group header change ?
Hello! i have a complex report here and i need to reset my record number after the group header change like.. ---------------------------------------------------------------- Header Title 1 SubHeader Title 1 No. 1 No. 2 No. 3 No. 4 No. 5 No. n SubHeader Title 2 No. 1 No. 2 No. 3 No. 4 No. 5 No. n SubHeader Title 3 No. 1 No. 2 No. 3 No. 4 No. 5 No. n Header Title 2 SubHeader Title 1 No. 1 No. 2 No. 3 No. 4 No. 5 No. n SubHeader Title 2 No. 1 No. 2 No. 3 No. 4 No. 5 ...Show All
Visual Studio 2008 (Pre-release) Issus about implementing reliable in WCF
I add a reliableSessino element in my netTcpBinding. and set it's enabled attribute to "true". After send servial requests to service, I cut the net connection, then I receive severial errors: 1. The open operation did not complete within the allotted timeout of 00:00:00. The time allotted to this operation may have been a protion of a longer timeout. 2. Could not connect to net.tcp://10.102.13.118:11120/myservice. The connection attempt lasted for a time span of 00:00:00.4218750. TCP error code 10060: 3. The maximum retry count has been exceeded with no response from the remote endpoint. The reliable session was faulted. This is often an indication that the remote endpoint is no longer available. 4. This request oper ...Show All
Smart Device Development DeleteSubKeyTree throws UnauthorizedAccessException
Hi I'm currently trying to develop a small game for Windows Mobile 5 using the .NET Compact Framework 2.0. Everything works fine except calling the DeleteSubKeyTree method. I can call this fine once, but when I call it a second time, it keeps throwing UnauthorisedAccessException s. I've never had this problem with Windows, does anyone know why this is happening Below is some reproduction code for this issue. Paste it in the event handler for a button or something and call it twice. The first time should succeed, the second and subsequent times should raise exceptions. Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Const RegKeyPath As String = " ...Show All
SQL Server Enlarge the database size??
I have a database that seem run out of space I click my database properties and show this info Size:139,19 MB Space Available: 0,00MB maybe thats why I cant input new data on my table, but when I do this EXEC sp_spaceused 'MyTable', I got this info rows: 74 reserved: 112 KB data 32 KB index_size: 24 KB unused: 56 KB And this is why i confuse, if I run out of space why my database have 0,00 MB but MyTable have unused 56 KB how to enlarge the database size thx Table don’t shrink themselves. Data pages will be rserved in advanced for additional data in the meaning that the data will grow for a specific value to hold the new data. if you delete data, the data page will s ...Show All
Windows Forms can i Connect multi table on the datagridView
please answer me can i connect multi table with dataGridview if can give me example thanks Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim dsOrdersAndDetails As New DataSet() Dim daOrders As New SqlClient.SqlDataAdapter() Dim daDetails As New SqlClient.SqlDataAdapter() Dim conn As New SqlClient.SqlConnection() Dim tblOrders As New DataTable() Dim tblDetails As New DataTable() dsOrdersAndDetails.Tables.Add(tblOrders) dsOrdersAndDetails.Tables.Add(tblDetails) conn.ConnectionString = "Data Source=(local);Initial Catalog=Northwind;Integrated Security=SSPI" ...Show All
Windows Forms Alternating between two images every 3 seconds using a timer
Hello! I am quite new to C sharp and want to write a small program. I use an Mdi form with several child forms. I want to have a little picture box in a corner, possibly the Mdi form, that alternates every few seconds or so between two images continuously even while I switch between the various child forms. Is this even possible in Visual Studio 2005, and if so how Many thanks, Boombastic Well, I don't quite understand what you are trying to do with these images. But doing a background image in the MDI parent client area won't do it Then you will want to do a base form class and put the timer and code to change the images in there. Then inherit from this form in every MDI child form that sh ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to access Surface data?
here is my code Surface surface = graphics.GraphicsDevice.GetBackBuffer(0, 0); uint[] data = new uint[4]; surface.GetData<uint>(data,0,4); "The size of the data passed in is too large or too small for this resource" exception will throw out when execute GetData function. How draw a picture on an surface except to use GetData SetData function Is there a way to use GDI+ function to draw something on XNA surface,or copy data from System.Drawing.Image I want to write some code to draw chinese string on screen.If GDI+ function is available in XNA,that will easy to complete. Font class I can't find any font class in the beta version.Do you mean there is a font class in the furture final version If so ...Show All
Visual Studio 2008 (Pre-release) Anyone suggest a good book?
Hey Guys.. Just starting to look at wcf for a project. Anyone know of a good book that is fairly current and can provide a good introduction and same decent samples Juval's book: http://www.amazon.com/Programming-WCF-Services-Juval-Lowy/dp/0596526997/sr=1-1/qid=1170284352/ref=pd_bbs_sr_1/104-3329916-3175902 ie=UTF8&s=books Another suggestion: http://www.amazon.com/Pro-WCF-Practical-Microsoft-Implementation/dp/1590597028/sr=1-2/qid=1170284424/ref=pd_bbs_sr_2/104-3329916-3175902 ie=UTF8&s=books The book that Michael mentioned is an update to the book Craig McMurtry wrote on the Beta version of WCF. If you can wait until March, then here's Craig's book: http://www.amazo ...Show All
Visual C# Is it safe to remove a delegate inside its delegated method?
This sounds a bit strange but it's a real world problem. Say I have an event Disposing and a method F() handles that event. obj.Disposing += new EventHandler(F); ... void F() { ... obj.Disposing -= new EventHandler(F); } Here's the problem, F() is going to remove itself from the invocation list of the Disposing event right at the time it's invoked. I don't find a statement for this in the spec. So could anybody tell whether this is designed to be safe or not guaranteed Thanks in advance. Yes I'm using the multicast delegate which the compiler gives me. I just don't know how dotNet implement the multicast delegate, so I don't know whether it has the problem which I described above. It seem ...Show All
Game Technologies: DirectX, XNA, XACT, etc. texture2d problem...?
Hi All, i'm new to XNA programming (and directx programming altogether). having a lot of fun with XNA and most things are pretty straight forward for a simpleton like me. here's a problem i'm having that i'm hoping someone can shed some light on. I'm using a lot of photos in my application (a slideshow!). I'm testing with 1 Texture2D and every few seconds loading another image into it using Texture2D.fromFile, etc... Here's what i'm experiencing - if I don't call dispose() on the texture before each new fromfile, it's a memory leak... this makes sense. the problem is that the texture seems to get confused on it's size. I'm using a mix of different sized non-square images. it's like the texture only reads the first texture size called and t ...Show All
Smart Device Development Memory Problems
Hi, i'm creating a sort of pictureviewer. I've got a first page with thumbnails on it and when I click on one, a new form opens with a large size picture in it. The problem is that I can open and close the large picture 2/3 times but the next time it gives an error of outofmemory exception. so the code of the thumbnail is void picturebox_Click( object sender, EventArgs e) { Frm_PictureViewer frmArticleFS = new Frm_PictureViewer (); frmArticleFS.ShowDialog(); frmArticleFS.Dispose(); } On the frmArticleFS there is a button close with the code "this.Close()" in the click event. Does anybody now how to solve this Grtz Annihil8 I've heard that images are ...Show All
SQL Server 0 aggregations was designed (0% optimization)
When I try to design aggregations it always produces 0 aggregations. what am I doing wrong If you are running SSAS2005 it can depends on that you have not designed any attribute relations in you dimensions. When you run the aggregation wizard you will see a tab before the aggregation process starts, where you count dimension members on each dimension level, as well as a fact table count. If you are missing counts for members below the all-level(dimensions), you have not defined attribute relations properly. HTH Thomas Ivarsson ...Show All
Visual Studio 2008 (Pre-release) Buffer Size error when retrieving Metadata - How to increase size?
I am trying to retrieve the MetaData from the WCF Service using the following method. // Create a MetadataExchangeClient for retrieving metadata. EndpointAddress mexAddress = new EndpointAddress ( uri ); MetadataExchangeClient mexClient = new MetadataExchangeClient ( mexAddress ); // Retrieve the metadata for all endpoints using metadata exchange protocol (mex). MetadataSet metadataSet = mexClient.GetMetadata(); How do I increase the buffer size Thanks, Dave An exception is being generated Metadata contains a reference that cannot be resolved: 'http://localhost/EventTest/ServiceReport.svc/mex/'. at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Re ...Show All
Visual Studio Problem using IVsTextManager::EnumViews
Hi. I'm trying to enumerate existing views in VS2005 using IVsTextManager::EnumViews (managed code, if it matters), but it always returns -2147467263 (ArgumentException: Value does not fall within the expected range) no matter where I call it from (and regardless of whether there are any open documents or not). I'm already handling IVsTextManagerEvents::OnRegisterView, but I need to find out about existing documents (ones that were registered before my listener is started). I'm passing null for the buffer argument (docs say that's ok), but I've also tried enumerating buffers using IVsTextManager::EnumBuffers with exactly the same result (-2147467263). Am I doing something stupid Any suggestions would be appreciated. Thank ...Show All
Windows Live Developer Forums Close window API
Dear all i have one question would like to ask someone if i had one XXX.exe which design by vc program and when how can i use dos command to shutdown this xxx.exe in dos command line Unless I recall incorrectly, there isn't a DOS command to kill processes. And there's a big difference between hiding a window and ending its process. What are you trying to accomplish (I don't think this thread belongs in this forum at all.) ...Show All
