neof's Q&A profile
.NET Development Compiled Regular Expression...setup during runtime...
If one specifies that the regular expression should be compiled into the assembly, how does that affect a dynamic creation of the expression For example, the areas in red are specific to the string.format where a delimiter defined at runtime that is being inserted. Regex( string.Format ("( <= {0} |^)( :\") ( <Column>[\\w\\.\\- ]*)( :\") ( = {0} |$)", this.Delimiter ), RegexOptions.Singleline | RegexOptions.ExplicitCapture | RegexOptions.Compiled); Since it is generated at runtime...how, or if, does that affect that it will be compiled into the assembly Or am I misunderstanding compiled The documentation says the first time run it will incur a penalty... Specifies that the regular expression is compiled to a ...Show All
Visual Studio What happened with the Visual OOP???
Hi, I’m a developer actually using the .Net 2003; We have a big project of a renter car company and we use (a lot by the way) the awesome behavior in .Net 2003 IDE - Visual OOP; We create our bases forms and inherities this on anothers forms putting our code just once... very usefull; So the .Net 2005 comes and... what happened with this feature Just removed Why We have 80 plus DLLs components loading the assemblies by Reflection (another awesome feature) but when we need change any VISUAL property it’s disabled :S Please... turn back this feature... Thanks for attention and sorry about my english :-P Fabio Pirani de Padua from Brasil! Unfortunately, the existing visual inheritan ...Show All
.NET Development implementing save as : created new access file but not able to populating it with data
Hi everybody, I was trying to implement a "save as" routine. I used the DataAdapter.InsertCommand but no data is being inserted into the newly created datatable. > When it executes it says " New file created and saved successful" > A new access file is created with a table named "datatable" with all the required fields. > But no data in the datatable. The code follows please help. thank you vishal Private Sub SaveAsToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveAsToolStripMenuItem.Click 'Create a new SaveFileDialog and display it. Dim objSaveFileDialog As New SaveFileDialog With objSaveFileD ...Show All
Software Development for Windows Vista Activate sound devices via code?
Hello! I posted this on MSDN Forums Audio and Video Development Media Foundation Development before I found this forum. I think this is a better place. For some reasons I could not delete it there, so please don’t blame me for double-posting :) In the Vista sound-control-panel one can activate and deactivate what is now called sound devices (microphon, line-in, phone etc.) Is there a was to do this via code First of all I did not manage it to get the deactivated devices by the EnumAudioEndpoints Method using the predefined flags. On my system the device state in the registry is 0x10000001, in case of a device not beeing active. I defined a custom flag with this value and the EnumAudioEndpoints method succesfully re ...Show All
SQL Server Matrix - hiding a specific row in Column Total
Hi, I have created a matrix with multiple rows in the main data cell and a subtotal at the end of the row. The first row in my matrix main cell is just a count of records, whereas the 2nd row is a % of the value in the 1st row compared to the total of that row. I have 5 columns in the matrix as below (only first row is shown plus the total row. Ignore any rounding issues): Status A B C D E Total 02/01/2007 No. 9 32 3 13 0 57 % Total 15.00% 56.00% 5.00% 24.00% 0.00% 100.00% Total No. 77 143 25 72 2 319 % Total 135.00% 350.00% 48.00% 250.00% 2.00% 556.00% I ...Show All
Visual Studio Tools for Office Can a VSTO 2005 Excel Application be started from a web application?
This honestly has become about as frustrating as ever, folks. I've read post after post after post, just about every "How To" written, and just about every last bit of the VSTO architecture on MSDN. I know that an Excel application can be called from a Windows Form based on 10,000 posts and examples. I haven't once found anyone who tried to start an instance of Excel from a button click event off of a web page. I know that that may sound kinda silly, but that's what my client wants. So - first question: Can an Excel application (i.e. an Excel worksheet with C# code-behind, developed using VSTO) be opened using the C# code-behind for an ASPX (2.0) web application Currently, I get a "Remote Procedure Call failed" error, ...Show All
.NET Development BufferedGraphicsContext cannot be disposed of because a buffer operation is currently in progress.
hi , I displayed the image on the picturebox. I used to incerase the width and height of picturebox, and sisplayed the image. when the width of picture box becomes 17550. Can anyone help me to ,in finding a solution to this. Runtime exception is thrown, the details are given below. " at System.Drawing.BufferedGraphicsContext.Dispose(Boolean disposing)\r\n at System.Drawing.BufferedGraphicsContext.Dispose()\r\n at System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)\r\n at System.Drawing.BufferedGraphicsContext.Allocate(IntPtr targetDC, Rectangle targetRectangle)\r\n at System.Windows.Forms.Control.WmPaint(Message& m)\r\n at System.W ...Show All
Smart Device Development ToolboxBitmapAttribute in the CompactFramework ?
Hi all, I have a smart device .dll project where i have created many custom controls and i would like to set custom icons for them so that i can easily identify them in the toolbox. I have found that this is done through the ToolboxBitmapAttribute for Full framework app, but i can't found how to do this for a compact framework application. Thanks Lucas. Hi, Ilya i haven't seen this previous post, but the answers seems not that right, currently my problem is not to add design time attributes, i know how to do that (and the "Category" attribute is supported in CF2), you can add all the attributes you want through the class diagram view or by directly editing the DesignTimeAttributes.xmta file in your project. I just wanted to ...Show All
Visual Basic FileLogTraceListener not writing to file beyond a constant max-size
Hi Friends, I've been using FileLogTraceListener class to write log data to files. Since the data being written is continuously generated, I set the file to be created on a daily basis. I do not set up the maximum size for the log file. The problem is - My log files do not seem to grow beyond a fixed size (4833 K). All messages are written to log file till the file grows to this size and then no logs are appended. Here are my settings - faultLoglistener = new FileLogTraceListener(); faultLoglistener.Location = LogFileLocation.Custom; faultLoglistener.CustomLocation = "C:\\"; faultLoglistener.BaseFileName = "FaultLog"; faultLoglistener.LogFileCreationSchedule = LogFileCreationScheduleOption.Daily; faultLoglisten ...Show All
.NET Development how to not include base class in shema
Hello I have three classes A,B,C. B derves from A and C derives from B. I only want to include A and C in the wsdl so that the client does not see B. I tried to use the [ XmlType (IncludeInSchema = false )] on B but then C wont be included either. Even adding [ XmlType (IncludeInSchema = true )] to C wont include C. How can this be done I do not want to include B and B:s properties should not be seen in C either. Thanks Rassol, I found no way to make A as C's base in the wsdl. However, I have a question..... do you want to hide B properties or you don't want to have B at all there The closest I got to what you want is to mark B properties with XmlIgnore.... so in the wsdl you have B, but witho ...Show All
.NET Development Need Help On HttpWebRequest
I am using below code to test HttpWebRequest. If you put this URL and use given userid and password its taking me to the invalid user screen. This site is a third party site and I don't have any other info. Below is my code =============My Code-----===================== ========== HttpWebRequest webRequest = (HttpWebRequest)WebRequest .Create(" https:// website"); string postData = "txtLogin=ABC"; postData += "&txtPassword=def"; postData += "&__VIEWSTATE=dDwtNzE3NDAxOTg4O ztsPGJ0bmxvZzs+PvynWXke2BHF7+n +YmeE08t7FGuU"; postData += "&btnlog="; webRequest.CookieContainer = new CookieContainer(); webRequest.Method = "POST"; webRequest.ContentType = "application/x-www-form -urlencode ...Show All
Visual Studio adding a where clause
I have a crystal report that grabs all the data from the database, MS Access DB, but I need it to only grab the 1 record a user wants. The user selects an item from a datagridview and I want only that item to display in the crystal report. I tried using the selection expert, but there doesn't seem to be any way to pass a DB ID to crystal reports to use in the Selection Expert or Selection Formula options. I'm using C# if that makes any difference Thanks in advance for the help that worked, the whole solution looks like: CRUseParameter CRRpt = new CRUseParameter(); CRRpt.SetParameterValue("ParameterName", value); CRViewer crv = new CRViewer(CRRpt); crv.show(); ...Show All
.NET Development socket receive question
Hi, I need to build a client-server tcp socket program, the client needs to send some commands to the server and needs to wait there for the response from the server. I am thinking of using sendto&receivefrom to do this synchronized call. But the server side will send some data to client irregularly, so I need to have something listerning, I think I must use BeginReceive to receive the data from this socket. So the problem is how to mix synchronize and asynchronize during receiving. I am a socket newbie and am confused with this case. Would you please to clarify it to me and give me some hints how to implement it Thanks a lot. Thanks, Frank & Rizwan, After reading your posts, I got ...Show All
Visual Studio 2008 (Pre-release) Returning Files as a Stream
I have a WCF contract that returns a stream. I am normally returning an XML file. This works fine, but whenever I return a 'null' or binary file, the WCF comm seems to get hosed. This is a self-hosted console app. Here is my app.config. <endpoint address="net.tcp://localhost:8002/ProLab/" binding="netTcpBinding" bindingConfiguration="" contract="NCRx.ProLab.Common.IProLabServer" /> The interface is set up as a duplex interface as follows. [ServiceContract(Namespace = " http://NCRx/ProLab/Server ", SessionMode = SessionMode.Required, CallbackContract = typeof(IProLabWorkstation))] interface IProLabServer { /// <summary> /// Notifies the ...Show All
SQL Server How to stop automatic Replication Validation?
Under EM's Replication Monitor/Publishers/pub1/publisher1 there is a "Validate Subscriptions" option on the right-click menu. Since I see unexplained Replication Validation activity I think that the "Validate Subscriptions" option is turned on. But there is no "turn-off" button or way to say "stop." Does anyone know how this "feature" works Thanks I would suggest that you script the publication out and look at it in Query Analyser. It may not be obvious what the parameter is as sometimes the description we see in the GUI is far different from what the parameter might mean. You can always look up the parameters in BOL to make sure you understand them. We have previously used this technique to ...Show All
