Sekar00's Q&A profile
SQL Server Selectively bolding and/or justifying the nth occurence in a table
All, Our user wants to bold and/or justify the first occurence of an item in a table. The items are in the detail section of a table and I'm not sure if this is possible. Any ideas on how to do this Thanks Thanks, That helped. Now I have to do the same thing for a column grouping within a matrix. There is no columnNumber keyword though. ...Show All
Windows Forms debugging information log
Hi, I want to perform extensive logging i n my application. Such as, I want to log variable values when a function start executing and end executing. I want to log the executing functions, their names and if possible time stamp. Also, I want to log exceptions. I can do it manually, but is there any .net based class that does it all for you Any samples Thanks well you can write it in either a text file or in the EventLogs in Windows. EventLogging: http://msdn2.microsoft.com/en-us/library/system.diagnostics.eventlog.aspx I guess you would have to write to the log entry when you are wanting to log something... :-) There maybe another way that I'm unaware of but these are a couple of ways of loggin ...Show All
Visual C++ yet another dwmapi.dll/IE7 issue
There have been several threads concerning dwmapi.dll and IE7. Here's another one: I've created an MFC DLL that is being accessed by a Ruby script, something like: MyFunction = Win32API.new(mydll,"MyFunction",["P"],"V") On an IE7-installed machine, the Ruby script hangs (or, with the debug version of the DLL, the DLL fails to load). Running depends on the DLL indicates dwmapi.dll is missing. Earlier versions of my DLL which also had this delayed dependency didn't cause the Ruby script to hang, but when I added functionality to the DLL (functionality that must eventually depend on dwmapi.dll), the Ruby script started to hang. As with other threads related to this issue, uninstalling IE7 fixes the problem sinc ...Show All
.NET Development system.net.mail problems
Hi everyone, I've trying to use the system.net.mail namespace to send emails with the follwing code: Private Sub Envio_Correo( ByVal ruta As String ) Dim correo As New MailMessage correo.From = New MailAddress( "b98123839@usmp.edu.pe" ) correo.To.Add( "amonasiq@usmp.edu.pe" ) correo.Subject = "Archivo de Confirmacion de matricula" correo.Body = "Se adjunto archivo de confirmacion de matricula de su respectiva facultad" correo.IsBodyHtml = False 'correo.Attachments.Add(New Attachment(ruta)) correo.Priority = MailPriority.Normal 'Crando la instancia del SMTP cliente Dim smtp As New SmtpClient smtp.Host = "mail.usmp.edu.pe" ...Show All
Visual Studio Express Editions Make Autorun.exe
Hello! I would like to create my own Autorun.exe for DVD or CD. I only know how to run application or open some files with command like this (process.start "c:\text.txt"), but in this command I must indicate the drive letter, and I woul like to make my Autorun that independently will run from another drive letters, like F, E, G, etc... Thank you very much. Dave299 wrote: For a CD you need to have an autorun.inf file on the CD. You can find lots of information here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_works.asp I would like to know how can I call another application from my CD, ...Show All
Visual Studio Express Editions Why enumeration?
Hey guys, thanks in advanced. I am reading through a beginners C# book and it cover enumeration, but yeah in great detail as far as why to use it. Can someone explain why you would need or want to use enumeration over another option. And what are other options if there are Thanks a ton. Obviously: some_value = inventory[(int) Work_Days.Wed]; is correct, Thank you. But I must ask: 1: Work_Days is declared right there in the class, there is no possibility of confusion, so why is it required 2: Is there a way to declare the enumeration and array such that a cast is not necessary I suspect there is a way to declare inventory and Work_Days such that thay go together and casting is neither required nor a ...Show All
Visual Studio 2008 (Pre-release) Custom fields
Hi, First of all, great work! Our application has the notion of custom fields which are stored directly in the owner table with alter table statements by a nice ui. As far as I know from the documentation, that scenario is not really possible in the present release. What would be needed I think is a new element as children of EntityType like this < EntityType Name = " Client " Key = " ClientId " > < Property Name = " ClientId " Type = " Int32 " Nullable = " false " /> < Property Name = " Name " Type = " String " Nullable = " false " MaxLength = " 50 " /> < Property Name = " Age &quo ...Show All
Visual Studio Team System Test Run deployment issue: directory is not trusted.
Hi all, I have an application which uses a DLL from our network drive M:\VS2005. Build works fine, but when I call the Testproject it always aborts with this error message: Failed to Queue Test Run ... with id ...: Microsoft.VisualStudio.TestTools.TestManagement.ExecutionException: Test Run deployment issue: The location of the file or directory 'M:\VS2005\MyDLL.dll' is not trusted. Here i've read about caspol.exe and I tried it with every combination like M:\VS2005\* or //server/share/vs2005/* or else, all without success :-( I even set off security with caspol -security off and it still does not work :-( Copying the dll to local file and using it from there works of course. "CopyLocal" is also set to true to after building the ...Show All
Windows Forms MDI app : how can child forms access parrent componnents?
I have a problem and can't figure it out. I want to build a MDI app. using the .net framework I can set the parrent form and a child form..the problem is how can I acces the parrent form's components from within the child form You can access parent form's component through creating an object of parrent form. Just like that Form parentForm = new Form (); parentForm = this .MdiParent; label1.Text = childForm.Text; ...Show All
Visual Studio Team System Load Test using Team Build
We want to run a load test nightly and collect the metrics so that we can see if/how the performance of a web app under development changes over time. To that end we created a Team Build build type for a solution that contains nothing other than a test project that contains the load test. The load test was added to a test list for the solution, and the build type was configured to run the test list. When we build the build type the load test runs just fine (we can see the load on the web server), and the test completes with no errors. After the build completes successfully we view the build report, drill into the Results section, click on the test run, and then double-click on the completed test in the Test Results window. At this point we ...Show All
Visual Studio Express Editions Code
Does anyone know how to store code into a variable, and then somehow be able to run the code in it Or maybe create self editing code Steve CallByName Function ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbalr/html/93888db5-5717-4613-b565-9d943ba3e8f2.htm In the following example, the first line uses CallByName to set the Text property of a text box, the second line retrieves the value of the Text property, and the third line invokes the Move method to move the text box. Visual Basic Copy Code ' Imports statements must be at the top of a module. Imports Microsoft.VisualBasic.CallType Visual Basic Copy Code Sub TestCallByName1() 'Set a property. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. tiled background texture
Hello there, I'm wondering if it's possible to draw the 2D background of my game with a texture that repeats. If this isn't clear think of the background of Arknoid where the background is simply a rectangular texture that's repeated over and over to cover the background. Thanks, Barranger You could just draw your background texture over and over again until you covered all the area that you needed to cover. I don't think there is anything built into XNA to do this for you. ...Show All
Windows Live Developer Forums Annotation function of the URL API broken
The URL API specifies an annotation parameter for the scratch pad: sp=an.latitude_longitude_title_description It should allow you to add a push pin at a specific latitude and longitude. It definitely used to work, but does not appear to now. Has this function been disabled or changed Or can someone provide an example URL where this works I've noticed the same problem with the annotation parameter. As for your problem of the map zooming to your last location... If you click on Options in the local.live viewer, there is a check box that specifies on exit to save my last location. If that is checked, it will over-ride the URL parameters. I haven't found any way to turn this feature off by defa ...Show All
SQL Server Microsoft SQL Server Migration Assistant for Access: No Convert Schema Highlighted?
Hi all, I downloaded the Microsoft SQL Server Migration Assistant for Access 4 weeks ago. Today, I tried this program for the first time. I added one Database with 3 Access 2003 Tables to the Access Metadata Explorer. I right clicked Databaes on the Access Metadata pane and did not see the "Convert Schema" highlighted!!! What is wrong with the program How can I make it highlighted Please help and advise. Thanks in advance, Scott Chang Hi Mike, Thanks for your response. I downloaded SQL Server Migration Assistant for Access (SSMAforAccess) from Microsoft and installed it on my stand-alone PC at home 4 days ago. Today, I tried to migra ...Show All
Visual C# Convert a struct to stream of bytes
I need to transmit the following structure across the network in my program. Code: struct Data { public string strName; publci string strMessage; } Now what I need to do is to change the data to a stream of bytes and transmit it. And, at the receiver end organize it back into the structure. How can I do this logan_india wrote: I do understand the concept but not clear what needs to be done. Can you please help :) I think that you have not comletely read my post. See this again here is the solution you want: "For this 2 work you need to have a same assembly (Version must also be same). You need to create a seperate DLL to Serialize and Desrialize object and ...Show All
