Software Development Network Logo
  • Smart Devicet
  • Microsoft ISV
  • Visual Studio
  • SharePoint Products
  • SQL Server
  • Visual FoxPro
  • Windows Forms
  • Windows Vista
  • Audio and Video
  • .NET Development
  • VS Team System
  • Game Technologies
  • Visual C#
  • Visual Basic
  • Visual C++

Software Development Network >> Dr. Pastor.'s Q&A profile

Dr. Pastor.

Member List

steve1976
luckymaheshwari
Kevin8264
dams
Derek Burnham
QWERTYtech
Corby111
Peejj
JoeWood
Personal Information Withheld
orent
KAllbritain
MovieFan
DebianDummy
Jehan Badshah
Stephen_Sbh
Sideout
dgolds
ScottRitter
Robert Shurbet
Only Title

Dr. Pastor.'s Q&A profile

  • Visual Studio 2008 (Pre-release) Very slow grouping - by design?

    Hello! I have a problem with grouping in " ObservableCollection -> CollectionViewSource -> ListView " scenario. In a couple of words: Changes in grouping and is too slow! Moreover, scrolling in the grouped ListView is very slow as well. Here's an example (based on CollectionViewSource SDK sample - July CTP ): FILE: Data.cs - just a collection (of 1000 items) of some domain specific objects (hotels in this case) using System.Windows; using System.Collections.ObjectModel; namespace SDKSample { public class Hotel { private string name; private string city; private string rating; public string Name { get { return name; } ...Show All

  • Visual C# C# Threads

    Hi, I have a problem with thread and i'm hoping someone can help me. I start a thread with the following code... Thread m_NewThread = new Thread(new ThreadStart(DoWork)); m_NewThread.Start(); The threaad starts find and executes the code within DoWork, for example: private void DoWork() { ... //Finished work so show thread finished ThreadFinished(); } Again it executes the code within ThreadFinished, for example: private void ThreadFinished() { .... //Thread has finished so show finish form and close frmFinished f = new frmFinished(); f.Show(); this.Close(); } Now this is where it goes wrong. Stepping through this code it show's the finished form as you can see it in the taskbar b ...Show All

  • Visual Studio Tools for Office Importing Text File into Datagrid View

    Hi everyone, I want to import the details from Text File. The Text File Contains Name,Idno Raja,101 Siva,102 I want to set Name,Idno in the Column Headings and the below details are intserting the rows. Previously I used some Steps They are In Datagrid View Task ---> Add Project Datasource Select Database Click New Connection Click Change to select Datasource Type Select Microsoft ODBC Datasource Select use Connection String and Build Create a New File DSN for Text Driver and Next Save the connection Select Table in Database Objects But when I Click Finish that time <`C:\`..`Nandhu.txt`> Could not get column information for database object named '`C:\`.. ...Show All

  • Visual Studio Express Editions Referencing instances?

    I've made a few instances of a panel, and I want to make them invisible when I click a certain button. Is there a way to references instances of objects you have made Here's an example of programatically creating some panels on a form and then turning there visibility on and off. To add them to a form, you need to add them to the forms controls collection and then you can simply refer to the by name using something like the following to reference the control Dim x as panel = Me.Controls("Panel1") Example Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Programatically Add some Panels Di ...Show All

  • SQL Server Alter Column datatype in SMO

    I m trying to alter some columns' datatype in the existing database. it seems in SMO, some datatype like Text, throw exceptions "Cos it's Text". so how do I code it in SMO for this problem I read there are some TSQL solutions to create a temp table for this. but can SMO has a way to impletment it best regards the problem I have is to alter Text Field to NText. the exception is alter column x failed cos it's Text field. all other datatypes seem straightforward. if you have SMO solutions for this issue, I will be really appreciated. thanks for the reply ...Show All

  • Visual Studio Team System How to pass value of a context parameter to a web/load test via VS command prompt

    Hi, I've a web test that has a context parameter (say pageurl). I am able to set a value in the VS and run from both VS and cmd prmt. How ever if I want to run the same webtest for a different value, is it possible for me to set the value @ cmd prmt and run the webtest (I'll not set the value of CP in the VS). This way, I can make my webtest more generic. if this particular webtest is passed as a value for a load test, will it be able to actually hit the page URL I've set via cmd prmt Thanks in advance. Yes, setting an environment variable on your local machine will no affect tests running from a controller. In that case, you'd need to set the environment variable on each agent machine, but that's really a difficult solut ...Show All

  • Visual C++ new to programming

    hey i'm new to progreamming, in doing some windows apps it is better to use c# or c++ (i have little knowlege of C) i like c# productivity, but C++ power (speed). what u recomand Terrax wrote: to use c# or c++ (i have little knowlege of C) i like c# productivity, but C++ power (speed). There will be no significant speed difference between applications created using C++/CLI or C#. As for power, it means different things to different people. To me power means the ability to do the things I want to do. In the context of a managed application that ability is about the same. One additional thing you get with C++ is the ability to create unmanaged applications, but the occasion for an unmanaged application comes very rarely ...Show All

  • Audio and Video Development Adding monitored folder in wmp

    Hi, Hw to add monitored folder to Windows media player using IWMPFolderMonitorServices in C#. Pls help Thanx Nebu Here's the right newsgroup for your question: http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx dg=microsoft.public.windowsmedia.player&lang=en&cr=US ...Show All

  • Visual Studio Express Editions Activation software

    Hi All Again, right here goes, when publishing my app would like to incoporate activation but no just by serial I would like to confirm this with email aswell, obviously I know ya gonna shout and say Use sql, Is it possible u can upload Access File (mdb) and use this method or will it have to be done in sql, sample code will be very gratefull. thanks stuart You may want to look into using the Shareware Starter Kit which provides just that sort of functionality as well as much much more. ...Show All

  • .NET Development Memory management for unsafe code

    Hi, It is known that Garbage collector does the memory management for managed code. i have a code that reads 1 billion rows of an event file (.evt). I m parsing each record of the evt file one by one using UNSAFE code. Due to a large no. of rows, my application used to crash, so i used GC .Collect(); & called it after some specific no. of rows have been read. My problem was resolved My question is who does the memory management for unsafe code Is it the garbage collector which i m calling. I m saying this because my memory mgmt problem was resolved after i added the GC.Collect statement.   For unmanaged code every call to new (or malloc if using C parlance) must have a corresponding de ...Show All

  • .NET Development How to format strings?

    In C, I can format a string as follows: char str[100]; sprintf(str,"Hello %s, I am %d years old...\n","there",5); If how can I do the equivalent operation in C# String str; // This seems simple, but I hope you can get me going. Thanks, Miguel Hello All. Miguel: Like this: string str; str = String .Format( "Hello {0}, I am {1} years old" , "there" , 5); Take a look at this article on .NET composite formatting. HTH. ...Show All

  • Visual Basic visual studio 2005 vb.net lesson concatenation

    Greetings, I get the following error message for the lesson on concatenation: Error 1 '>' expected. Here is the code: I think I typed it exactly as it is in the lesson: Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim aString As String = "Concatenating" Dim bString As String = "Without" Dim cString As String = "With" Dim dString As String = "Spaces" ' Displays "Concatenating Without Spaces". MsgBox(aString & bString & dString) <br /><span space= "preserve" >...</span<br /> ' ...Show All

  • Windows Forms ListView Tooltip Always Visibile

    I've got a listview control that is showing a tool tip for it's items using the following code: ListViewItem previousIt = null; //Keeps track of the most recent item under the cursor private void lvPeople_MouseMove(object sender, MouseEventArgs e) { ListViewItem it = lvPeople.GetItemAt(0, e.Location.Y); if (it != null) { toolTip1.Active = true; if (it != previousIt) { toolTip1.ToolTipTitle = "Contact: " + ((ContactInstanceData)it.Tag).Contact; toolTip1.SetToolTip(lvPeople, it.ToolTipText); } } else toolTip1.Active = false; } The problem I'm having is as I move the cursor across an item, the tooltip remains visible and moves w/ the cursor despite the tooltip's delay settings. If I move the cursor onl ...Show All

  • SQL Server What system stored procedures have changed between SQL 2000 and SQL 2005?

    What system stored procedures have changed between SQL 2000 and SQL 2005 I don’t know such paper either, I think the main internals was, that they changed the access to the system tables, as they are now put into schemas, rather than just owners. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All

  • Windows Forms Convert SQLDMO._Table to System.Data.Datatable

    Hello there, does anyone know how to sipmle convert SQLDMO's table to an System.Data.Datatable THX for any help... ...Show All

©2008 Software Development Network