Katarina C.'s Q&A profile
Visual Studio Express Editions Focus
How do I remove focus from a textbox programmaticly please you can't really. you would have to focus on another control in order to remove focus from the current focused control try: Me.Focus() and see if that will focus away from the textbox ...Show All
Windows Forms Cannot get changes from DataGridView
I am having problems getting the changes from a datagridview. The grid is bound to a dataset. Here are the steps I'm taking: 1. Type text into the first cell 2. Click the save button on the form, which calls: Private Sub SaveChanges() Dim dsChanges As DataSet = dsFlightInfo.GetChanges() ' make sure their are changes to commit. If dsChanges IsNot Nothing Then ' save changes to the database Dim odb As New ABMS.Data.DataSetIO odb.Update(dsChanges, "FlightSchedDetail") odb = Nothing End If dsFlightInfo.AcceptChanges() ' reset the save buttons btnSave.Enabled = False btnCancel.Enabled = False End Sub PROBLEM: dsC ...Show All
SQL Server The SQL Server service failed to start
I have mentioned this problem before but it has not been resolved. I am installing MS SQL Server Express Advanced i.e. using SQLEXPR_ADV.EXE. During the initial checks, i get a warning about hardware requirements and I have read the posts about the install failing if the CPU does not support prefetching but I am running a P4 3.0GHz (twin core) CPU with 512MB RAM on Windows XP Pro SP2. The installation fails at SQL Server Database Services during "Configuring Microsoft SQL Server": "Starting SQL Service: MSSQL$SQLEXPRESS" If I click the Retry button, the system goes away and then comes back with the same message. If I click cancel, various roll-back actions are performed and the install fails Is this the d ...Show All
SQL Server Redirect Rows Move good and bad recs to bad table.
I use a redirect row method for error of OLE DB Destination For sqlServer2005. For some resone even though only 1 record has error and should be redirect, all the record in the current batch (I think depending on the "maximum insert commit size") are redirect. the only way for me to get the exact bad record is to set the above parameter to 1, but then it takes hours to run the package. also I always get the same error in the errorCode column - " -1071607685" why For intra-source duplicate removal, use the sort transform, or write a streaming distinct that will only let through keys the transform hasn't seen before. For inter-source duplicates, use a lookup. There are i ...Show All
Visual FoxPro FontCharSet error in Windows 98
Hello Can you help me in this With windows 98 I have error 2005 (You have attempted to set a property to an illegal value through the language) in fontcharset when loading form. Form contain objects with different fontcharsets. In other operating systems w2000 or XP I have no problem. Visual FoxPro 9.0. Thank you. >>Form contain objects with different fontcharsets. >> In other operating systems w2000 or XP I have no problem. Sounds like a required font may not be installed on the Win 98 machines - if you are referencing a font that only shipped with Win2K or later this would explain the problem. But without knowing which fonts you are trying to use, or which one is causing the error, ...Show All
Smart Device Development EnableApplicationLauncher() catches state change only once
Hello to everybody! While developing an C# application on Windows Mobile 5.0 , I came across the State and Notification Broker . It is really a nice thing, but as it seems, it is not very well documentet, especially when it comes to the managed code in Microsoft.WindowsMobile.Status . I want my appliction to be launched when for example the property PhoneNoService changes. I am unsing this code to do this: if (!SystemState.IsApplicationLauncherEnabled(id)) { SystemState phoneNoService = new SystemState(SystemProperty.PhoneNoService); phoneNoService.EnableApplicationLauncher(id); } Now, when PhoneNoService changes, my application is launched as wanted. But only this time. After closing the application, it doesn’t start again, if Ph ...Show All
.NET Development Call a public method from other aspx page's code behind
hello, I have the following two aspx page and two correspond cs file. I have a property in default1.aspx.cs named 'Fun' and I tried to get and set this function from default2.aspx.cs. But it gives error that 'Fun' does not exist. do i have any mistake please help. default1.aspx.cs ------------- namespace util { public partial class _Default : System.Web.UI.Page { public string fun = string.Empty; public string Fun { get { return fun; } set { fun = value; } } protected void Page_Load(object sender, EventArgs e) { } } } defult2.aspx.cs --------------- namespace util { public partial class Default2 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } ...Show All
Visual C++ Creating and deploying a Hello World console application
I recently installed Visual C++ Express Edition on my computer and wrote a simple Hello World program: #include <stdio.h> #include <stdlib.h> int main(int argc, char* argv[]) { char c; printf("hello world\n"); c=getchar(); return 0; } The .exe file is huge (it is 5K) and it won't run on my other Windows box that does not have VC++ EE installed on it. Does anybody know if there is a way to create a simple Hello World .exe that can run on any Windows machine Thank you. See this thread ...Show All
Architecture 2-Tier Problems Accessing Remote Data
I have a 2-tier architecture question. What are the problems associated with accessing data remotely in a situation where a client application is directly accessing a SQL Server database over the internet There are obviously security issues related to preventing unwanted access to the database, but what about performance issues Are there connection reliability issues, network limitations, etc., related to the effectiveness of a direct remote connection to SQL Server An alternative architecture we are considering is a 3-tier model with a middle-tier application server (web service). Thanks. This can get a long answer when you want al the tradeoffs, pros and cons between the two types of archite ...Show All
Visual Basic Some question on Clickonce autoupdate
I moved from Express to Team Suite. With some apps in Express, I use ClickOnce and its autoupdate. This works great. Now that I have Team, I'd like to use the Setup Project instead of ClickOnce. How do I use autoupdate from the Setup Project since there's no publish folder like in ClickOnce The regular Setup Project that is supported by Visual Studio 2005 does not support auto-updating the way ClickOnce does and if auto-updating is something you need you should consider sticking with ClickOnce or looking into a slightly higher end package such as InstallShield who'd be happy to charge you a good chunk of change for such functionality. ...Show All
Visual Studio 2008 (Pre-release) Sharing Parameter Types among WCF Services
Hello, I'm building a distributed application composed of several WCF Services and a front-end web application. Each of the different services (Service1, Service2, Service3, ...) expose a set of methods that pass custom classes as parameters: Order, Client, ... The web application thus calls the exposed methods using the svcutil generated proxy classes. In some cases, I would like to use objects returned from 1 service as parameters used in another service: Client c = Service1.GetClient(); Order o = Service2.CreateNewOrder(c); Although the class types (Client, Order,...) used in my services are the same, svcutil generates different proxy classes in different namespaces, for each service: Service1.Client is not the same ...Show All
.NET Development Is it madness to intercept serialized XML in a client proxy?
I have a question that hopefully someone in the forum will be able to answer: I have a web method that returns an entity (lets say an Address entity for example) The address entity has the following properties: Address1 Address2 Address3 Address4 Address5 Postcode (AKA Zip) My client consumes the service, calls the web method via the client proxy and makes use of the returned Address object. I have 2 consumers of this service. The first, as mentioned above makes use of the Address entity. The second however will make some modifications to the object, and then pass the object on to another service. My question is this: Is it possible to receive / intercept the xml of the serialized Address object (perhaps via the use of a ...Show All
Visual Basic Problems with the TableAdapter
Hi, I am obviously missing something, but am trying to user the TableAdapter.Insert function. It appears to work fine while you are still in the application, records are added, and are visable via other queries and datasets etc, so they are getting put somewhere, but not in the underlying Access (.MDB) database. I have tried various code snippets to add the records, including the following: Me.Data_quotes_linesTableAdapter.Insert(tbx_quid.text, cbx_partcode.selectedvalue) and Dim newQuoteRow as data_quotes_lines.data_quote_linesRow newQuoteRow = Me.Data_quote_lines.data_quotes_lines.Newdata_quotes_linesRow() newQuoteRow.Quote_UID = tbx_quid.Text newQuoteRow.PartCode = cbx_partcode.selectedValue Me.Data_quote_line ...Show All
SQL Server MeasureGroups at different granularity in the UDM
We have run into an issue with Report Builder and was wondering if anyone else has experienced this problem. We have two different measure groups. The first group is transactional at the daily grain and the other is an accounting balance table at the month grain. The measures in the second group are semi-additive. Everything against the cube is working fine. However, when a report model is generated against the cube, queries cannot be built between the semi-additive measures and the date dimension. The transactional table is fine. Has anyone else seen this behavior I should also note that the month key is the same key as the last day in the month for business reasons. Month account balances should be converted to foreign currencies on the ...Show All
Windows Live Developer Forums MSN Messenger Web Presence
Hello, I need to build a web site where I can check wich MSN Messenger user are connected. I would like to know if you plan to add (in a short time frame) a Web Presence solution to Messenger like the AIM presence. I would like also to know if it's possible to develope this functionality using your new API. Best Regards, Cristiano There's is a way of checking a user's status on a web page called Online Status Indicator . But in my experience it hasn't been very dependable. ...Show All
