JazzGuitar68's Q&A profile
Visual C# What is Macro Substution operator (if there is any) in C# ?
Please, Help! I would like to know what is equivalent of Macro Substution operator ( '&' Vis.FoxPro) in C# In fact, I want to instantiate a (for ex. a Form ) class in a procedure getting the name of the class name with a string parameter. ex. public void StartForm(string formName) { &formName form1 = new &formName; // something like this } Thanks in advance. Thank you very much David. (I was away and just got your help). Currently I have not try it, but I am sure I am going to use it. ...Show All
Visual C# Memory leak
Hello Guys, Recently, i had used a tools to detect memory leak for .net And, it's said that i had a memory leak on exiting program. The leak is mainly on hpz2ku10.dll and hpzpm310.dll but on different line/offset. My question : How to avoid this memory leak since i don't know which code causing this leak. also, it's said that the total bytes leak is 75.104 bytes (75Kb), is this leak bad Thanks guys for the answers. hi, i want to ask you which tool is this because i'm suffering here in something like that but my problem is bigger than 75kb best regards ...Show All
Visual Basic Accessing Online Books
Re: VB 2005 Express Beta 2 The VB.Net page said that in addition to the activation key... you also get access to online books. Does any one know how you access the books The links on the VB.Net page directed me to online book shops rather than to an online access link. Thanks Ozbravo Did you get an email that pointed you to the Microsoft My learning page ( https://www.microsoftelearning.com/eLearning/enterCode.aspx ) and supplied an access code If you have already gone to My learning and entered the access code then you can just go to the My learning page ( https://www.microsoftelearning.com/eLearning ...Show All
Windows Forms Datetimepicker culture
Hi. How can I change the calendar display from my regional culture without setting from the regional setting. I 'd like to change form thai calendar to Eng US calendar by using code. How can I code with C#. thanks . . . Hi Can you give us the format string that we have to assign to the CustomFormat property to let it displa ...Show All
SQL Server ORDER BY error
Hello, in a complex stored procedure, i get an error when i want to apply an ORDER BY statement : Here is a part of this Stored Procedure : SELECT TaOperations . Id_Operation , TaOperations . HeureDebut , TaOperations . Signe , TaOperations . Facturer , TaOperations . IdUserVerrou , TaOperations . Id_Client , TaTypeOperation . Facturable , CONVERT ( CHAR ( 10 ), TaOperations . HeureDebut , 103 ) + ' - ' + TaTypeOperation . TypeOperation AS Code FROM TaOperations INNER JOIN TaTypeOperation ON TaOperations . Id_TypeOperation = TaTypeOperation . Id_TypeOperation WHERE ( TaOperations . Id_ ...Show All
Visual Basic Skinning...
How do you skin a program so it doesnt use the default windows skin. Are we talking windows or web application. Web Applications - isn't that sort of what master pages are about. http://builder.com.com/5100-6371-6057134.html For Windows application - Probably the easiest way would be to use a third party component to do this for you and add the appropriate UI for whatever skin you want to implement. If you want to create the skins yourself, then maybe something like this is a good start. But I dont think by default VB contains a skinning component. ...Show All
Windows Forms GridView DeleteCommand Firing Twice
I Have a gridview with a command button for delete defined. On the Datasource for the grid I have a DeleteCommand that runs a stored procedure that takes the ID field defined in grid view control. When the delete command is selected in the gridview the deletecommand stored procedure is called twice with the same ID (I have traced this). I have removed all delete events from the gridview and datasource. I have a FormView that has a selectcommand using the GridViews primary ID. I have autoeventwireup set to true. There is no code being ran before or after deletion. I did have a refresh procedure being ran after delete. Whe ...Show All
SQL Server ADOMD.NET Compression Not Working
I am using AdomdConnection to connect to analysis services over http through the msmdpump.dll in IIS. Here's my connection string... connectionString = " Provider=MSOLAP.3;user id=auserid;password=apassword;Data Source=http://servername/olap/msmdpump.dll; Initial Catalog=CatalogName; Transport Compression=Compressed; Compression Level=9;" Everything works but some of the cellsets returned are large and I need compression. It is not returning a compressed http response. When I sniff the http request I do not see ' Accept-Encoding : gzip,deflate'. If I hit a regular web page with IE I see this in the ht ...Show All
Visual Basic GPS Software
Hi there I am developing a GPS Tracking software using vb2005. I have done some parts and now i have problems drawing the path that a car has gone on the map. Can anybody show me a refrence about Developing GPS Software. Thanks in advance http://www.esri.com/getting_started/developers/index.html ...Show All
Visual C# Casting an enumeration that has a defined type..
public enum foo : ushort { foo, bar } ushort test = foo.bar; Cannot convert from 'Test.foo' to 'ushort' Sure, I can make variable of type foo, but I'm encoding the value to a network stream, so I want it as a ushort. The thing is, I specifically told the compiler the enum is of type ushort, so why do I have to typecast it cgraus wrote: Well, one thing I like about C# is strongly typed enums. If I were you, I'd be using one enum for both, assuming they both represent the same thing and have the same values ( which your statement seems to me to imply ). Unfortunately, ...Show All
Visual C++ "Correct" Workerthread Termination
Hello, I have used worker threads for a long while and yet always had and still have problems with the "correct" way such threads should be killed for premature termination. They may have files open, are in the process of allocating global memory or doing any number of other things. The closest I got to "correct" is to signal the worker thread through it's priority if it's services are not required anymore for termination prior to it's full execution. Except the code then starts to look messy with CheckForKill()s all over the worker thread code. What is the "best correct" method to do this and yes, I am aw ...Show All
.NET Development Xml Serialization breaks OO encapsulation?
Only public fields / properties are xml-serializable, as I tested and searched on web. What happens if I have a class containing read-only properties, or internal states (private fields) that are not public Do I have to compromise the encapsulation concept in order to get it serialized Blair Allen Stark wrote: XML is just a simple data interchange for passing the public data an object presents back and forth. Almost by definition it needs to be read/write. And XML makes no specification as to how the consumers are to contain the data. Yes, we typically write our own suppliers and consumers for both sides, but that is really j ...Show All
Visual Studio Express Editions What form call me ?, if i have many of them....
I create 10 forms dinamically.... << dim f as new frmAny , f.show >>, well, any of these forms calls other form, here i create a value that i need return to the form who call these other form...... How i know who make(which of all the forms) that call to the other form...because only he must receive the value.... Thanks for everything..... Hans, When you show your dynamic forms specifiy the Parent form: In frmMain... Dim fr As new frmAny fr.Show(Me) -or- fr.ShowDialog(Me) Note: Parent parameter is new in .NET 2.0 for Show meth ...Show All
SQL Server ODBC Data Source error
As other contributors, all I am trying to do is import data from an ODBC source (spelled 'non-Microsoft data source') into a SQL 2005 table. I can easily do this in SQL 2000 with DTS, but when I use the same DSN in VS 2005 it doesn't work. I created an integration project, and made a connection in Connection Manager to the DSN and clicked Test Connection. It succeeded, or so it claimed. Click OK and drag a DataReader Source onto the Data Flow surface Doubleclick it and select the connection manager per above. Note the error: Error at Data Flow Task [DataReader Source[50]]: Cannot acquire a managed connection from the run-time connectio ...Show All
.NET Development SerialPort Class Help DataReceived
I'm using the DataReceived from the V.2 .NET SerialPort class. I'm communicating with a microprocessor board and i can write to it fine. I'm having trouble reading from it. It sends a single byte at a time without an EndCharacter. I can see the byte being sent on my oscope and with an older Turbo Basic program it does read the byte. My problem is that my DataReceived event isn't being thrown. I have my ReceivedBytesThreshold set to 1 and i still can't see anything. Here is my code just see if the event can be thrown: Private Sub SerialPort1_DataReceived( ByVal sender As Object , ByVal e As System.IO.Ports.SerialDataReceivedEve ...Show All
