riverofsouls's Q&A profile
.NET Development Hot to log each method being executed?
Hello, I Would like to attach to a thread and log each method i being executed. I'm guessing i should listen to the CLR activities to do so. I have access to the pdb files if needed. how can i do so Thanks, Eran. Hi, There are profilers for .NET out there which perform the action you need. The ones I know of are SpeedTrace, and in CompuWare's DevPartner they have a product that does it too. If you want a simple/free one - that's what I'm trying to create... I remember there is some example in MSDN magazine that includes a working tracing profiler, and also one is supposed to be included in the Visual Studio 2005 SDK. You can also try looking at the CLR Profiler examples in MSDN magazine, such as http ...Show All
Visual Studio Express Editions slideshow
how can I alter this code so it displays a different image every minute.....like slideshow thanks PictureBox1.Image = Image.FromFile _ (System.Environment.GetFolderPath _ (System.Environment.SpecialFolder.Personal) _ & "\Shell2.jpg" ) Cheyenne be sure to use the normal timer_tick signature for the event rather than this modified one Private Sub Timer1_Tick() Dim path As String = "f:\friends" Dim DI As New System.IO.DirectoryInfo(path) Dim fi() As System.IO.FileInfo = DI.GetFiles() &nbs ...Show All
Visual Basic VB2k5: Instantiate a textbox and assigning a text property
Hi, I tried instantiating a textbox with: Dim txt1 as new textbox However, though no error is encountered when I assign it a value, when I pass it to the database, all the fields are null. My insert method is working fine (coz i see rows with null values that are added in my tables), only, it cannot get the exact value of my instantiated textbox. I know i'm missing something.... hmmm probably i still need the property let/get... just guessing... Can someone help out cherrie As best I can tell (unless you're doing it in a FormLoad that isn't shown), the TextBoxes are never added to the form. I believe that without a parent form the databinding event chain is not triggered. Try adding ...Show All
Visual Basic Software Publish Question
Alright, I have a program that I'm working on and i have noticed that whenever I run the Publish in the Programs Properties, that it makes a .exe . Now whenever I run the .exe , I noticed that it puts it under Start - All Programs but I don't see it anywhere in the C:\Program Files\ . Why is that Also, I have a .mdf in the application. Will it create the .mdf upon install for me or do i have to encode that into the program ClickOnce is designed to be very light weight and non-intrusive to the machine. That's why it installs per user (don't need to be an admin to install). If you want to be more specific about where you install to then you're going to have to use MSI or an MSI like technology. Gi ...Show All
Windows Forms Bind data to a combobox
I have a table from database which I retrieve two columns to bind to a combox.One with a id and the other 'name' column. I have only display the name to the combox box and how do I retrieve the respective id from the selected index Thanks. Regards Alu ...Show All
Visual Basic Creating a Text Box In a Class
Ok so, so i have a class. Public Class ChatTab : Inherits TabPage If i wanted to create a new text box on it How would i do it Public Class ChatTab Inherits TabPage Private WithEvents txtbx as New TextBox Public Sub New() With txtbx .Location=... .Name=... 'Set other properties here End WIth Me.Controls.Add(txtbx) End Sub end Class ...Show All
SQL Server What are the differences between MS SQL Server 2005 & Oracle 9i ?
Hi guyz, I have basic knowledge of Sql Server 2005 and now i wanna move ahead in Oracle 9i ! So, i have 2 questions here - a)Whats the Difference between Sql Server 2005 and Oracle 9 i Note: Please keep the discussion general so that student like me can understand. I have never seen Oracle but the industry requirements suggest that Oracle is way better than than SQL Server 2005. But thats what i think b)I am Running Windows XP SP 2 and i would like to practise Oracle 9i. So, Where i can download it for free I know i have checked there website but they don't mention the difference between each version. Oracle does't market their products as well as Microsoft. Please , I am Student .. so i request you to make the discussion general . Thank ...Show All
.NET Development COM Interop / Compile COM object without re-compile of .Net app
Hi Forum I use existing com objects in several of my applications. The problem is that sometimes something needs to be fixed or changed in the COM components. Everytime I have to recompile the .Net apps also. I don't see much point in this as long as the interface in the COM object has not changed. Is there any way to get around this Hi Liviu I get an error. I don't have the exact one here. But it is an error with com interop. I can compile the application locally and just replace the com interop dll for the specific component. Then it works again. Does it look at version numbers of the Com object or what is it ...Show All
SQL Server Sql 2005 Express + Replication
Hi, does any know of any plans to support publications in Sql 2005 Express I want to start moving away from MSDE but we use replication (one MSDE database is the publisher and several client PC's use MSDE as the subscribers.). Maybe it is on SP2 Thanks for any info you have on this. Graham Hi Mike, thanks for the reponse. I tried sending you an email to your profile email address (online.microsoft.com) but it was returned as undelivered. Should I modify the domain name for the email to work Graham ...Show All
Visual C# design question related to using Collection of Custom entities
If I have an Account class. The class can have several Memo objects. I implemted a Memo class that I bind to my fMemo form. I use Memo class in order to create and diplay a single Memo of the account. But, I will also need to display a grid with all memos of the account. My 2 questions pls: 1/ Is it wise to display the grid of all memos of the account using Collection of my Memo Custom Entity class or is it wiser just to use a Dataset or sqlDatareader instead. 2/ Was the idea of using the Memo Custom entity class a good one or do you think that doesn t have bug value and just complicates the programming process and makes it take longer time. Thanks a lot. To be honest it's a religious war. Some people will tell you to ...Show All
SQL Server partition switch and non unique index
I have a table partitioned by month. There are no primary key. There is another table with the same structure that I use to load data for the current month. I can perform partition switch with no problem. I created non unique index on integer field in both tables. After this change partition switch does not work anymore. Here is an error that I am getting: 'ALTER TABLE SWITCH' statement failed. The table 'dbo.test' is partitioned while index 'IX_test' is not partitioned." Any help You have to specify the partition columns with the scheme. Use the same syntax that you used to create the partitioned table. See BOL for samples on how to create aligned indexes and/or use pa ...Show All
.NET Development DateTime.TryParse generates an Exception
Hi, few days ago I had to reinstall my machine but, after it, I started to have problems with the DateTime.TryParse method: it throws an exception of type IndexOutOfRangeException.. This simple example: private void TestParseDate( string strDate) { DateTime date ; bool b = DateTime .TryParse(strDate, out date); // here the Exception is throwed } generates: System.IndexOutOfRangeException was unhandled by user code Message="Index was outside the bounds of the array." Source="mscorlib" StackTrace: at System.Globalization.DateTimeFormatInfo.InsertHash(TokenHashValue[] hashTable, String str, TokenType tokenType, Int32 tokenValue) at System.Globalization.DateTimeFormatInfo.CreateTokenHashTable() ...Show All
SharePoint Products and Technologies Copy page to another page library
Hi i have created a page with some webparts. Now i want to use this same page as basic for other pages so i want to use this page as a sort of template. I tried copy & paste from sharepoint designer. The page is copied but the webpart is not. I also tried using the explorer view in Sharepoint but that also did not do the job ( i can't copy to the same pages library) tnx for any help You can copy pages using the "Content and Structure" tool, but not to the same pages list. Go to SiteActions -> Site Settings -> Manage Content and Structure. Navigate to the pages list. Copy the page to a different pages list. Rename the original page. Move the copied page back to the original pages list. The context menu sh ...Show All
SQL Server Managing multiple SQL Server databases
Hi, I have to manage many SQL Server databases on several servers. How can I manage the jobs, backups and the space on the disc without going to each and every server and database and job Is there any script to run this It will be very helpful if you can provide me the sample script or point me to any web site where I can get the info/script for this. Thanks in advance... For Multiserver administration u need to create Master server Target Server Enlist Traget server ................ See http://msdn2.microsoft.com/en-us/library/ms191305.aspx I hope this helps ...Show All
Windows Live Developer Forums Switch from Live ID to .NET Passport
Is it possible to switch it from Live ID back to .NET passport I was in the Windows Live Account Service page, I try to change my email to another one, but I only given one choice, which is to create a new Hotmail account. I remember last time, when I login to .NET Passport credential page, it do let me change the email to whatever email I want (not limited to Hotmail). Is this possible Peter Chan Me too in the feedback option, but I would like to have specific forum for Live (not dev forums), or something like that to check if it is in their plans or something, I feel like sending feedback to none ...Show All
