ManuFern's Q&A profile
.NET Development WinForms Vs WebForms
Where can I get the list of pros & cons generally speaking WinForms are Richable but not reachable , on the contrary WebForms are Reachable (but not richable due to performance factors). so the question is : can we have a form that is both richable and reachable at the same time . the answer is simply , yes "Click-Once deployment ". there was an old article about hosting a windows form over IIS , and this would lead to the death of browsers we know today . http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnadvnet/html/vbnet10142001.asp so if we can really work this way by hosting winforms over IIS , why would we nee ...Show All
SQL Server ODBC Destination in SSIS
Hi! I have a problem that stops me from using Integration Services as THE ETL tool. My goal is to load a data warehouse type of a database. The database is MaxDB (former SAP DB), but this is not the point. Let's take ANY ODBC compliant DB and assume all I have is ODBC driver - no OLE DB driver. I figured out how to read from ODBC source (using Data Reader and ADO.NET provider for ODBC). Now my question is how do I output/write my data into ODBC source When I try to use OLE DB Destination it does not give me an option to use .Net Provide for ODBC. I tried other "destinations" with no luck. I use this version of SQL Server 2005: (Mi ...Show All
.NET Development How to access a Microsoft Access DB with OleDbConnection?
In C# .Net, how can I access a Microsoft Access DB with OleDbConnection Especially, how to write the Connect String for the purpose Had better give me a piece of sample codes. A good point of reference is.... http://www.connectionstrings.com/ ...Show All
Visual C# How can I make datagrid display the caption instead of the name of datatable column?
I add my columns to my datatable in the following way: private static DataColumn AddColumn( DataTable dt, DataColumn dc, string name, Type type, string label, string def ) { dc = new DataColumn(name, type); //add name and type of datacolumn dc.Caption = label; //add label to datacolumn (what the users see) dc.DefaultValue = def; //add default value to data column dt.Columns.Add(dc); //add the datacolumn to the table return dc; //return the datacolumn to continue prossess } I provide my data like this: AddColumn( dt, dc, "FName", typeof ( string ), "First Name", "" ); As you can see it'll ...Show All
Smart Device Development SendMessage from a DLL to a control in a VB.NET form legal?
Hello and good whatever time is at yout place Is it legal to manipulate a control (listbox for example) from a DLL written in c++ using SendMessage like so: in the VB part: Declare Function TestSendMSG Lib "MyDll.dll" _ (ByVal h_wnd as int32) As int32 calling this function like: (in some sub) TestSendMSG(MyListBox1.hWnd) In the DLL: unsigned long WINAPI TestSendMSG(unsigned long h_wnd) { SendMessage((HWND)h_wnd, LB_ADDITEM, ..........); return 0; } Thank you for taking the time PS.: Could you MS people _please_ add a text only property to the message properties !! ...Show All
Visual C++ How to use GDI+ in my old MFC programe?
every master,I have a old draw programe in VC6.0,now i want to transform to VC2003,but I dont want to use managed C++,I still want to use MFC, so how to program using GDI+ I am sure the game dev folks at http://forums.microsoft.com/msdn/default.aspx ForumGroupID=20 would have more experience with GDI. Thanks, Ayman Shoukry VC++ Team ...Show All
Windows Forms Multithreaded Drawing in Windows Forms + Managed DirectX
I've written a simple Windows Forms Control that's basically a wrapper for a Managed DirectX Device ... class DirectXControl : Control { Device device = null; bool constantInvalidation = false; public delegate void OnDirectXRedrawHandler( DirectXControl sender ); public event OnDirectXRedrawHandler OnDirectXRedraw; /// <summary> &nbs ...Show All
Visual Studio Express Editions ; after every line in int main() {}
I read in a tutorial that at the end of every line in the int main() {} . But then I had a bunch of problems coming up with this code and one of the main problems was the fact that I put semicolons at the end of every line in the int main function. Here is the code: #include <iostream> using namespace std; int main() { int choice; cout << "Enter the number 1 if you want the color blue \n"; cout << "Enter the number 2 if you want the color red \n"; cout << "Enter the number 3 if you want the color green \n"; cout << "Enter the number 4 if you want the color orange \n&qu ...Show All
Visual Studio Express Editions ListView Woes
I am creating an Archive directory project and have run into a problem with my listview. I am populating a listView with a directory listing of directories withing a selected directory. I am doing this so that users may select those directories they want archived and leave the rest alone. Here is the code I am using to generate my listView textBox2.Text = "" ; listView2.Clear(); // Create a new ListView control. //listView1.Bounds = new Rectangle(new Point(309, 33), new Size(163, 256)); // Set the view to show details. listView2.View = View .Details; // Allow the user to edit item text. listView2.LabelEdit = ...Show All
.NET Development Debugging SOAP Request/Response
Is there any way to capture the XML that is sent to and received from a web service over HTTPS I'm trying to debug the client connection to the web service, and I want to see whether the SOAP being generated and returned are correct. Aren't there any experts out there who have all the answers Anyways, I found a great debugging tool for web services called SOAPSonar at http://www.crosschecknet.com/ It does validation and invocation. And you can see the request//response in XML! I still need to know how to debug within VS. ...Show All
Visual Basic R
Hi, I am using VB.Net 2.0 and have connected to Microsoft Access but having trouble running a query as it uses * as a wildcard, but when I run it in .Net it returns nothing as needs to have %. The solutions I can think of are: 1) If I was able to extract out the actual SQL string from the MS Access query from my code then I could do a Replace("*", "%") then would work - but don't know how to extract the SQL string. 2) If there is some way to make the query work with the * then that would also solve my problem. The problem is that I have to run through 850 MS Databases (Student Lab Tests) so can't just chang ...Show All
.NET Development "Page can't be displayed" in IE after applying patch KB829019 (upgrade to .NET 2.0)
After upgrading to .NET 2.0 x86 various pages will no longer display. Our shipers website www.iship.com will no longer load the tracking information on upgraded 2.0 machines . When accessed on a older 1.1 machine it works fine. Any ideas Is there a bug fix for this or is there something that needs to be changed in the code on their end Thank you for your time, Steve Has there been any developments on this issue I have a similar problem using Best Software's MAS200 to invoke a shipment tracking request to what apparently is the iship.com website. I have contacted our MAS200 VAR and was t ...Show All
Visual Studio Crystal reports XI R2 and Visual Studio 2005 issues
Has anyone got this error after updating (fresh install) to Crystal Reports XI R2 with reports in Visual Studio 2005 I am posting here because I am not sure if it is a Crystal reports XI R2 bug or a Visual Studios 2005 problem. I thought it might be that my programming was wrong so I tried the samples that come with R2. If anything these should work since the people who developed the software wrote the examples. Even the examples gave me these same errors. Custom Tool is CrystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator I have these refernces: CrystalDecisions.CrystalReports.Engine - v2.0.50526 CrystalDecisions.Enterpris ...Show All
Architecture Scenario help please
My scenario is the next: I deploy my application to my clients with ClickOnce, but my clients can modify the code of the application (adding new attributes to the classes), and can personalize the user interface. How I can deploy a new version of my application to my clients without breaking the changes of my clients I need help. Where clients can change code... I'm very curious in what kind of scenario you use that. I think you must make a good OO design. So you are able to deploy different versions of your base classes with click-once and the other classes which your users can change a ...Show All
SQL Server Package running other packages
Hi everybody, I have to create a package that executes other packages I've already created... Every one of these packages run with the same Configuration File, but if I try to execute the main one, including the path of the file, I get errors from the other packages because they can't find it... How can I manage to pass this file and its content to the other packages Here a little explanation of te process: Main Package needs configuration file X.dtsConfig, and calls: package1, which needs configuration file X.dtsConfig; package2, ....... I hope everything is clear... I have completely ...Show All
