AugCampos's Q&A profile
Visual C# Construct Enum dynamically possible ????
I was wondering if it was possible to construct an enum at runtime Let's say i have a lookup table, and i'd like to have an enum for that lookup table. Is it possible to construct the enum dynamically Thanks, Hello, i have a class and i want that a property with list(of string) type displys in propertygrid as a dropdown list. So i want to dissolve that with convert list in a enum. So i have the same question sb's predecessor. Thanks ...Show All
Visual Studio Tools for Office VSTO SE - Create Spreadsheet on Server Without Excel
I understand that with VSTO SE and VS 2005 you can create and manipulate spreadsheets on computers/servers that do not have Excel installed. I have done a lot of programming Excel with COM but am new to VSTO. I have searched various examples online but have not found just one simple example of creating a spreadsheet pro grammatically on a server that does not have Excel. The resultant application would be a console app that would run without a GUI to process and create/update spreadsheets. Could someone please list as briefly as possible (VB preferred, C# okay) how to create a new spreadsheet, update a couple cells, and then close the spreadsheet from the command line with no GUI. Thanks. Did you try us ...Show All
Visual Studio Tools for Office Receieve Email Using C#(Urgent)
hi forum how to Receieve Email using c#.(pop3 protocol) if possible please mail me at rastogi.mahesh@hotmail.com Hello, you can either code a POP3 downloader yourself (the RFC is not very complicated - see http://www.ietf.org/rfc/rfc1939.txt ) or buy a third-party component. Best regards, Henning Krause ...Show All
Visual Studio Express Editions Cannot download VB Express
I just recently reformatted my computer and cannot seem to download VB Express from the microsoft website. No matter what link I click they all come up errors. I have been getting this alot recently with most any microsoft download. I tried the autoinstaller and the manual iso and img links and none of them work. Is there another place where it can be downloaded I did have it on disc but cannot seem to find it. Thank you, Troy L strong in what sense it shouldnt matter, sure, itll probably take you longer to access if your connection is weak but still accessible. If it times out alot then its to do with the connection, not the MS Servers ...Show All
.NET Development problems in Executing stored procedures in Asynchronous Request
Hello everybody, I'm trying to launch a stored procedure from an asynchronous request but it doesn't wan't to start... The Sqlserver process goes crazy when calling the SP but nothing is written into the datatables... (I don't know what's going on at that moment. No exception can be thrown as calling manually the procedures with the same arguments works without any problems) This is the code i'm using to call the procedure: using ( SqlConnection oConn = new SqlConnection ( ConfigurationManager .AppSettings[ "MIS" ])) { oConn.Open(); using ( SqlCommand oCmd = new SqlCommand ()) { oCmd.Connection = oConn; oCmd.Parameters.Add( new SqlParameter ( "SqlQuery" , SQLquery.Selec ...Show All
Visual C++ Is there any reference program for using the interface and function in
Is there any reference program for using the interface and function in Microsoft Visio Viewer 11.0 Type Library (Ver 1.1) in vc or some reference material and document I appreciate your help. Please see " use the the ActiveX of microsoft Visio viewer to load picture format of .vdx, and .vxd in vc "; einaros explained that the question is outside the scope of this forum. In particular, Visio Viewer is outside the scope of this forum. Try the visio.viewer.developer newsgroup; I am not sure it is the most relevant newsgroup, but I hope it is close enough. For the benefit of others, this question was also asked in: some reference for me how to use the funcituons in the com of Microsoft Visio Viewer 11.0 Type Library (Ver 1.1) ...Show All
Smart Device Development readlog.exe questions
hello all, actually i am dumping some of my application events in celog.clg file using celogdata i just want to know... is there any way to read it back in my application only.......currently i am reading this celog.clg file only on some other development machine using readlo.exe...... i want to read these event vy calling some APIs in my application if the answer is no.....than can i change readlog.exe according to my requirement.. thnaks vishal Hi Vishal Simply write your own CE Log File Reader. See: http://msdn2.microsoft.com/en-us/library/aa934838.aspx If you don't have CE 6.0, get an eval version at http://www.microsoft.com/windows/embedded/default.mspx Michael ...Show All
Visual C++ Custom class self draw issue.
In the true spirit of C++ a class should have the ability to draw itself, right So, if that is the cast then my custom class CWidget should have a member function something like Draw(CDC* pDC, CRect rect), yes, no (the CRect parameter defines the area of the screen the widget is to drawn) Well, here's the issue. Should I create a font, select it into the device context, and restore the old font all within the widget's draw function, or because essentially it will always have the same font, create the font, select it into the device context, and restore the old font outside the widget draw function call. I'm not sure which is the best method because it seems like it would be so much slower to put font setup inside the draw function, but at ...Show All
Visual Studio 2008 (Pre-release) multiple databases using sqlmetal
Currently, we are replicating from a file system database and are not able to include foreign key constraints. Therefore, we created a model database with the same table structures and added the foreign key constraints. With this database, I use an O/R mapping tool to create my dll. I am trying to do the same thing with sqlmetal. I created the cs file and when I try to pass a different connection string than the one used to create the cs file, I am getting an error when I try to bind the object to the grid. I am getting an InvalidCastException on .DataBind() Please let me know what you think Thanks, Joe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX 10 Wiki
Hi All, A group of us are starting a directx 10 wiki page so that it can act as a better reference with better examples. Please help build this wiki. Its located at http://www.dxten.com Thanks All. ...Show All
Visual Studio Team System VSTS - Implementation Consulting / Training
Hi, Does anyone know of a company in south India selling VSTS implementaiton and training services. I have tried a number of vendors in Chennai and Bangalore that I pulled off the Microsoft Directory but they are not on top of this technology to help me out. Microsoft's call centre in New Delhi were not a great resource on this. Thanks, Trevor Hello, Please help me with your contact details and will discuss how best we can assist you in this VSTS initiative. I work as Technology Specialist for VSTS based out of Bangalore and would like to extend all the possible help thru our set of VSTS Solution Partners. Regards. S S Ramakant ( ssrama@microsoft.com ) Mob :: 988 600 3476 ...Show All
Visual C# Converting a string to an object reference?
Hey guys, I have a text box thats named texBox1. I need to get this text box's text, of course using textBox1.Text but the problem is the name of the text box is defined by a variable... If MyVariable == 1, then I need textBox1, if the variable is equal to 2, then I need textBox2... etc. So to fix this, I tried converting to to a string; "textBox" + MyVariable.ToString() This works ok, I now have a string of the name of the desired text box. But how do I access its text from a string I'd need to transform it in some kind of reference to textBox1 from the string :s. The only to do this that I can see is String.System.IConvertible but I dont understand its working. So if anyone had any idea how to do this, it would be apreciated. T ...Show All
SQL Server Split Function
Hello, I have a string like "raja\raja\raja\01" I want to split the above string with the delimiter "\" and get into the array ( if possible ) like raja raja raja 01 Any string function in sql server available to do this task Thanks in advance ! Lots of answers here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1031854&SiteID=1 ...Show All
Visual Basic Is there any way to create DXF files from within VB?
I am developing some general purpose engineering programs with Visual Basic and they make heavy use of GDI+ for printed output. Nevertheless, the capability to export graphical data in DXF format would be a very welcome addition. Is there any resource, books or white papers, where I can learn about DXF creation I think you have a good few answers here to realize that working with DXF is probably going to cost you something and is not a really simple task to achieve in a few lines of code. ...Show All
Software Development for Windows Vista Where to get July CTP of .NET Framework 3.0 and Windows Workflow Foundation (WF) RC4
The relevant links for the July CTP of .NET Framework 3.0 and the associated VS Extensions for Window Workflow Foundation (WF) RC4 are below: .NET Framework 3.0 July CTP from here . VS Extensions for WF RC4 from here . Windows SDK for July CTP from here . If you are just starting with WF you should install this build. There are no new features or API changes between RC2 and RC4, only some bug fixes. Before you ask, I don’t have a list. there was a post about this issue (I don't remember where); the solution was to store the setup (.exe) file in different directories, and to run them from there...otherwise the setup for the VS extens ion calls your sdk setup... Serge ...Show All
