tipCSharpy's Q&A profile
.NET Development how to create Download Accelerator
Hi Masters, Any one have idea how to create Download Accelerator in .net 2005, i have worked in vb6 there was a component "inet" which is capable to upload and download from the server. i am looking for this type of component in .net2005 any one have idea pls inform me Awating for reply.................... Thanks I am guessing that you are looking for more than just the ability to download a file, but want to be able to download multiple parts of the file at once. If that is the case WebRequest or HttpRequest (which extends WebRequest) would be your best bet for doing this sort of thing, otherwise for simply file gettings, WebClient can’t be beaten for it’s simplicity. ...Show All
SQL Server omitting null columns
Hey everyone, I haven't got any idea where to even start looking for a solution to this problem so any help would be appreciated. I'm trying to write a stored procedure that will return a table yet omit any columns that don't have anything written to them, so any columns that have no data will not be present in the table returned after the stored procedure. Thanks in advance. Menace is right: The dynamic SQL to accomplish what you want is pretty ugly. Here is an example of one way to do it: create table dbo.example ( column_01 integer, column_02 float, column_03 integer, column_04 varchar(30) ) go insert into example values (1, null, 2, 'This is a test.') insert into example values (2, null, null, ...Show All
Visual Studio Tools for Office Word Addin: Event for new Document object
I want to get event when new Document object is added into Application.Documents collection. I was looking for this event for a while and was unable to find it. I found Application.NewDocument event, but it's fired only if you click on New... button in Word (it isn't fired if you just run Word.exe). Am I missing something I know that in Oulook Addin there is an event ExplorersClass.New for new Explorer, but in Word there is no DocumentsClass class (only Documents interface and it doesn't have any events). Ok. But the problem with those events is that if I just open MS Word (by clicking on icon or launching word.exe) neither of those events are fired (even though new Document is created). The same p ...Show All
Visual C++ Functions in Seperate Files Problem
I am still new to c++ and am trying to create a function in a seperate .cpp file from the main program. these are the errors that i am getting (amoung other similiar ones): cross.obj : error LNK2005: "public: __thiscall vector::vector(double,double,double)" ( 0vector@@QAE@NNN@Z) already defined in comp_rot.obj cross.obj : error LNK2005: "public: class vector __thiscall vector::operator+(class vector)" ( Hvector@@QAE AV0@V0@@Z) already defined in comp_rot.obj cross.cpp is my function: #include "stdafx.h" #include "math.h" #include "vector.h" using namespace std; vector cross(vector v1, vector v2){ vector v3; v3.x = v1.y*v2.z-v1.z*v2.y; v3.y = v1. ...Show All
.NET Development XmlDeserialization string into bool
I created my C# class file from xsd.exe I have an xml file which I Have deserialized successfully. Now in the xml file I want's some nodes to be of boolean type.Same in the class file. My xml file is < xml version = " 1.0 " encoding = " utf-8 " > < Exporters > < Exporter > < ExporterName > FirstExporter </ ExporterName > < TransformationFileName > FirstExporter.xsl </ TransformationFileName > < IsEnabled > True </ IsEnabled > <!-- True || False --> < IsTransFormtionNeeded > True </ IsTransFormtionNeeded > <!-- True || False --> < CopyToFtpNetWorkLocal > F </ CopyToFtpNetWorkLocal > <!-- F f ...Show All
Visual Studio Tools for Office How to export data to Excel file effectively
I need to export a set of data , which may be stored in a DataTable object, to an Excel file as a report. Taking advantage of "Excel 11.0 object library", it is quite simple to do the job. But the interop between the managed code and the unmanaged COM component turns out to be too ineffective. I have to handle Excel.Range to insert data to the Excel cells. In order to improve the performance, I convert the data into an array, which can be inserted as a whole. The problem is: the display of the table gridlines should change according to the data, so I can not get rid of handling a large amount of Excel.Range objects. For instance, string[,] dataArray = LoadData(); Excel.Range range = _worksheet.get_range(" ...Show All
SQL Server CREATE XML SCHEMA COLLECTION ddl statement???
what's the purpose of defining a "relational schema name" in the CREATE XML SCHEMA COLLECTION ddl statement i don't understand why it's an option. All objects in SQL Server 2005 database distributed among schemas. Default schema is dbo. So when you create table "MyTable", its full name dbo.MyTable or Sales.MyTable etc. For more examples, please, see database AdventureWorks. XML SCHEMA COLLECTION also included into one of database schemas. ...Show All
Windows Forms Glass effects with .net
Well, this is really a comment and a question: I posted a sample on .net (windows forms) and glass using the Dwm functions to do frame extend, sheet of glass, full client blur, arbitrary client blur - on my blog ( http://philiprieck.com/blog/archive/2006/07/21/GlassForm.aspx ) Just one problem: Anyone know of a fix for the "must paint black over glass" limitation that doesn't resort to using a WS_LAYERED (aka transparency key) window Painting black isn't really a problem - it's putting winforms controls on top of it - the background and foreground gets all messed up. Any help would be appreciated. Thanks, Philip That certainly seems to be true - hopefully GDI+ is better - but it l ...Show All
Windows Forms want to share the same instance of a user control on separate tab pages of a tabcontrol.
i have a c# user control being used on a tab page within a tab control in a vb.net winforms project public class SplitterViewControl : System.Windows.Forms. UserControl { Is there a way to reuse the same instance of that control on each separate tab page If I drag the usercontrol onto each separate tab page, I get what I would expect. SplitterViewControl2 then SplitterViewControl3. How could I access the SplitterControl1 from across the tab pages I hope the question makes sense. Thanks, -Greg What do you mean by "reuse the same instance of that control on each separate tab page" As long as the SplitterControl1 is in your namespace, you can simply access it direc ...Show All
Visual Studio 2008 (Pre-release) I can see https site but not able to download by svcutil
Hello. Well, a couple of days ago, I put a post concerning this sample. . Since Vista was released, I'm using IIS7. (over http, I've been running the samples successfully)And I'm trying WCFSamples\TechnologySamples\Basic\Binding\WS\TransportSecurity sample. Before I just couldn't get to see the page that had https. Now I can access it by IE. But it always says that there's certification error. I don't know why cause I used the setup.bat that came with it. Anyway, I think because of it, when I try the following command svcutil https://localhost/servicemodelsamples/service.svc , I cannot download the metadata because of the certification error. Is there any solution to this How can I make this certification error disappear ...Show All
Visual Studio Express Editions Problem with building tutorial
I installed DirectX 9.0 SDK(June 2006).I opened Saple DirectX Browser and installed Tutorial00 in my projects folder.I opened the project with Visual C++ 2005 Express and tried to build the project.The compiler started to build it but it suddenly stopped with showing 0 errors,0 warnings...And the compiler doesn't want to continue building...I get this problem every tim I try to build tutorial...Please help me! I searched in Google images for "Visual C++ Express New project" and I found the same templates as mine.Take a look: http://arb.developpez.com/vc++/express/images/new-project.png http://arb.developpez.com/vc++/express/images/new-project-win32-cpp.png http://arb.developpez.com/vc++/express/images/win32-cpp-wizard.png Is it neces ...Show All
Visual C++ Arrays of Strings
Hi folks, I'm writing a .NET Winforms project in Managed C++ using Visual Studio 2003 and I'm wondering how I go about having multi-dimensional arrays for String objects I'm vaguely aware of the Array Class, but I'm not sure if this needs to be part of my solution. I've tried a few experiments using the classic C++ method of creating multidimensional arrays, but (of course) this does not work owing to the managed restrictions of the language. In any case, I just need a little direction here - do I need the Array class or is the syntax for this a bit different than what you might expect -Zero In VS2003 you need something like this (tested in VS2005 with /clr:oldSyntax because I don't have VS2003 ...Show All
Visual Studio Team System Problems with fiddler 2-HTTPs
On selecting capture traffic in fiddler 2 and loading my page displays an message such as "Certificate generation failed for (my website address)" and this popup message is displayed on navigating to all the pages on my application and the traffic is recorded just as in the previous version even for https and nothing is getting displayed when saved as an webtest.All my websites are using only https.Please help Thanks in advance ...Show All
Visual Basic Accessing images stored in Access database with VB.NET 2003
Hi, I am developping an employee management application with VB. I used an Access database to store employee information and the pictures. However I have a difficulty at displaying employee images. I have found some code to add images and display them on the form. The code, first reads the image stored in database (in binary form) then writes in a temp file and then uses a picturebox to display the image on the form. Code is working fine but when I try to add a picture for an employee and then try to change (another add operation) the employee's picture right after addition, program crashes because the temp file is already in use. Can you suggest any other way to get arround this problem I dont want to use databinding for t ...Show All
Visual C++ Linked list and pointers
HI, I want to create multiple linked lists. I want to keep the starting pointer of these linked lists in a 2D array. I am using the following code for adding nodes. It does not work out as I require. I am just wondering if I am working the right way with the pointers: struct PeelerNode{ float zLoc; // some other stuff here as well struct PeelerNode *next; }; typedef struct PeelerNode *PNPT; class PeelList{ private : PNPT imageBase[500][500]; public : PeelList ( int dummy){ for ( int y=0;y<500;y++){ & ...Show All
