HI , There are TWO Excel Files in my Program which I am trying to upload to a FTP server and then later Download it and its getting uploaded and downloaded with no error but when i try to open the file i get error message its corrupted or not in correct format i.e "file format or extension not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file." the code i am using for upload is as follows : private void FtpUploadFile(string filename) { string user_name = "username"; string …

Member Avatar
Member Avatar
+0 forum 1

I've asked this on SO *AND* Reddit without so much as a peep...was hoping DW would turn up the answer! I have an ascx user control that has a custom event added to it. I can get the event to work without problem, but the event doesn't show up in Visual Studio's property editor, only in intellisense. Is there an attribute I am missing or something? The event definition is: [Browsable(true), EditorBrowsable(EditorBrowsableState.Always)] public event EventHandler<EventArgs> SelectedIndexChanged; The event doesn't show up in the property box but all of my custom properties do: ![01.png](/attachments/large/2/d2100029f259ede79e25a6d88645611e.png "align-center") But is accessable through intellisense: ![02.png](/attachments/large/2/1606590fca35bd17c4dff6d7a4ec79ef.png …

Member Avatar
Member Avatar
+0 forum 3

I have a windows form application, which uses some user settings (Settings.settings) One of those settings if of type bool and set to default of False. In my form_load event I check that value, if it is true then a new form is started where user enters a password, and the application exits if the password is incorrect or the user closes the form, if it's correct the application starts. I check the value like so `public static bool hasPassword = Convert.ToBoolean(Settings.Default["PasswordProtected"]); ` The application was working fine until I tried to start it from within VS via the start …

Member Avatar
Member Avatar
+0 forum 2

hello so we are in the process of developing a tagging program, and im building the form in c#. now how would we be able to connect the db from workbench with this form in visual studio to make queries in the program? btw the databse i hosted it at AWS, and i put the endpoint of the instance in a workbench connection. i assume ill have to also put the endpoint of the instance in some database connection code in c#?

Member Avatar
+0 forum 0

Hi Guys, At my work I been provided a QAAWS that will provide me with certain. For privacy reason I cannot give you the actual QAAWS but it is simila to [this one](https://liveoffice.etosoftware.com/dswsbobje/qaawsservices/biws?WSDL=1&cuid=Afg7hriNfChBslO9TDgBqLc). I know how to create a web service and pulled the data using my own SQl queries but I have no clue how to extract the data fron a QAAWS. I can see the data using [SOAPUI 5.0.0](http://www.soapui.org/), and I can extract the XML and put in an excel spreadsheet, but what I want to do is to a more automatic approach. I want to use the …

Member Avatar
Member Avatar
+0 forum 3

I've got a program with (you guessed it) a .properties file. I've saved new values for properties while running the program through visual studio's debugging system. The changed properties are persistent when running the program (they appear in text boxes, as per my code), but when I view the settings file within visual studio, they are the same as before I changed them. Two questions here: -Would these settings reset back to default if I were to compile and export the project? -Will these modified settings be still viewable if I commit the project changes to github (using the visual …

Member Avatar
Member Avatar
+0 forum 1

Microsoft this week acquired [url=http://www.teamprise.com/]Teamprise[/url], a division of [url=http://www.sourcegear.com/]SourceGear[/url] that built tools to give developers access to Visual Studio 2008 Team Foundation Server from systems running Linux, Mac OS X and Unix.SourceGear's flagship [url=http://www.sourcegear.com/sos/]SourceOffSite[/url] provides remote access to Visual SouceSafe, Microsoft's version control system. Teamprise comes in [url=http://www.teamprise.com/products/download/]three forms[/url]. The Plug-in for Eclipse allows developers source control, bug tracking, build and reporting operations from within their current Eclipse environment or Eclipse-based IDE. Teamprise Explorer does the same but can can stand alone. There's also the Command-Line Client automated builds and other scripting situations. Updated to version 3.2 in March, Teamprise …

Member Avatar
Member Avatar
+1 forum 3

I creating an application in visual studio where I have a client to request specific information to multiple servers. Someone Knows i can make this communication? For one server i know to create that, for many servers i dont have idea. Code example!!! One client for many servers! For one server i have this code: Try client.Connect(IPAddress, PortNum) RichTextBox1.Text() = "Connection is Accepted" Catch ex As Exception RichTextBox1.Text() = "Connection is Failed" End Try

Member Avatar
Member Avatar
+0 forum 3

I believe everyone heard the news from November the 11th-"Opening up Visual Studio and .NET to Every Developer, Any Application: .NET Server Core open source and cross platform, Visual Studio Community 2013 and preview of Visual Studio 2015 and .NET 2015". Maybe some people will disagree but I think that Visual Studio is the best IDE ever developed. I was never a fan of Microsoft but Microsoft is always present (software, programming languages) at universities, high schools, aditional education ect... For this reason I've chosen C# to be my primary language (sorry for going of topic). After I read this …

Member Avatar
Member Avatar
+0 forum 1

Hello Im trying to display a label when my program starts, to check the server status.. For example if the user is successfully connected to the server it should say on the label "Connected" and if not the label should say "Not Connected" , my Database is located on a remote server. I tried to disconnect to the internet and use this code but ending up not showing up the form. Try dataopen() If conn.State = ConnectionState.Open Then rlabel1.text = "Connected" Else rlabel1.text = "Not connected" End If Catch ex As Exception End Try THANKS!

Member Avatar
Member Avatar
+0 forum 2

I bought a book to help me learning WCF. Lots of people complained that the book was written for VS 2005 at first then there was a reprinting for VS 2008. What it seems is that the code for VS 2005 would not work in VS 2008. I'm wondering why? What is more likely the solution files or the code itself? I know that code gets deprecated (methods and even whole classes). I"m wondering what are the chances that what i learn in the book from 2008 will work in VS 2010. I assume that I shouldn't have to RE-LEARN …

Member Avatar
Member Avatar
+0 forum 11

What is the Congiguration manager class in the code and how do you set it in the Project or IDE? How do I set AppSettings in an ASPX project's Configuration manager? This is an ASPX/CS Project with Visual Studio 2010. It is a Configuration Manager question. I am successfully debugging (sort of) some code that is being used already on a server. But there is a piece of code that plays with the URL in the live version that should not be used in the debug/localhost version. protected void Page_Load(object sender, EventArgs e) { if (ConfigurationManager.AppSettings["IsTesting"] == "false" && Request.Url.ToString().Contains("http:")) …

Member Avatar
Member Avatar
+0 forum 2

I added new database file in my solution's app_data folder in VS2008. But when i tried to expand it from SERVER EXPLORER, i get this error An attempt to attach an auto-named database for file ___ failed. Find the screen shot of the error which occured in vs2008 IDE. [http://www.eggheadcafe.com/FileUpload/1619491694/Errordb.jpg](null)

Member Avatar
+0 forum 0

Hello Community, I was wondering if there is a way to make grid transition in visual studio using the language visual basic. Please help...

Member Avatar
Member Avatar
+0 forum 3

Hey guys just joined.. So I'm learning C#, and kinda having trouble with finding the command prompt? Installed Vistual Studio 2008 Express with C# and visual basic. After that I installed XNA 3.1. It's supposedly in a folder in the start menu under 'Microsoft Visual Studio Tools', but I have no such folder.. I tried using XNA Game Studdio 3.1 Command prompt but that gives an error. Thank you for your help. :).. And if you want to know what I am trying to do, I just want to manually compile a cs file.

Member Avatar
Member Avatar
+0 forum 8

I created a UserControl that contains a custom ToolStrip Control. While using the UserControl throughout an application, the ToolStrip control cannot be accessed directly, as logically it's embedded in the UserControl. So, to access the items of the ToolStrip I defined a readonly property in the UserControl class that returns the items of the ToolStrip. Now programmatically the items of the ToolStrip can be edited by using the UserControl.Items property, but I cannot do the same in the design mode. Like someone drags the UserControl from the ToolBox to the form, goes to the property grid, chooses the Items property …

Member Avatar
Member Avatar
+0 forum 2

Hey All! I have created a database application which read and write data in Ms Access. It works well on my computer but when i try to install the same application via installer package to another computer, and run it, it gives me error that i dont have the database. So i want to know if there is any method so that one can create MS Access database from the application rather than to create manually. All the table in database must be created via the application when it installs. thanks, good day!

Member Avatar
Member Avatar
+0 forum 5

Ive just recently switched to visual studio c++ express. I am Creating some shapes with dx9 and i came upon this problem with my indices: error C2064: term does not evaluate to a function taking 24 arguments here is the code where i am getting the error: [ICODE]short indices[100]; indices[100] ( 0,1,2, 2,1,3, 4,5,6, 6,5,7, 8,9,10, 10,9,11, 12,13,14, 14,13,15 );[/ICODE]

Member Avatar
Member Avatar
+0 forum 21

Hey can anyone help me out with this code? Im am really stuck and need to complete it for my engineering degree but none of lecturers have any coding knowledge so im really in trouble. I have a GUI and in the GUI is 3 comboboxes with different options. Depending on the options selected i want certain images to load in picture boxes when a button is clicked. The code i have written is below but it causing me a problem. The first three IF's are for a variable called 'camber'. When the code stopped here and the GUi was …

Member Avatar
Member Avatar
+0 forum 2

Hello, I need a label array for my windows form so I can easily edit the text in the labels. I've found this solution: [CODE] for (int i = 0; i < 10; i++) { Label[] labels = new Label[10]; labels[i] = new Label(); labels[i].Text = "0"; labels[i].Location = new System.Drawing.Point(100, i*10+100); }[/CODE] I put this code in the form load. It's not giving me errors but It's not displaying the labels on the screen either. Can anyone help me?

Member Avatar
Member Avatar
+0 forum 5

Greeting fellow Humans, I'm trying to "[I]comb merge[/I]" (if any thing as such) bunch of Excel files. There are 2 type of Excel workbook: A & B Both has a column called : [I]Location ID[/I] [U]These are the step I think the prog should do [/U]: Promp user to select location of 2 file >> Read data from the user selected file >> Open pre-set Excel template paste item accordingly >> Save it! [B]Final Output:[/B] Same Location ID from both workbook in 1 sheet beside each other.. Possible? please guide me..newbie here..done my research Smile | :) **i can post …

Member Avatar
Member Avatar
+0 forum 4

Hello, I have made a store inventory system in console in C++. I would like to know how can i convert it into full fledged graphical user interface. Any article,book,tutorial,video would be very helpful Thank you.

Member Avatar
Member Avatar
+0 forum 8

Has anyone tried Microsoft's Python Tools for visual studio? I read on /. that it's suppose to support any interpreter not just Ironpython, but I'm only seeing Cpython and Ironpython. Any feedback? [URL="http://pytools.codeplex.com/"]http://pytools.codeplex.com/[/URL]

Member Avatar
+0 forum 0

Hi, I'm coding my program on VB.net and I take my laptop when I am away and use my PC back at home. I know this may sound simple, but what is the easiest way to get the project on another PC. For example, in Java I know that you can export the project file for easy import on another computer but I have found no easy way for VB.net and Visual Studio. At the moment I've created a new project and pasted all the form elements and code. Please tell me there is a easier way!!! Is there something …

Member Avatar
Member Avatar
+0 forum 3

I am just starting MS Visual Studio 2005. My laptop has a 64 bit Intel microprocessor and the OS installed is 64 bit Windows 7. I created a DLL in VC++ 2005 using a Export Definitions File (.def) and then created an application on VB to test it. The entire procedure was completed as instructed by my teacher and every thing was fine until I tried to run the application. The error returned was a BadImageFormat Exception (0x8007000B) and I have completely no idea what went wrong. I have read the posts in these forums and I think it might …

Member Avatar
Member Avatar
+0 forum 3

hi im doing my final year project(Bsc) and im looking for some suggestions on what to do. I would like to develop something in c# smart device/windows mobile and xml any suggestions would be greatly appreciated. Thanks

Member Avatar
Member Avatar
+0 forum 1

Ever since my team upgraded to Infragistics NetAdvantage starting with ASP.NET 2010 vol 2 from 2010 vol 1, I've been having nothing but troubles. Since there is a no backward compatibility between versions of NetAdvantage (2009 vol 1 controls cannot just be left in place if a different part of development is using 2010 vol 1, for example), you either need to get to a common version or have all the previous versions still active and in place (the former is definitely preferred). That said, I started up a fresh install having removed NetAdvantage ASP.NET 2010 vol 1 from my …

Member Avatar
+0 forum 0

Hello all, My question is, when using Visual Studio, and compiling this piece of code: [code] int main(int argc, char *argv[]) { SDL_Init(SDL_INIT_EVERYTHING); SDL_SetVideoMode(640, 480, 32, SDL_OPENGL); SDL_WM_SetCaption("OpenGL Awesomeness", NULL); //run time error here SDL_Event event; while(event.type != SDL_QUIT) { SDL_PollEvent(&event); RenderScene(); SetupRC(); SDL_GL_SwapBuffers(); SDL_Delay(60); } SDL_Quit(); return 0; } [/code] I get a runtime error saying that I'm using a variable that is being used and not initialized. I know that SDL_Events cannot be initialized, and am wondering how to fix this problem. I have before, but the soultion has currently escaped me. Thank you for your help in …

Member Avatar
Member Avatar
+0 forum 1

Hello, I am currently working on a project for my degree using asp.net, C# and Sql. The problem I am having is with my connection.cs file that I have created, the code I have is as follows: [CODE] using System; using System.Configuration; using System.Linq; using System.Data.Linq; using System.Xml; using School.SchoolCore.Core.Domain; using School.SchoolCore.Properties; using StructureMap; namespace School.SchoolCore.Core.DataAccess.Impl { public class Connection { public SchoolDataContext GetContext() { string connString = ""; try { XmlDocument doc = new XmlDocument(); doc.Load("ConnectionStringToUse.xml"); XmlNodeList xnl = doc.GetElementsByTagName("environment"); XmlElement xe = (XmlElement) xnl[0]; switch (xe.InnerText.ToString().ToLower()) { case "local": connString = Settings.Default.SchoolConnectionStringLocal; break; case "development": connString = Settings.Default.SchoolConnectionStringDevelopment; …

Member Avatar
Member Avatar
+0 forum 2

I'm just learning C# and I'm using MS Visual Studio for that and a website with tutorial stuff. I've written my first little app which just does a simple calculation on some figures input by the user and outputs the result. It is a console app at present. Now I want it on a webpage so's I can put it on a site of mine. But I can't figure out how to do it. Neither from Visual Studio screens, nor help, nor the tutorial.... Can anyone help? regards, ab :)

Member Avatar
Member Avatar
+0 forum 5

The End.