Kelster's Q&A profile
Windows Forms How to - Include Resource Files in Deployed Project - Plz Help
hello i m using VS 2003 and C# .. and i want to deploy my app using windows installer. i m using xml/xslt (resource files) in my application from the different folders. what i want is not to deploy my xml/xslt files as it is . i want them to be in a app EXE or dll as a resource files.. any pointers thanks Add your files to the project and set 'Buid Action' for them to 'Embedded Resource'. Then, at runtime, you can access these files using Assembly.GetManifestResourceStream method. ...Show All
Visual C# Any way to mix C++ templates and C#?
I've been trying to write a small library that depends on C++ templates (C# generics are just too restrictive for my purposes), but I'd like to be able to access and use the final library from C#. I haven't been able to dig up much information about this, but my observations so far are that: 1: If I just define a class template in a managed C++ assembly, it's inaccessible from another assembly (This makes perfect sense given how and when C++ templates are instantiated. I'm actually surprised this is possible between two managed C++ assemblies) 2: If I specialize the class template, the resulting type is not accessible from a C# assembly either. That is, I do something like this in my C++ assembly: template <typename T ...Show All
Windows Forms Image can't be retreive after ImageList being resized
Hi, I have a listview that it's imagelist reference to an ImageList. I have a function that change the size of the ImageList, in the hope that the image on each item will resized as stated. But when the ImageList resized, it seems that the image collection is gone. Tried to re-reference the image to the ListViewItem, but no image shown up. Here is the code: private void resizeThumbnail( int width, int height) { this .imageList.ImageSize = new Size (width, height); foreach ( ListViewItem lvItem in thumbListView.Items) lvItem.ImageIndex = 0; } Anyone can help Thanks in advance. ok already: private void resizeThumbnail( int width, int height) { Image [] imgArry = new Image ...Show All
SQL Server Viewer Date Picker Post Back
Is there away to keep the date picker from doing a post back in the viewer (ASP) For that matter, any of the parameter controls. Mark, from what i have seen, when you use the report designer to create your report, it automatically makes each parameter dependant on the parameters prior to it, even if they are unrelated. I had this in a bunch of reports that used a cube as the datasource, and find it highly annoying as well. For each parameter there will be a dataset node under /Datasets in the rdl. So if your parameter called 'DateTime' is causing issues, find the dataset whose name is 'DateTime'. Then follow these steps: - under the Query/QueryParameters node remove any QueryParameter nodes tha ...Show All
.NET Development reduce the time tring to connect tcpclient
hi, i'm building an app that searches diff host to see if they exist or not, the host are microprocessor on a car, so when they are in the area i can connect to them otherwise i cannot. but when i am trying to connect i takes to long, and during this i cant do anything else with my form is there a way to speed the try of connection up currently i use this in a loop: tcpclient micro = new tcpclient(); //start loop try {miro.connect(ipadress,portnr);} catch {//change ipadress} plz help thx Also, in V2.0 of the framework, there is an overload to TcpClient.BeginConnect() that takes an array of IPAddresses. It will try to connect to each of the addresses you specified and ...Show All
.NET Development WSE/DIME - WSE352: The size of the record uuid:{g-u-i-d} exceed its limit
I've gotten DIME attachments to work, but I'm running into the infamous 4096 limitation. How can I download a 20 meg file as a DIME attachment I've tried the maxRequestLength setting <messaging> <maxRequestLength>-1</maxRequestLength> </messaging> but this doesn't have any effect. Actually, looking at the docs indicates to me that this setting has an effect for uploads, rather than downloads since this is intended to prevent denial of service attackers from submitting large file uploads to the server. How do I download really large files via DIME attachments Thanks! - Joe Geretz - Are you using WSE/DIME or native Web Services (Base64 encoded string) I ...Show All
Visual Studio Team System Error 28925. TFServerStatusValidator:Calling the Team Foundation Server ServerStatus Web service failed.
I followed the .chm file to the letter installing Team Foundation Server RC on Windows Server 2003 Standard Edition using Domain user accounts specified and running all the windows updates and installing all the patches. But I get this error. Error 28925. TFServerStatusValidator:Calling the Team Foundation Server ServerStatus Web service failed. I had two warnings come up about memory requirements before installing but that was all. I'm running this as a VM on my local machine and it's connected to the DOMAIN I'm working in. Any ideas [02/22/06,20:52:26] Microsoft Visual Studio 2005 Team Foundation Server - ENU: Install(): bAttemptInstall: 1 [02/22/06,20:52:26] Setup.exe: GetGlobalCustomProperty({710A502B-4669-405C-A985-BA21545509BA}) [02 ...Show All
SQL Server Paged Result Sets
What is the recommended mechanism for selecting paged results from SQL. Presently I pass various params including the request Max Items Per Page and the requested page. The I execute the query as a count with the search params. Then comes the paging logic, which validates the page number against the request page and number of hits etc. Then a temp table and record variables are created for the results. Then I run the query again with a cursor and select the appropriate Items into the temp table based on the paging values (First Item and Last Item). Then I return the temp table & some additional return params with the Total Hits etc. The Stored procedure is accessed via an ADO.Net client and the system.data.IDBReade ...Show All
.NET Development There is already an open DataReader associated with this Command which must be closed first.
I have a rather large ASP-NET-2.0 project that I've been developing for some time. I'm using System.Data.Common classes for all of my data access, and SQL-2005 as my provider. Up to and including Beta-2, everything was working just fine and dandy. Then, with the release of RC1, I suddenly started to get the following error:: There is already an open DataReader associated with this Command which must be closed first. This totally threw me, but I dutifuly started to trace all of my connections & readers to make sure I was closing & disposing of them properly, and all appears to be correct. After a bunch of tedious and very time-consuming debugging, I've come to the conclusion that from RC1 onwards, the framework is not correctly ...Show All
Software Development for Windows Vista U3 USB Drives
Hello Everyone, As the title suggests I'm having issues with my 1gb Verbatim U3 Smart USB key. Vista detects it and installs the drivers correctly. Clicking on the removable storage icon that appears in Computer brings up the following msg: "Please insert a disk into drive H:" All my other USB drives that are non-U3 have no issues. There is a feature when you right click that says 'open as removable storage' but you cannot drag or drop anything into the folder that is opened. Anyone else having issues getting their U3 drives to function correctly The U3 software is not currently compatible with Windows Vista. As I understand it, they are working on an update which will add Vi ...Show All
Smart Device Development Proxy Connection
hi! i have some problem with the setup of proxy of my smartphone. i want to direct all the traffic of all my programs of my smartphone to a specific port of the smartphone. can i do it how can i setup a proxy connection to the same smartphone to a specific port (how can i setup the proxy to do this ) Not sure if this is possible. How would you identify the proxy with the name Not sure if localhost would work. Besides, you have to have a proxy server type program listening to a specific port on your smartphone. --Manav ...Show All
Visual Studio Team System What three improvements would you suggest for DBPro setup process?
1. Data Generation: To allow for "Test Data AS IS" to be Checked-In, Checked-Out, Shelved and Deployed- similar to Data Generation plans. Thanks, If you think about Data Compare and its ability to generate data diff scripts; and imagen you make this part of the build system, so you can generate a data diff script as part of the build; how much would that address your needs So you would keep the source data inside your project. During build we would compare this data with the target, the same way would do this for schema and generate diff script Deployment would execute the data diff script The result being that you have updated the information inside the table on the target ...Show All
SQL Server BI Portal connected to analysis services 2005
Anyone has connected the bi portal with analisys services 2005 I have a security problem. Thanks I did what you say, i save the excel as a web page, and the owc give me an error: "Can't process consult" "The following system error ocurred: . " I have the last owc... ...Show All
Visual Studio 2008 (Pre-release) Using X509 Certificate in WCF
Hi, I have created a Windows Service in Visualstudio 2005 and created a service host in the OnStart() method to run the service host created when the windows service is run. To run I created a setup project and configure it to install my service on the local machine but when I am running the service an error is generated and is written in the event viewer as : Cannot find the X.509 certificate using the following search criteria: StoreName 'TrustedPublisher', StoreLocation 'LocalMachine', FindType 'FindBySubjectName', FindValue 'ADIANCE08\Administrator'. The code written to host the service is as follows : try { NetTcpBinding binding = new NetTcpBinding(); binding.PortSharingEnabled = true; binding.Tra ...Show All
Smart Device Development Picturebox.BackColor problem
Hi, I need to display a picture/image in a picturebox and set pictureBox1.BackColor property to the same color as my Form BackColor but during runtime, the pictureBox displays my image with white background, not the color I set before. How could this happen Is there any bug like what happend to Label control If the image is squarish, the workaround is at least simple : just resize the pictureBox to fit image. But here the image is so abstract, I can't resize the pictureBox without showing the "not transparent" background during runtime. Anyone out there knows how to work around with this problem Thanks. Regards. The picturebox doesn't support any transparency. You can us ...Show All
