12Anonymous1010's Q&A profile
.NET Development Is CallContext out of view from Channel Sink???
Can I not set and retrieve values from call context in a custom sink Am I missing something architecturally never mind. . .I found it. . .its in the IMessage parameter. Once again. . . .good job guys! everyday I am more and more impressed with .Net!!! ...Show All
SQL Server Unique Session ID
In order to replace an Oracle DB with SQL-Server 2005 i need a unique session ID. The number Obtained by @@SPID is for reuse and does not meet my requirements. I'm looking for something like v$session.audsid in ORACLE. Thanks Raimund I dont know how oracle works. but if you want something unique you can use this DECLARE @myid uniqueidentifier SET @myid = NEWID() PRINT 'Value of @myid is: '+ CONVERT(varchar(255), @myid) these are called GUIDS - globally unique identifier ...Show All
Smart Device Development Special folder
In Windows Mobile 5, how can I retrieve the Program Files directory name In english in "Program Files", in italian "Programmi". Then Environment .GetFolderPath( Environment . SpecialFolder .ProgramsFiles) doesn't work because the Environment . SpecialFolder .ProgramsFiles is not support on compact framework. Thanks Hi! Does CF support GetEnvironmentVariable() If yes - you can use "ProgramFiles" environment variable to get to the real folder name. P. S. Docs says that it supported in Windows Mobile 2003. ...Show All
Visual Studio Class Designer in Visual Studio 2005 Beta 2
Hi, I would like to know if there is a possibility in Visual Studio 2005 Beta 2 to design classes using Class Designer without updating the code The purpose is to have the tool create a XML schema, kind of XMI, that will at the end generate with a custom tool my Data Access Layer. Thanks Best Regards, --- Laurent Kempe - laurent.kempe@techheadbrothers.com Tech Head Brothers - http://www.TechHeadBrothers.com Blog - http://weblogs.asp.net/lkempe [Microsoft ASP.NET MVP] Ramesh, It was what I thought Best Regards, --- Laurent Kempe - laurent.kempe@techheadbrothers.com Tech Head Brothers - http://www.TechHeadBrothers.com Blog - ...Show All
Visual Basic How to?
Hello, I have just downloaded this new Visual Basic Beta thing, I have made a window containing some words, and was wondering how I could 1. Hide the window from the ctrl alt del list. 2. When i press the button it opens another window (a duplicate) 3. Be not able to close the window (remove the X) 4. And do anything else which would disable you from closing the box (disable Alt+F4 or something) This is my first program, it's just for fun to see if it would work CHeers Hi, 2) create a new instance of the window and call the show method: new MyForm().Show() 3) catch the closing event and cancel closing: e.cancel( ...Show All
SQL Server SQL CLR memory management
Hello, I have a few questions about the behavior of the CLR host within SQL Server 2005. We are using a UDT (call it MyDateTime) created in C# that represents the COM FILETIME type, in order to have single millisecond resolution. MyDateTime values are stored in the database as binary(8), with the UDT itself being used primarily for display and reporting purposes. I am running performance tests using a prototype (written in C# as well) that runs 20 threads which repeatedly call a stored procedure, which accepts two MyDateTime's, and queries a table based on those MyDateTime's binary string representation. After a certain amoun ...Show All
Visual Studio Team System Working in disconnected mode
Hi, Can one work with the Team Project in disconnected mode Let's say I'm in the middle of the work and need to resume it at home. How can I do that Regards, James. The "working offline" story in v1 is pretty minimal. Actually coding offline is easy -- just do it -- but there's nothing built into TFS to detect your changes when you return. It's worth trying our PowerToy tfpt online . ...Show All
.NET Development Problem when sending email by System.Net.Mail
Hi everybody, I'm learning C#. Just try to create a very simple app to send out email. However i encounter a problem //created a mail msg from given info MailMessage mailMsg = new MailMessage (from,to,subject,body); string server = "myMailServer" ; SmtpClient emailClient = new SmtpClient (server); // i encounter problem here emailClient.Send(mailMsg); The exception is: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Anybody knows why it failed even at the constructor I did surf thru MSDN Smtp ...Show All
Visual Studio Reportviewer doesn't print first time I click print button
I use a WindowsForm Reportviewer. C# 2.0 I generate the report and all is OK but when the user try to print (print button in toolbar), the application open the printdialog, I select the printer and press Ok. But the application doesn't generate a document. When I try again, all work fine. If I close the application and restart, occurs the same (first doesn't works, second works, all time works). somebody have any idea Thanks form Spain. Are you using the RTM version of the controls and of the 2.0 framework We saw iss ...Show All
.NET Development Get connection string from app.config file
How do i read my connection string from app.config file I also know that connection string is saved in settings.settings, but i don't know how to get value from there either (I found info about this only for vb, not for c#) Here is the app.config file: < xml version="1.0" encoding="utf-8" > <configuration> <configSections> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > <section n ...Show All
Windows Forms User Control with my event
I've created User Control with my event: public partial class ucHouse1 : UserControl { public delegate void MyEngineHandler(int NewIdHouse); public event MyEngineHandler IDHouseChanged; ... I run this event private void cmbHouses_SelectedIndexChanged(object sender, EventArgs e) { int var_ID_House = (int)this.cmbHouses.SelectedValue; if (IDHouseChanged != null) IDHouseChanged( var_ID_House); } On form where I've added my User Control I work with this event private void ucHouse_IDHouseChanged(int NewIdHouse) { this.MyDataSet.tblCustomer[0].ID_House = NewIdHouse; } All work very good. But when I ...Show All
.NET Development How can I call .NET 2.0 components from .NET 1.1?
Is this possible As a workaround, I tried to make a .NET 2.0 component COMVisible, and add it as COM reference from a VS2003 project, but doesn't works. Thanks, Ricardo Stuven. We had success with the following approach: http://dotnetjunkies.com/WebLog/saarc/comments/135635.aspx Parker Whittle ...Show All
Visual C# how to access axWebbrowser contents
i need to access the contents of the page that are viewd by axWebbrowser control.. as example i need to know the elemnts that in the page requsted like buttons...text...imags... or even just the x.y positions of each elemnt I take it you are using .Net 1.1 Add a reference to the MS Html Object Library Cast the document property as an HTMLDocumentClass. . .that should get you started. Refer to the SDK. Google " DHTML DOM C# " ...Show All
.NET Development special PID's
Hi, Does the system idle process always has the PID 0 and System has 4 is there any other special PID's Thanks alot, Hisham Yes, idle has PID 0 and system has PID 4 but they aren't really processes. The other processes have random PIDs. ...Show All
Visual C# Progress Bar
I have a progress bar whereby it should progress for every graph that is loaded.But upon executing the program, the progress bar will immediately hit 100 % even the graph had not been fully loaded. But my code is written such that the PerformStep is placed after the loading of graph. Please advice. Thanks for ( int i = 1; i <= load_graph; i++) { parent_form.flowLayoutPanel2.Controls.Add( new TrendChart (a , root_source)); parent_form.progressBar1.TabIndex = 0; parent_form.progressBar1.Maximum = 10000; parent_form.progressBar1.Minimum = 1; parent_form.progressBar1.Step = 2500; parent_form.progressBar1.Pe ...Show All
