Answer Questions
vero_ BitConverter
hello... First of all, I am not sure if this is the right place to post this... anyway, here's my prob... I am writing a TCP server in C#... and a client in JAVA..... I converted an int in JAVA into byte[4]...(tested it in java, nothing wrong). sent it over to the server.. At the server, convert it back into int from byte[4]....and it becomes 16777216 instead of the original number which is 1.. my question is, is it pos ...Show All
adshah what is the meaning of GraphicsUnit.World?
For GDI+,Graphics.PageUnit = GraphicsUnit.World; can you explaint the meaning of "World" :Specifies the world coordinate system unit as the unit of measure. what condition should I use "world" Thanx. I have no practical experience with, but I believe that the World units are used so you can manually convert some world unit to a device unit by using Graphics.Transform. You will need to supply your own matrix for performing t ...Show All
jkh1978 Problem with the database attached to my Solution
Hi I have a c# window form application and I have a attached a database to my solution. The problem is that everytime Im debugging my project the database get overwritten int the debug folder and all the data will be lost. Is there a way to stop this. Any ideas everybody I got it Right Click on the database file in solution explorer and select Properties. In the properties wind ...Show All
WedgeSoft Problem in ASP.NET
Hi, I've just finished an ASP.NET app based on C#. I want to do something to hide my file extensions like Google, Yahoo etc. But I don't know what to do. I ask the question in this forum because I think it may be resolved by using HTTP Handlers or something which is relating to to programming. Best regards Thanks Mr. Domag for your good direction and thanks Cathal for the helpfule answer. you're correct, you would use httpha ...Show All
Roland A How good is the garbage collector?
Just how good is it Is it a C# feature or .NET Framework feature Thanks Quite a bit of the .NET Framework simply wraps around existing Win32 or COM(+) functionality. WinForms is an excellent example, where you still have a HWND backing every window and control. GDI+ is another good example. Take a look at GdiPlus.dll, the Win32 DLL that implements the actual GDI+ functionality. (You can find P/Invok ...Show All
simon_wang Using and querying custom property sets/items
Hi In terms of the Windows Indexing Service and IFilters you can register custom property sets and return data for these custom properties when your IFilter is called. In the MSN-DS (WDS) dev guide at http://addins.msn.com/devguide.aspx they mention that your IFilter should return values for all properties that it finds for the item types it indexes. However the docs go on to state that : For a complete list of supported properties u ...Show All
tdickson Loading MDIChild into MDI Wndow from a Dialog
Hi, I have the following forms: form_MDIChild form_MDIContainer when a user choose a menu item on form_MDIContainer it will display a login dialog a\d i want if login was successfull to load the form_MDIChild into the form_MDIContainer. I tried this code before closing the login dialog but no luck. frmWorkingArea form_MDIChild = new frmWorkingArea(); frmMain form_MDIContainer = new frmMain(); form_MDIC ...Show All
Corrine datagridview / cells and rows
hi, i need help, how can i get the value from a particular dgvcell if i'll select the entire dgvrow and how to auto-select a row thats brilliant got it working now. super fast reply. Thanks! Hi, am trying to do the same thing, where im pulling some info from within a record. am using the binding source.current to get the obj. but im getting stuck on how to cast to a dataTableRow. Can anyon ...Show All
pittpantha Cast null values
I have a query in my TableAdapter that returns a decimal type, but can have also return a null value. How can I assing a 0 if it returns a null value My actual code is: decimal idUsuario; idUsuario = ( decimal )queriesTableAdapter.GetIdUsuarioByUsuario(Usuario) and it fails if a null value is returned. I have test this code and it works: if (queriesTableAdapter.GetIdUsuarioByUsuario(Usuario) == DBNull.Value) id ...Show All
robcw tabcontrol
hi, how can i hide a tabpage2 in a tabcontrol when the form is loaded , and how can i show it again when the user click a button in the first tabpage if that is possible First you need to add a field to your class to remember the removed tab page: class YourForm : Form { ... some other code private TabPage savedTabPage; ... } then when you need to hide the TabPage, let's say in Load event: void Y ...Show All
Jen Smith Making a folder virtual folder on button click in asp.net using C#
Hi All Please tell me is there any way from which i can make a folder a virtual folder by clicking a button in asp.net using C# You can use the following code segment using System; using System.DirectoryServices; namespace VirtualDirectory { public class IISManager { public static string VirDirSchemaName = "IIsWebVirtualDir";   ...Show All
Rocky in CA sql extract data
Hi i have a big file in DB like 300 MB i want to save the contents of that Table in a XML file.. problem is i get the exception System.OutOfMemory ... has anyone done that before suggestion how to do it is it possible to request a amount of data from the SQL server like.. the file HAs 300MB .. the server send 10MB then another 10MB.. and so one untill all data is sent Thanks!! You can use READTEXT to read a specific block of a conten ...Show All
Hemant Rao How to send c++ unsigned char in C#
I trying to send some data to an application wrote in C++ (through a socket) and this data must be delimited with a delimiter packet (STX and ETX) and the application log that receives my data tells me that "No stx found in packet". I contacted the support personel of this application and the guy told to me that this application was build with C++ and "the STX and ETX are defined as datatype unsigned char in C++". My que ...Show All
brenmartin Equivalent C# statement
Hi, Could any one tell me what would be the C# equivalent for the following Delphi/Pascal statement: IF ((a in [0,1,2]) or (b in [5..6])) THEN BEGIN END; C# does not support sets. The only way that you could write the code is: if(a==0 || a == 1 || a == 2) || (b >= 5 and b <=6) { } When VS2005 comes out, it still won't have proper sets - BUT Pe ...Show All
UntimelyWill Visual C# beta 1 crashing - help please
Hello everyone! Im a newcomer to .NET and C# and recently (about a month back) I had started using visual C# express edition 2005 beta . It worked just fine uptil about a couple of days ago. Two days ago, I started vc# express and chose 'New Windows Application' under File->New->Project. (1)Now, earlier this would have meant that the design view would have showed up. However,now vc# just opens a new project,displays the property window fo ...Show All
