Samer Selo's Q&A profile
.NET Development Get problem with deploy .Net framework
I deploy my project by follow these steps: - Create a Setup project - ............. - From the Property Pages dialog of my Setup project, click Prerequisites - In the Prerequisites dialog box, under the Choose which prerequisites to install list, select .NET Framework 2.0 . I check Create setup programe to install Prerequisites and choose Download Prerequisites from the same location as my application . - Back to Property Pages dialog, click OK - In the Solution Explorer, right-click the setup project name, and click Build. I see there are two files setup.exe and myProject.msi ; folder dotnetfx with dotnetfx.exe in folde ...Show All
Visual C# PInvoke changes
I got this message on my recently upgraded 2005 project : A call to PInvoke function ....::SendMessage' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. My external signature is: DllImport("user32.dll", EntryPoint="SendMessageA")] public static extern int SendMessage (IntPtr hwnd, int wMsg, IntPtr wParam, object lParam); I looked into this and found some sites indicating that I could have problems with 64-bit code if I used an object for lParam or anything but IntPrt for the return type. The question I have is: I'm not building 64-bi ...Show All
.NET Development Utilizing FTP to create a local network program
Hello to all readers, I require some assistance. Any help would be appreciated. Thanks much. I am inquiring as to how one might go about writing an FTP program to back up to a local network folder, in C# of course. This has a practical application, I purchased and network-shared an extra harddrive using Windows XP for my wife to back up her data to. As she would say herself, she isn't very deft when it comes to the art of folder-clicking. I was hoping to infringe on yours and the community’s generosity in search of a cure for her woes. Such a cure would come in the form of automation. Brilliant. Again, thanks much for any assistance. Keano16FCeltic Hmmm... Windows XP comes wi ...Show All
Visual Studio 2008 (Pre-release) All-in-one bundle Beta 1 or CTP?
When will we be able to have an easier-to-install updated CTP of ADO.NET vNext The current one is a September 2006 CTP that requries the May 2006 CTP of LINQ in order to function. Are there any firm dates as to when LINQ and ADO.NET vNext will either become parallel (release at the same time) or get rolled into the same CTP/Beta Thats what I'm really looking for... I've got a Virtual Machine using the current Orcas CTP, I've got a VM running .NET 3.0, I've got a real machine using .NET 3.0, and a real machine using the May LINQ CTP and ADO.NET vNext w/LINQ to Entities... I'm wondering when I can consolidate and have a single machine (Virtual or otherwise) that I can use write my data access code (LINQ to Entities) ...Show All
Visual C# How to make datagrid cell clickable
Hei. I have datagridview that I display orders, cusotmers and some search in from stored procedures. Could anyone help me with making the cell clickable. My customer is supposed to be able to click on the ordernr, or cusotmernr in the cell and then it would display this in my gridview. Is it possible to have datagridview and detailsview on top of eachother. When cell is clicked in datagridview it should display information about the table in detailsview. I would not like to make another form to put this detailsview on, but rather display it on the same position on the form as the gridview is at. So the second question is : is there any function that does that, something like dynamic, if (gridview.active == false) show det ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where is a Tutorial??
hello, where can i find a tutorial, or a guide step-by-step, some examples We are currently working on a couple of tutorials. Is there anything specific you would like us to cover Are you looking for a “Getting Started” tutorial http://www.XNASpot.com ...Show All
Windows Forms Dynamically choosing a UI library
Hello All. I'm working on an educational app that is targeted for ages 6 and up. I've got two versions of the UI library, simple (for the youngsters) and normal (for the not-so-youngsters). Both libraries are self-contained and localized, so UI upgrade is simply a matter of file replacement. The user can switch between normal and simple at runtime simply by selecting a menu command. The way that I'm doing it now is by maintaining a persistent UIState variable and checking it each time I need to open a form. That's the problem. I'm wondering (can't find anything on the forums or in MSDN) if there isn't a way to make the check once, initially, and responding to the user changing the option, and not having to check again. Basically, ...Show All
Silverlight (formerly WPF/E) Text alignment?
Is there a reason TextAlignment isn't supported for the TextBlock element If so, I hope the reason is simply a matter of "not yet implemented", since I believe this to be an important feature that needs to be supported for the first release. Particularly when wrapping is involved, this is something that needs to be provided by the basic text rendering functionality. Our goal of frequent CTPs is to enable us to listen and incorporate customer feedback into the product. We have heard feedback from other customers about the need for TextAlignment and are incorporating this in our product planning. Related to WPF, do you expect to actively develop for both platforms (WPF and WPF/E) Als ...Show All
Windows Forms Center label on maximized form and wordwrap text
Should be fairly simple but because today is Monday I can't seem to see it.... My form is borderless and maximized. I have a single label that I would like to be horiz and vertically centered on the form. I'd like the text in the label to wordwrap and not go off the screen. Can someone please help me with this Thanks ! Set the label's AutoSize property to False. To get its text vertically centered in the form, independent of the amount of text it displays, you'll need to measure the vertical size of the displayed text. Check this thread for code. ...Show All
Visual Studio Microsoft Visual Studio 2005 Languages
As I began installing Microsoft Visual Studio 2005, everything was written in French. I pressed through the installation successfully, but when I run the program everything is written in French as well. How can I switch it to english, or where can I find an english language pack for it When I expand environment, there are two options, One "General" and the other has to do with text size/color and etc...., those are the only two, nothing about international settings ...Show All
Visual Studio 2008 (Pre-release) .Net Remoting two times faster than WCF!
In our healthcare enterprise multitier application the .Net Remoting transports are two times faster then WCF(we have plugable client/server transports): Measuring results for the same couple of client server requests: -> Tcp Remoting: 3.4 seconds -> Http Remoting (IIS-Hosted): 3.5 seconds -> Tcp WCF: 6.5 seconds -> Http WCF (IIS-Hosted): 7.3 seconds -> Http WCF (IIS-Hosted) with MTOM: 10.3 seconds Security: We just use authentication by NTLM Serialization: We use the NetDataContractSerializer, and not the DataContractSerializer (RPC style) Can WCF be tuned to be as fast as remoting The use of MTOM which replaces text by binary data makes the communication slower. Why ...Show All
Visual Studio Tools for Office Getting reference of an excel cell from other sheet
I am trying to access excel functionalities/data using VSTO from C#.NET. I have used a cell reference in another cell of different sheet. I can get the information of a cell, which is referred in other sheet, manually using formula auditing tools. Now I want to get the same with VSTO coding in C#.NET. Actually I want to display programmatically in C#.NET a message about the cell, in which the reference has been used when trying to delete or modify the cell, which has been referred. As for example: cell B5 of Sheet2 has used the reference of cell A3 of Sheet1 (formula of Cell B5 of Sheet2 = Sheet1!$A$3.). Now if I want to modify or delete the cell A3 of sheet1 I want to see a message like "This cell is being used by Sheet!$B$5". ...Show All
SQL Server How to make a File Share Subscription running on Vista?
I recently migrate to Vista. I had a bunch of reports with file share subscriptions that were running fine on XP. After installing reporting services on vista (that part only was a challenge), I re-created my subscriptions using the report manager. As expected, when a subscription is executed, the ‘last run’ column shows the last time the report output has been delivered to the file share and the ‘status’ column shows ‘New Subscription’. I thought that this was the signature of a successfully configured subscription. But surprisingly, there is nothing in the file share. The directory is empty. Anybody has an idea why Anybody knows how I could possibly find information on my ...Show All
Windows Forms Filter DGV by combobox programmatically
I am trying to filter a databound DGV from a combobox. All procedures are strictly read-only. Access db. 2 tables Countries, Addresses. Added datasource MyDb on Data Designer added underlying Select Query to Addresses TableAdaptor SELECT city + ', ' + State + ' ' + cstr(Zip) + chr(13) + chr(10) + Memo AS Log FROM Addresses 4 fields data is concatenated into single DGV column called Log Datagridview's datasource = MyDbBindingsource When form opens datagridview DGV fills perfectly. combobox cboCountry is databound to Countries table. When I select a country from cboCountry, DGV should simply filter and show selected country's data. Filtering the bindingsource does not work as it does not seem to accep ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Equivalent to OpenGL DisplayLists
Is there an equivalent in Direct3D to OpenGL Displaylists Thanks, Alexander. No, there's no equivilent in Direct3D to OpenGL's display lists. You can use vertex and index buffers to draw objects in single batch. ...Show All
