meFox's Q&A profile
SQL Server Can not create new replication after changing server name
After i changed my computer's name(eg. the original computer name is 'SERVER-1' ,I has changed it to 'SERVER-2' ),I can not create a new replication in SQL Server 2005. The error message : ------------------------------------------------------------------------------ New Publication Wizard SQL Server is unable to connect to server 'SERVER-2' . SQL Server replication requires the actual server name to make a connection to the server. Connections through a server alias, IP address, or any other alternate name are not ...Show All
Windows Forms How to make top most, "unselectable" form
I want to make a main form that is always maximised,top most, transparent and... that cannot get focus! First three things were quite easy but I cannot force my form to ignore clicking - user cannot see the form only animation on it - but when he cliks somwhere sometimes clicking dont'work beacuse my form had the focus. How to make make my fo ...Show All
Windows Forms How to access PageSettings in User.Config
I am trying to make my app "remember" the last PageSettings and figured that the User.Config file is the proper place to store them. The file seems to be writing OK, but when I access the user setting it always returns "null". Strings stored in the same User.Config file can be accessed without a problem. What am I missing My code is: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Printing; using System.Text; using System.Configuration; using WindowsApplication10.Properties; using System.Windows.F ...Show All
Software Development for Windows Vista Workflow Activities for MSBuild Tasks and embedded designer for VS2005
I can't help but think that this is going to happen eventually. Has anyone gotten a whiff of this capability I can see a pallete of workflow activities that map to things that can happen in msbuild and then a graphical "make file" that is created in an embedded designer .... It certainly is possible. I've got a sample that does just that. If you (or anyone) come to my teched session - https://www.msteched.com/content/sessions.aspx (select my name from the speaker list) - I'll be showing it there - and it will probably get posted to my blog after the fact as well. ...Show All
Visual C# C# Equivalent of SqlDataReader.Item
I'm new to C#, moving over from VB... Is there an equivalent to VB's SqlDataReader.Item Here's what I'm trying to do: SqlCommand cmdSelectedRecord = new SqlCommand (SQLStmt,conn); SqlDataReader SelectedRecord = cmdSelectedRecord.ExecuteReader(); txtLastName.Text = SelectedRecord.Item("lname"); txtFirstName.Text = SelectedRecord.Item("fname"); SelectedRecord.Close(); Obviously I have defined my SQLStmt and conn as the connection. "lname" and "fname" are tables in the database that I am querying. The build error I get is: System.Data.SqlClient.SqlDataReader' does not contain a definition for 'Item'. Thanks, Jeff ...Show All
.NET Development Remoting Impersonation/Delegation problem
Hi, I am working on a n-tier app using remoting. I am using the VS 2005 beta 2. My server needs to access a remote resources on behalf on the connected user. I have configured my server like : <channel ref="tcp" secure="true" port="8081" impersonate="true"> and my client: <channel ref="tcp" port="0" secure="true" tokenImpersonationLevel="Delegation"> I start my server in the context of UserA on one machine and the client app on another using UserB. When I trace I can see ...Show All
Visual C# ForEach or For
I was wondering how can i cut this code down to maybe a function that could give me the average without setting the sum to be assigned to all those varibles is there a way i can loop through the values that are inputted to the console using System; class Addem { static void Main() { int sum = 0; Console.WriteLine("Enter 5 grades"); int num1 = int .Parse(Console.ReadLine()); int num2 = int .Parse(Console.ReadLine()); int num3 = int .Parse(Console.ReadLine()); int num4 = int .Parse(Console.ReadLine()); int num5 = int .Parse(Console.ReadLine()); sum = num1 + num2 + num3 + num4 + num5; Console.WriteL ...Show All
Visual Basic Pass any command line Argument?
Hello sir, How, can i pass any command line arguments (Through Run Command) pass when my VB application execute and that's values are receive when form activate. Kindly Help me Thanks. To pass command line arguments to another app, you should look into the Process class, which does pretty much anything there is to do with Windows processes. Simple example: Dim p As New Process p.StartInfo.FileName = "C:\WINDOWS\NOTEPAD.EXE" p.StartInfo.Arguments = "C:\AUTOEXEC.BAT" p.Start() p.WaitForExit() MsgBox( "You're done with Notepad..." ) On the other hand, to see which command line arguments have been passed to your app, ...Show All
SQL Server Start SSIS Package from VB
I am trying to use IS to import a large amount of data. Got 2 questions inregrads to this 1. Basically I would like to start the IS package from the front end VB application. How do I do that 2. I wrote a test package to get data from an Excel file and insert that into the database. Is there anyway I could send an object accross and have the IS import the object data into the database Or is there a better way of doing this I am quite new to IS. I really appreciate your help. Thanks.... Hi, No idea of 1), you can do 2) by passing a parameter when you run the package. You can use the parameter ...Show All
Smart Device Development Can I draw 3D objects by C# (cf 1.1)?
Hi everyone, I need to do a really simple and samll 3D universe in a pocket pc 2003 using c# in .net cf. I was searching on google for hours, but I couldn't find any related resouced about that, I have a reference book but all the drawing method are 2D, anyone can help me of that, really appreciate! Many thanks! Ray and I don't see I will develop other 3D app soon in ppc so I don't want to buy another pocketpc just for one program, and I also need cf 2.0 too..... ...Show All
Visual C# doubt???
hi, actually when the first question loads up, i mark an answer from the given four options. suppose i marked 'A' and then click the 'next' button. a new question comes up. till this its works fine.. but now if i mark my answer as 'B' ...it takes it as the older one i.e 'A' ...hence marks does not get incremented...i have even set the page to 'no cache' but nothin seems to work out.. i think he said: he's creating an application with different questions, every question with 4 answers. A question is accessed when Next button is clicked on the previous page. He answers to f ...Show All
Visual Basic disable pop-up
hello how i can disable pop-up window like "msgbox". i want that a window can not create "msgbox" thanks DMan1 wrote: nima_API, All messageboxes, dialog, and forms are controled by the programmer in .NET. If you do not want the user to be able to display a messagebox then you as the programmer should not create an instance of the mesagebox, dialog, or form. You really should listen to DMan1. This is common sense when it comes to your question.... ...Show All
Windows Forms READING VALUE FROM DATAGRIDVIEW
Can anyone Please help me how to read the value from the Datagridview txtSSN = //ssn is displayed at column 2 // Thanks ...Show All
Windows Forms where have all the other forums gone
hiya, I posted a question on the "controls" forum, I believe...It was related to xpCommon controls..Where have all the other forums gone there only appear to be 5 or 6 of them, before the forums were ported over to msdn, there were probably 15 can anyone shed any light cheers, yogi ...Show All
Visual Studio Express Editions Connect to the net...
Hi everyone! I'm making a web browser but everytime I run it (when offline) it asks me to connect to the net... Is there a way to stop this happening and make it ask to connect ONLY when a specific button is pressed Thanks in advance! Thanks mate! That seems to be the best solution... too bad I've already modified my code to create the webbrowser object after the button is pressed (to by-pass the 'Connect to...' box)... if only I tryed that first... Anyway... all's well in the end! ...Show All
