Software Development Network Logo
  • Visual Basic
  • Windows Forms
  • Visual Studio
  • SharePoint Products
  • Windows Vista
  • Game Technologies
  • Microsoft ISV
  • .NET Development
  • Smart Devicet
  • Audio and Video
  • IE Development
  • VS Team System
  • Visual C++
  • SQL Server
  • Visual C#

Software Development Network >> F.Costa's Q&A profile

F.Costa

Member List

vision2020
MagedSalah
eldiener
rsknowles
winstonSmith
JonEagle
OlafC
JeroGrav
maran.g
Will Merydith
Morrissey99
drewex
Lockhouse
robertlamour
MedicineMan
franziss
Tovdb
we7313
Lorenzo Soncini9198
gonzo883
Only Title

F.Costa's Q&A profile

  • Visual Studio Express Editions how to save files

    Hi! I have tried this code (from Spotty) for saving and opening files and it works perfectly with my program but i need to add more TextBoxes, one ComboBox, one RichTextBox (text and picture from paint). How can i solve the problem I'am useing WinXP and VB Express Grateful for answers. I.HJ Public Class Form1 Private Mod_strFilename As String = "" Private Sub BtnLoad_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnLoad.Click Dim ObjFileBrowser As New OpenFileDialog If ObjFileBrowser.ShowDialog() = System.Windows.Forms.DialogResult.OK Then Dim str_Filename = ObjFileBrowser.FileName TextBox1.Text = My .Computer.FileSystem.Re ...Show All

  • Visual Studio 2008 (Pre-release) vista and VS

    Hi, is there a current version of VS I can use with Vista thank you thanks Lee but when I installed VS2005 there was a pop up in Vista saying that it was incompatible. I use VS2005 Academic (I do some work at a University). Should I ignore this warning and install or are there any updates/patches I need thanks again ...Show All

  • .NET Development difference between int.TryParse and Convert.ToInt32?

    Hi experts can anybody tell.. Is there any difference between int.TryParse method and Convert.ToInt32 method Thanks in advacance Some differences: One can throw FormatException, the other doesn't (TryParse). One assumes (TryParse) there can be input errors and doesn't use exceptions for logic to handle data validation. ...Show All

  • Windows Forms Arraylist populated using a custom class. Listbox Datasource set to the ArrayList. Error: Object must implement IConvertible

    I have a custom class that I use for populating an ArrayList that I then use as the DataSource for a listbox in ASP.Net. Problem is it was written in VB but needs to be C#. I have completed the conversion except for one statement that does not work as it did in VB. Problem statement is when trying to pull the SelectedItem. VB: ( Works Great !) strCode = CType(cboLocation.SelectedItem,clsListElements).LocType C#: ( Fails with an error ) strCode = ((clsListElements)System.Convert.ChangeType(cboLocation.SelectedItem, typeof(clsListElements))).LocType; ERROR: 'System.InvalidCastException' {"Object must implement IConvertible."} My custom class C# ( Partial Co de ): public class clsListElements { private s ...Show All

  • Software Development for Windows Vista The referenced component 'Outlook' could not be found.

    Hello everyone, I am trying to run the Human Workflow sample "Simple Human workflow" I am getting the following Build error for namespace "Microsoft.Office.Interop.Outlook". The type or namespace name "Interop" does not exist in the namespace "Microsoft.Office". I have added a reference for Microsoft Outlook 11.0 Object Library from COM tab. But it is adding with a yellow mark to the reference list. Can anybody please suggest me in working with this sample and how to give reference of Outlook. Thank you in advance. This other post is discussing the same issue: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1145604&SiteID=1 ...Show All

  • .NET Development Web services / Hosted Controls catch 22

    We have created a Hosted .Net Control that uses web services to talk to an IIS server. Works great; except behind an Microsoft ISA proxy server that expects authentication. The user gets a 407 Proxy Authentication failed. Through exhaustive searches of the internet we have concluded that the answer should be something like: WebProxy proxy = ( WebProxy ) WebRequest .DefaultWebProxy; proxy.Credentials = CredentialCache.DefaultCredentials; webserviceProxy.Proxy = proxy; However, this approach fails because of a CAS security exception System.Net.WebPermission. This seems to be caused by violation of the Intranet_Same_Site_Access or Internet_Same_Site_Access in the internet and “local intranet” sandbox that we are t ...Show All

  • Visual C++ /Wp64 and sprintf

    Can anyone suggest a portable way to deal with the /Wp64 warning from the following code, targeting 32-bit int main() { int * blockRef = 0; // simplified char buf[100]; sprintf( buf, "blockRef=%x\n" , blockRef ); return 0; } warning C4313: 'sprintf_s' : '%x' in format string conflicts with argument 1 of type 'int *' Thanks.   Karpov Andrey wrote: http://www.viva64.com/articles.php You sure do like advertising your site, don't you ...Show All

  • .NET Development Architecting Web Services - Best Practices

    Folks - I am looking for a best practice to outline the following scenario. Articles, papers and so on would be great (of MSDN webcasts) Say i have an entity class, say called "Order" and that order class has some properties (OrderID, Currency, Amount) and one or two methods (say Validate()). This Order entity is returned from a WebMethod, and through another WebMethod you pass an updated version of this entity. On a client consuming this service (a .Net client for example) you call each of these methods. Ideally, some business logic is performed on the client - so when you set the currency on the Order class this should conform to the business rules of that property (say it must be one of three currencies and so on). Th ...Show All

  • SQL Server BUG : Data source not appearing

    Hello, I am trying make some imports and I am using the wizard. I have created a new project and added 2 new datasources. One for a DB2 database and one for a SQL Server database I select Project | SS Import and Export Wizard and the wizard launches. When I look under datasource I can't find my 2 created datasources. I can create new ones but this is not something I want. Any help Constantijn Enders It would be handy if the import/export wizard could access the project items. Perhaps for a next version. I am importing from a DB2 system and setting up the oledb connection requires at least 3 screens. You can only import multiple tables and/or views OR a single query. (not multiple ...Show All

  • Visual Basic Highlighting Text in Dispayed HTML Page

    I have a VB2005 windows app that displays HTML pages. I would like to let the user search the currently displayed HTML page for embedded text. I use the Instr function to determine if the search text is there; if there I would like to highlight the text for the user but I don't know how to cause text to be highlighted in the displayed page. Can someone enlighten me Thanks.     http://msdn.microsoft.com/library/default.asp url=/workshop/author/dhtml/reference/methods/execcommand.asp http://msdn.microsoft.com/library/default.asp url=/workshop/author/dhtml/reference/constants/backcolor.asp ...Show All

  • .NET Development HASHTABLE to store 2 different types in HASHTABLE collections

    I want to store each datarow in to each HashTable, how can I do that basically.>> datReader = sqlCmd.ExecuteReader(); int i = 0; System.Collections. Hashtable [] myHT = null ; while (datReader.Read()) { myHT = new System.Collections. Hashtable (); myHT .Add( "PKid" , datReader[ "SomeDataFromAColumn" ]); i+=1; } Also. Can I be able to store two diffent types (classes) into this Hashtable without GetHashCode(). like, Class1 object1 = new Class1(); Class2 object2 = new Class2(); myHT .Add( 1,object1); myHT .Add(2 ,object2); However this is only returning Employment; I also need to return Residence in below method>> public ...Show All

  • Architecture Which protocol?

    I'm writing a solution for communication with a (.net) server. Now I'm thinking about a protocol I should use(Remoting, WebService, Sockets, ...). There are some things to consider: There may be many clients connecting to the server with that app (100000 ) I want this app doesn't have any problems with routers (firewall, NAT) Later, there will be a C++ client (not managed) I'm tending to webservices because of (2,3) but don't know if there will be performance issues... What would you do Konstantin Hi Konstantin, Remoting can work well over HTTP, so firewall issues will not help you decide here. I dont think that there is a straightforward way to directly call .NET remoting services from unmanaged C++ client ...Show All

  • Windows Forms Refresh Forms and flashing controls

    I have a form that has controls bound to a binding source. When the user updates and saves the data, I refresh the data source for the binding source. I have several Combo Boxes on the form. When the from refreshes, these combo boxes displayed text flashes, in other words, the text disappears, then re-appears. I wish to prevent this behaviour from appearing to the user. I have tried setting Form.SuspendLayout() before refreshing the data, and then Form.ResumeLayout() after the data refresh, but still experience this behaviour. I have even gone to the combobox.SuspendLayout() and ResumeLayout(), but not have had success. Upon further reading, I don't think the is the purpose of these commands. What I am looking for is to freeze the form ...Show All

  • Visual C++ How do I draw to a DCcompat Bitmap then BitBlt to screen to reduce screen flash while scrolling?

    Hi guys, I'm a grad student in cognitive psych with a decent background in C++.  I've post here before and you guys were very helpful, which I greatly appreciate.  Anyway, I've got another issue. I'm designing a program for a study that involves using a CView class and drawing several things using the dc in the OnDraw function.  What I draw usually goes greater than the screen height and I've implemeted a vertical scroll bar to scroll up and down to see it all.  The problem is that when I scroll up and down there is alot of screen flash due to redrawing as the scroll bar moves.  I need it to be smooth or otherwise it messes with the perception rules for the study.  What ...Show All

  • SQL Server Should I use XML Datatype

    Hello All, How much memory is consumed by the XML Dataype column when initially In what scenario should we XML Datatype Please see my scenario given below and justify that should I use XML Datatype Personal Information Key Name Address FriendsList BankAccounts PhoneNo Name PhoneNo BankName AccountNo If I have a scenario like above which option should I use Option 1: Make three different tables Named Main, FriendsList and BankAccounts Header table named Main PersonalKey Name ...Show All

©2008 Software Development Network