Orcabelle's Q&A profile
Visual Basic How do I add objects from a webservice to the data sources window of the IDE?
Hello, I am using the new CTP of team suite. I am trying to add in datasets, from a webservice, into the data sources window. Does this work The message states that "The following Web Reference will be added and all of the objects it returns will be available in the Data sources Window:" Is there something that needs to be done differently in the webservice I jut created a default web service and added a simple public function that returns a dataset(it's a typed dataset) but I cannot get it to show up in the data sources window. If I goto the behind code of the app I can reference it manually but was wondering if a webservice publi ...Show All
Visual Basic Unhandled exception of type System.InvalidCastException ... in VB.Net
Hi, I have a VB.Net 2003 application that I've written and recently I've started to received the error message "Unhandled exception to type 'System.InvalidCaseException' occured in System.Windows.forms.dll. Additional info: QueryInterface for Interface IConnectionPoint failed." What does this mean How can I code for it to trap it and potentially determine where the problem is Is there a code snippet that I can refer to and where to place the code Any and all guidance will be greatly appreciated! TIA Do you get a call stack This will help you determine where to exception occurs. If ...Show All
Visual FoxPro Create a Directory
How can i create a directory when the app begins but validating if the directory exists avoiding an error code thanks a lot! Hi Eric, found it. MD fails to create a directory of more than one level, when the parent directory is either hidden or a system directory: Md (Addbs(GetEnv("APPDATA"))+Sys(2015)+"\"+Sys(2015)) Creating the directory one level at a time works, though. ...Show All
Visual Studio Express Editions how to unisntall visual c++
i was wandering if anyone new how to uninstall this program as i ont need it and is affecting my computer plz could u reply bck soon or reply on my email at:asaadalhadad@hotmail.com The link at http://msdn.microsoft.com/vstudio/support/readme/default.aspx#Tool should have more details on how to uninstall you installation. Hope this helps! Thanks, Ayman Shoukry VC++ Team ...Show All
Windows Forms How to resize a TextBox to fit the text in it?
OK, I'm hitting a very unexpected stumbling point here. I've got a series of Textboxes displayed in a TableLayoutPanel. Each of these textboxes shares a row with a button. The button is of fixed width and the TextBox fills the remainder of the row. The behavior I want from the TextBox is to automatically resize itself in the Y-axis if the text in it is multi-line. Right now, I'm automatically resizing the TextBox on the TextChanged event. This works partially. I can get the number of lines of text with a GetLineFromCharIndex call that takes the Index of the last character of text in the TextBox. I then multiply the number of lines by the ...Show All
Software Development for Windows Vista Welcome Tablet PC/Mobile PC users and the world!
We stand ready to answer your questions! Moderators are standing by! I actually have a Toshiba Satellite R10 and I wonder if there are similar options available for this model. ...Show All
Visual Studio Express Editions Problem with binding navigator
Sorry I posted this in the installation forum by mistake. I'm working on an app to help my daughter compile school reports as she is a teacher and it is a laborious end of year task. The problem is that I have a binding navigator to help select the pupil at the top of the form with a datagrid containing the report underneath which should be synchronised with the pupil selected by the navigator. To do this I've attached an update procedure to the move next, previous buttons etc which works very well, problem is that it runs this before it moves to the previous/next record thus making the report datagrid display the report of the previou ...Show All
.NET Development I want to populate a datagrid with the result of: MySubRow.GetChildRows("MyRelation_Sub_Account")
Hi all, I guess the function : Mydatarelation.getchildrows returns a list of child rows from a certain parent row in the parent table. According to the selected parent Row, I want to put the resulting child rows in my datagrid. If I do this: I create MyRelation then: MyDatagrid.datasouce= MySubRow.GetChildRows("MyRelation") All I get are empty child rows in a datagrid like this: RowError HasErrors False False In my example, I only have 2 child rows corresponding to the parent Row. What should I do please Thanks for help. ...Show All
.NET Development Convert string to double in invariant culture in .NET 2.0
I want to convert a number like 1 000.005 in invariant culture for storing in a database. The number is enter by user and can be in any number format like for example : 1.000.005 1,000.005 1 000.005 1 000,005 I try this : double.Parse(doubleToParse, CultureInfo.InvariantCulture); But it doesn't work when my number is 1.000.005 because the decimalSeparator is "," and the GroupSeparator is ".". How I can parse a double in invariantCulture My advice is, as David A. Kean suggests, to parse the user input with the current culture: double.Parse(doubleToParse, CultureInfo.CurrentCulture); If you need to store the data in text format ...Show All
Windows Forms Hanging Indent with DrawString
Can anyone think of a way to use Graphics.DrawString to create a hanging indent The function supports word wrapping, but it does not seem to have a hanging indent feature. Does anyone know how I can use MeasureString to detect the characters after which it will drop to the next line so that I can implement the indent myself That's the basic idea, yeah, but it's far (very far) from a working solution. For one thing, you don't even have it creating a hanging indent! It also doesn't deal with the issue of it being a single word that is too long... ...Show All
Windows Search Technologies Culture aware dates
Hi, Being from one of the original US colonies (the UK), we get our dates the wrong way around, i.e. dd/mm/yyyy. When I use the the 'date:' column in the API it's always en-US culture. Is that right, as the locale-dates then need converting for comparisons/math I was happily assuming that the new 2.6+ API would make this better, in that the API would be 'culturally aware', but you know what they say about people who assume, so thought I should check/suggest the idea. Also, as I am developing a product that embeds/utilizies the WDS, is there a way to sign up for beta's of the SDK etc, i.e. as I would be able to offer feedback ...Show All
.NET Development Thread Safe wrapper
Hello, i would like to use something to write a file, but that also controls the concurrency. My problem is that i have mutiple threads that can write to the same file. I saw this method from TextWriter : http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemiotextwriterclasssynchronizedtopic.asp that creates me a thread-safe wrapper around the specified TextWriter (received as an argument). My question is: will the resulting wrapper control the simultaneous access to the file for me That is, will the resulting wrapper blocks a thread when it wants to write in a file that is being wri ...Show All
.NET Development Creating a ASP mobile app download page
Hi I’m new to ASP.NET so I’m hopping the following question can be easily answered by you experienced developers out their. I want to create a web service which will initiate a download with the client, the file being sent to the client will depend on a “downloadID” query string that the client post’s to my service. I know how to map this “downloadID” to the specific file to be downloaded, what I don’t know is how to respond to the client with some sort of download initiation. I just need to be pointed in the right direction. Thanks Here is some more info. I am us ...Show All
.NET Development unwanted ! character appearing in email content/message
Hi I am using SMTP server to send email in a .net console application. Upon receiving the email , i see a "!" character appearing in the email body. The email content/message size is around 500 characters. please help. thanks netjay Imports System.Web.Mail ------------------------ Dim objmsg As New MailMessage objmsg.BodyFormat = MailFormat.Html objmsg.From = FrmEmail objmsg.To = toEmail objmsg.Subject = ESubject objmsg.Body = EBody SmtpMail.SmtpServer = SMTPServer SmtpMail.Send(objmsg) --------------------------- Why does this only happen in outlook. The same ema ...Show All
.NET Development SingleCall or Singleton?
Yes, 2 copies of the same program. Have it in two separate folders. Just change the port within the config file for the two EXEs. Regards, Vikram ...Show All
