Jim Walkling's Q&A profile
Visual Studio Express Editions Database q's when running .exe app
In an attempt to ellicit a better response I have rephrased my topic. The problem remains the same. When I open the CKApp.exe file located in the /bin/debug folder it runs fine and appears to save my data to the database e.g. ckapp.mdf/tables/dailymeasrements. But when I re-run the app the data is not there. Here is the code I believe to be important. Dim MeasDV As DataView = CkAppDataSet2.DailyMeasurements.DefaultView Dim MeasRV As DataRowView MeasDV.Sort = "MonthDayYear" MeasRV = MeasDV(MeasDV.FindRows(measDate).Length - 1) MeasRV.BeginEdit() MeasRV("Temperature") = Double.Parse(Temperature.Text) more ad ...Show All
Software Development for Windows Vista Custom Activity - Errors Best Practice
After looking at some examples and browsing the forum I could not find much information on how to handle errors in side an execute method. For example, I go to retrieve something and it is not there. At this point the activity can not complete. What is the best practice at this point, throw an exception or just set the cancel status Thanks Returning a status of Cancelled will indicate the activity was not successfully completed; whereas returning a status of Closed will indicate the activity completed successfully. If you cancel, subsequent activities in the flow will be allowed to execute. If you throw, the workflow will termina ...Show All
Visual Studio Express Editions MainForm, Usercontrol and a Class...I’m a Newbie
Hello, I really don’t know how to make it. But let me axplain: I have a MainForm, a UserControl and a Class. In the MainForm I will create an Objekt from my Class. But then I’m not able to access this Object ! My Class will create a Connection to a DB ,makes SQL statementsand and can close the connection. I will use this Class everywhere but how will I do this I’ve learned Delphi before and there it was possibel to use an Object that was created in Form1 in Form2 by this code: form1.MyClass.Connect(path); How will I do something like this in c# Or will I have to Destroy my Object in MainForm and Create a new one in my U ...Show All
Windows Forms DataViewManager Row Count
What would be the method of finding the rows found by the "Rowfilter". Here is how I am specifying the filter: dvmProducts.DataViewSettings[dsProducts.Products].RowFilter = filter; What I would like to know is the number of rows. Any help will be great. Sorry i got it wrong, I was thinking the "dvmProducts" is a dataview. I suggest since you  ...Show All
Visual Studio Team System where are the databases after installation of TFS?
I follow the to install the TFS (sigle server) except that i got a latest version than the bate3. when i finished, i expexted to see some databases such as STS_Config_TFS/ STS_Content_TFS, etc in SQL Server 2005. But I found nothing. Would you mind telling me why Is is related to the version of TFS by the way, I tested the WSS and team project creatation, all is done. thanks for your answer! John thank bruce and allen, it seems that there are some problems about WSS, i have cahnged it now it done. thank you two very mcuh. ...Show All
Architecture Doing what Microsoft does, not what they say to do… DNA, SOA, Software Architecture, VB.NET, CMMI, Agile Development
Trying to weed through all the marketing driven releases from MS is not an easy task, but in the end it is something that always needs to be done. In this blog I discuss DNA, SOA, Software Architecture, VB.NET, CMMI, Agile Development - Doing what Microsoft does, not what they say to do… I would like to know if you are going through the same problems I gave up trying to weed through Microsoft's patterns and tools a long time ago. Bear in mind that MS is extremely popular in the novice and unproffessional developer community and this reflects on the patterns they provide. As for 'Doing what Microso ...Show All
Visual Basic (Public) Property Statement
I am using a number of (public) property statements (.NET 2003) to pass variables between classes. All are working fine except for the statements where I am passing 2D arrays. When I step through the code, the set is working fine, when I step into the get, the values are empty strings. Three classes are involved, a .dll is setting the values in an intermediary class and the .exe is getting the values. Any ideas Private blnSectionChanged As Boolean Public Property SectionChanged() As Boolean Get Return blnSectionChanged End Get Set ( ByVal Value As Bool ...Show All
Visual C# how to hook for windows messages..
i want that my app recive all the messages that windows is sending to other applications.. Anybody knowes how to do that You can use winProc to hook all messages. Each message corresponds to a number which corresponds to each event e.g. public enum WinMsg { WM_KEYDOWN = 256, WM_KEYUP = 257, WM_PAINT = 15, WM_CREATE = 1 ....... }; protected override void WndProc(ref System.Windows.Forms.Message m) { MessageBox.Show(m.Msg.ToString()); // each m.Msg has a number corresponding to event base.WndProc(ref m); } ...Show All
.NET Development could not find localhost when creating new project
Hi friends am new to .net and writing a small web service application.am using vs 2005 beta2. i created new project (asp.net web service) and new project dialog box i selected location as "http" and name of project name i entered as http://localhost/customer orders webservice and as soon as i click ok i get following message saying "Could not find a Web server '<localhost>'. Check to make sure that the Web server name is valid and your proxy settings are set correctly. If you are sure that everything is correct, the Web server may be temporarily out of service. " my question is how can i enable or start my "localhost" my pc runn ...Show All
Visual Studio can't find my srcsafe.ini
Newbie wanted to create a database here. I executed the following commands mkss d:\codes\vssdb I found no srcsafe.ini in the \vssdb folder, so I excuted this ddconv d:\codes\vssdb Still no srcsafe.ini. Actually, the documentation says "DDnConv" but since I don't have ddnconv, I just used ddConv. Anyways, still no srcsafe. Am I in the right track here Or should I just copy the default srcsafe.ini What's wrong here Thank you for the link Kevin, made my research over here in how to create a new database a breeze. Zodan ...Show All
SQL Server Need to create <Query> statement programmatically
I am creating a web application that uses a using a web service to get data for my reports. Since the webservice only accepts 1 parameter called "sql" (the sql select statement), I am using the report's query string to get the data. Here is the data source and dataset info I am using: DataSource Name: WebService Type: XML Connection string: http://localhost/myWeb/myWebService.asmx Credentials: No credentials DataSet Query tab: Name: WebService Data source: WebService Command type: Text Query String: <Query><SoapAction>......</SoapAction></Query> Here is a sample of the < ...Show All
Visual Studio Team System Team Build and ClickOnce
How can I deploy an app via ClickOnce using Team Build I read somewhere about replacing SolutionToBuild with SolutionToPublish, but that doesn't seem to do anything special. I'm using the RC. Thanks Though we do not have an out of box way to do that we can do it with a simple work around. We can overload the target AfterCompile in TFSBuild.Proj to call MSBuild Task Publish and can pass the PublishDir property as desired. Here is an example of what I tried < Target Name = " AfterCompile " > < MSBuild Condition = " '@(SolutionToBuild)'!='' " Projects = " @(SolutionToBuild) &quo ...Show All
Visual Studio CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
I am trying to access a Crystal Report through an ASP.NET page. The access works just fine until the page is refreshed. Then I receive the following error: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed. I have tried the push and pull methods. I have read other posts that people getting this same error had success with datasets. I get the same error. I have checked permissions in SQL, IIS, and on the directory where the reports are. I'm sure this KB article applies to my problem: http://support.microsoft.com/default.aspx scid=kb;en-us;319264 but I could not get the resolution listed to wor ...Show All
Visual Studio Team System S Rule to check String.Empty is used instead of ""
hi, i want to create a custom rule for FxCop that should check is String.Empty is used instead of "". Please give some idea for this and any code snippet will be more helpful. Thanks See my reply to this question in the following post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=439674&SiteID=1 ...Show All
Visual Studio Express Editions wildcards
I need to add functionality to my form in this program that for some fields allows negative numbers, some just numbers, some three positive numbers separted by commas, and some just text. Also, I prefill with a text file so I need the error check for this also... Thanks! Newbiana Huh Dim mystring As String mystring = "This is a test" MsgBox (Len(mystring)) The above doesn't work Best of luck to you. Adamus ...Show All
