Joshua_10002's Q&A profile
Windows Forms Details about Binhex4 encoding algorithm
Hi, I am developing an simple application for decoding HQX7 Formatted file (ie. 7 bit format as implemented in BinHex 4.0 Macintosh files) into .net environment. I found a RFC - 1741 which gives folloing information. But this does not satisfy my needs. I wand details about how the 8 bits data is encoded into 7 bits, what steps use for it. /******* ******** ...Show All
Windows Forms C# try catch delay
First time an exception is thrown in an application, it takes the application a little while before the catch code is executed. The next time an exception is thrown anywhere in the application, the catch code is executed immediately, but why However, it's better to have no exception at all - throwing them always takes some time. I had a&n ...Show All
SQL Server how to fixed the size of the report and landscape view state?
Good day. How to make or fixed the size of the templates and how to make the report in landscape mode i have make a layout in the landscape mode but the priblem in print preview it is not in the landscape mode. thanks your help is greatly appreciated If your widht and height property have proper values and you can view the report in landscape mode, then the export to pdf will also not be a problem. I have used it, no issues, though I export to PDF using Render method of the ReportViewer control, which is same as what you are trying to do. ...Show All
.NET Development Exceptions versus Return Codes
Framework question: We have a framework where there are multiple layers, i.e Presentation Layer, Middle Tier Layer, Data Layer, etc... For example, say that I had to create users. I would put the logic to create a user in the Middle Tier Layer. I need to check for duplicate usernames in that layer so the Presentation Layer just calls a method in the Middle Tier layer. The question I have is, since a duplicate username is not an exceptional case I would not throw an exception to indicate to the Presentation Layer that a duplicate username was found. However, since the return value of the function that creates the us ...Show All
SQL Server Sort on group total: How?
How do I sort on a group total item Let's suppose you have a table called "table1" and a table grouping called "CountryGroup". You want to sort the groups based on the count of the detail items contained in the individual group instances. All you need to do is to add an Interactive Sort on a textbox e.g. in the table header with the following settings: - Sort expression: =Count(Fields!Customer.Value) - Data region/grouping to sort ("SortTarget"): table1 - Evaluate sort expression in this scope ("SortExpressionScope"): CountryGroup A sample report is attached below. -- Robert < ...Show All
.NET Development using Vb.net and MySql
Hi, Is it possible to work in vb.net( win form and web form) with a MySql database. Is such a connction possible Thanks a lot for your help!! Best regards. Nathalie Hi, Ofcourse you can, .NET is accessible everywhere even if you want to access another dimension. here is all what you need: http://dev.mysql.com/tech-resources/articles/dotnet/ my recommendation is to use Native .NET Provider, i use it to work with millions of records in MySQL DB. for example: http://www.crlab.com/ ...Show All
.NET Development System.Net.Sockets.SocketException was unhandled by user code
Dear all: I have a page that tryes to connect to a MySQL database in a remote server. I already copyed the MySql.Data.dll file to my projects /bin directory,then it was added as a reference to the project. I’m using this connection string: connectionString = " server=192.168.1.3;user id=root;password=secret;database=dbUsers; Port=3306 ; " But every time that it attempts to establish the connection I get this: System.Net.Sockets.SocketException was unhandled by user code A request to send or receive data was disallowed because the socket is not connected and (when sending on a da ...Show All
Visual Studio 2008 (Pre-release) Using VB Linq in web applications
How can I use VB linq in a web application I saw a thread with a hack telling to change a csproj file (in c#), but I created a new website and there is no vbproj file for the application. Is there some way to make visual studio use the prototype compiler for VB 9.0 in web applications Are you using the default web site project (app_code, etc), or are you using the 1.x-style Web Application project template that Fabrice provides links to in that thread ...Show All
Visual C++ msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin I am having the same problem... I even uninstalled it.. and it didnt show a problem then I reinstalled the update and it showed up as a problem in the Windoctor again... any ideas as to what is wrong with this update Im sure its a simpl ...Show All
.NET Development Value of first parameter to Stored proc always goes as a blank.
Hi, In C#, Iam using ADO to access data from SQL server 2000 through stored procedures. When ever I try to pass a value to input parameter, the first parameter always goes in as blank value, even though the value for this parameter exists in the parameters collection of the command object. Thanks in advance. What is the relevance of this line oCmd.Execute( out obj, ref obj,-1); ...Show All
Visual Studio Team System TF Utility Exit Codes
Any chance we could get these documented for those of use you need to script against the TF CLI Send it to me bharry@microsoft.com and I'll make sure it gets to the right people. I'm also working on getting a place put together for community uploads for TFS add-ons, scripts, utilities, etc. Once we get that in place, this would probably be a great thing to put there. Thanks! Brian ...Show All
Windows Forms File Startup Name
I have a file extension .ttt associated to my program, so if I click on a .ttt file the program will launch but how can make the program determine what .ttt file actually started the program. I want to be able to load files back into my program by clicking on them, so I need to know the name of the file that launched the execu ...Show All
.NET Development Type.GetMembers() on an interface does not return members from inherited interfaces
Consider the following: using System; using System.Reflection; public interface IBaseBlah { string GetSuperString(); } public interface IBlah : IBaseBlah { object DoStuff( string name); } public class Foo { public static void Main() { Type t = typeof (IBlah); foreach (MemberInfo info in t.GetMembers(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)) Console.WriteLine(info.Name); ...Show All
Windows Forms Assigning Image to PictureBox from Stored OLE Image in Microsoft Access Database
Hello, I've been trying to access an image stored as an OLE Object in a Microsoft Access database using the following code below : byte[] imgBlobData = new byte[0]; imgBlobData = (byte[])(dataRow["Image32"]); System.IO.MemoryStream myStream = new MemoryStream(imgBlobData); this.myPictureBox.Image = Image.FromStream(myStream); I keep getting an Exception thrown by the Image.FromStream() method stating "Invalid Parameter Used". I know alot of other people, from reading their postings on the net, have the same problems with this method. I've tried all suggestions on the net for a fix to this, including ...Show All
Windows Forms help
hi,all I want to get some cells in DataGirdView by GetChildAtPoint() method. for example: private void dataGridView1_DragDrop(object sender, DragEventArgs e) { Point point = new Point(e.X, e.Y); Point pointOfClient = this.dataGridView1.PointToClient(point); Control control = dataGridView1.GetChildAtPoint(pointOfClient); string a = ((DataGridTextBox)control).Text; } in this method ,I use GetChildAtPoint to get the values of cells,when executed,I found the control is null. I want to know the reason of it . in addition ,is there another method to ...Show All
