ChrisEck's Q&A profile
Windows Forms Trying to Display Boolean as Graphic
Excuse my 'newness' . I am trying to display a on a bound datagrid a boolean value as a graphic. (A red or green button) is there an easy way to do this I have my column as a template and I have been messing around with binding the data to the graphic. I can't figure out the red.gif if false or green.gif if true part. Any ...Show All
SQL Server How to copy SQL server logins from one server to another
Hi all... I am in a process of copying all databases from a server to another. Both are running SQL Server 2000. First of all, I tell you that I could not use "Copy Database Wizard" option because of a lot of problems with it. By using DTS didn't work either. Finally, the only solution was to backup the database first and then to restore it back to the new server. In such a case only database logins are restored, but not associated SQL server logins. Is there a way to copy all SQL Server logins and link them to databases logins already created without the need of using sp_change_users_login procedure for each one Thanks ...Show All
Visual Basic Formatting numbers in a textbox or label in VB2005
Hi, I was wondering if someone could tell me how to format the input text in a textbox or a label, for instance, if the text is numeric, then how can I define how many decimal places it must show If the display text is 0.3 and I want it to be displayed as 0.30, how would I go about Any help would be dearly appreciated. Thank and regards, Arun To validate if the TextBox.Text is numeric, use, IsNumeric() function, and to get the length of the text, use TextBox.Text.Length ... Hope this helps :) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectSound Audio Capture
Hi eveyone, I am gathering some information before developing a telephony program and need some help going on a specific problem. Is it possible to record audio from the microphone and audio being played through the speakers and save it to a file I have seen plenty of samples where the mic audio is captured and saved but there is no obvious way of saying where the audio should be captured from. Basically i need to record both directions of a voice call that is going via the sound card. I have setup a test graph using 'GraphEdit' and run it while by app is sending audio from the mic and playing audio from the other end of th ...Show All
Windows Forms Enabling IIS compression breaks NTD deployment
For the last couple of months, I have been scouring the internet for reasons why my NTD application would not deply from my Windows 2003 server, but works fine from a Windows 2000 server. I had tried all of the suggestions I found in various forums without any change. Then last week (4/19/2004) n message appeared in dotnetjunkies.com forum on&n ...Show All
Visual C# Identity Expected error?
Hi, I am new to .NET development and received the error Identity Expected today while doing some work. I don't know what would have caused this error can you help Thanks, Can you give a little more detail on when this happened E.g., was this a build error (and if so, paste the whole error if possible), or a runtime error The more details you provide the better. Thanks, Josh Lindenmuth ...Show All
Windows Forms Can't apply a DataGridTableStyle to a Datagrid
Hello, I've this code: Private Sub BuildDgStyle() Dim dgStyle As New DataGridTableStyle dgStyle.MappingName = Me.Tabella Dim colCodice As New DataGridTextBoxColumn colCodice.HeaderText = Me.HeaderCodice colCodice.MappingName = Me.CampoCodice If M ...Show All
SQL Server Install fails on SQL2k5 because no IIS on Server
We have a new cluster that we are trying to install SQL 2k5 enterprise on and the security requirements will not allow us to install IIS on the same server as SQL. Is there a way around the requirement of having IIS installed on the server with SQL 2k5 It's not a requirement, unless you need RS on the cluster. You'll get a warning early on, but Setup will proceed if IIS is missing. ...Show All
.NET Development Q: Executing a method in another thread
Hello, I know that this has been discussed before, but the answers I have found were "you don't want to do this" rather than "how to do this", or specific to the main thread. I am in Thread A. I have want to call function (or delegate) F in the context of Thread B. When thread B is the main UI thread, I have a dispatcher that can invoke the function. However, I'd like a more general mechanism of telling .NET "execute F in the context of thread B". Thanx Threads have a single call stack. Therefore you can't simply execute arbitrary code in a thread without totally trashing the call stack. Therefore ...Show All
Windows Forms Custom Control
Hi, I am looking for some sample code for creating a custom control that is moveable/selectable at runtime. I am looking for something simmilar to how a control would function at design time. I have read some articles about hooking into the designer support but that seems to be no help. I am new to custom control development so please bear with me. ...Show All
Visual C# Why couldn't find ConfigurationManager?
Hi there, In VS 2003 Windows applicaton, I used configuratuion/AppSetting to get configuration parameters. This method is depreciated in VS 2005 and we are recommended to use ConfigurationManager. But VS 2005 intellisense could find it. I already include the System.Configuration namespace. But seems like it is not in the namespace. Do you have any experience and what do I need to do to use ConfigurationManager thanks, Kai This one had me beat as well. configurationmanager is in a new dll, you need to add a reference to it before you can see it. I'm not sure what the .NET library you need to ref ...Show All
Windows Forms binding two BindingSources
I have two user controls. Each control has internaly a BindingSource. I want that these two controls will be syncronized - will share the same data source and position. How can i do that Thanks Asaf Unfortunately we do not have that feature and you will have to write code to synchronize the BindingSource positions. I agree this would be a good feature to have. Please log this as a suggestion here: http://lab.msdn.microsoft.com/ProductFeedback/viewFeedback.aspx feedbackid=769432e5-2c72-4541-ad9f-b31dac37fc17 Thanks, Joe Stegman The Windows Forms Team Microsoft Corp. This posting is provided "A ...Show All
Software Development for Windows Vista Events exposed through Activity class
Hi, I was wondering if it's possible to wire up with event exposed on Activity class (more specifically EventDriveActivity class) obtained through tracking instance on a host </snippet> Code in a Runtime Host Activity currentActivity = memoryTrackingInstance.CurrentState.GetActivityByName("ActionName", true ); if (currentActivity is EventDrivenActivity ) { EventDrivenActivity evtActivity = ( EventDrivenActivity )currentActivity; evtActivity.Closed += delegate ( object sender, ActivityExecutionStatusChangedEventArgs args) { // do something }; } </snippet> Prob ...Show All
SQL Server Loading Fact Table
Hi I have delta loaded all the dimension tables now and each dimension table is related to fact table through a surrogate key, How do i further load a fact table. Please tell me I am stuck up here.. :( . If any one has an example to refer please do tell me Not quite sure what you are asking How to load you fact table and use the new surrigate key values perhaps. Try the Lookup or Merge Join components. ...Show All
Windows Forms Threading
Im working now with a chat application using Windows application in VB.Net. If i keep a*space space*point at the start of the thread, m getting my code executed hassle free. If i dont, m getting an error in a message box stating "Object reference not set to an instance of an object". Can anyone help me out Advanced Thanks It sounds ...Show All
