Vipul123's Q&A profile
Windows Forms How to add a user control from the current project to the toolbox?
Hi, I have a VS2005 project that contains a main windows form and various user controls that I want to place on the main form. How can I add the user controls to the toolbox The only examples I can find describe creating the user control as a separate project and adding it to the solution. You can then add the control by selecting its .dll. This doesn't work for me because both the main form and user control access a common interface. I then get multiply defined reference errors, presumably because the symbol is defined in the .dll and also in the main form project. I'd be very grateful for any help Phill Hi Alexey, Thanks for the reply, what do you mean by the 'assembly' The default ...Show All
SQL Server Automatic Printing of Reporting Services reports through subscriptions
To all the techies, We are trying to schedule the report for automatic printing using subscriptions. Does any one have any idea of how to achieve this Any inputs appreciated. AM You can take a look at the custom extention sample for Reporting Service. This extention allows you to deliver your subscription to a network printer known by the reporting server. The default location is: C:\Program Files\Microsoft SQL Server\90\Samples\Reporting Services\Extension Samples\PrinterDelivery Sample. ...Show All
Visual C# Static Methods And Thread Safety
could somebody please tell me, in the following static method, is it possible for a second thread to call the same method with a different input variable modway through, thereby screwing up the result thanks public static int GetString(int i) { // do some stuff with i. e.g. i = i + 100; i = i / 2 ... etc. return i; } In your example this is perfectly thread safe. Each thread in your application has its own stack, the int parameter passed into the function is a value type so it is created in each threads stack therefore two threads have different copies of this variable so will not affect eachother. You can have issues if your static method was accessing a static class fie ...Show All
Visual Studio Express Editions Programming a Virtual File System
Does anyone know to Program a virtual file system It is for game files Programming a Virtual File System all nice ideas, im looking to the Cryptography Namespace, does anyone know if file encoded in one program will be readable in another ...Show All
Visual Studio Express Editions Is it possible to compile .CP?
I am converting about some old CodeWarrior projects to Visual Express. For whatever reason, using a .cp extension for c++ files was the custom with Codewarror way back when. Is there any way to get Visual Express to recognize them as a .cpp file I don't want to have to rename everything and reorganize on the Mac side too. Thanks in Advance, Mark Well, I did add the files, but it doesn't seem to recognize .cp as a valid C/C++ extension. In codewarrior you could define extension/compiler associations. Is there a way to do this in Visual Studio 2005 Express ...Show All
Windows Forms Problems with file paths
Hi, i'm using visual studio 2005 to convert an application i originally developed as an asp.net 2.0 website to a windows form. I'm slowly getting the hang of it but one last problem i have is getting the path of files which are in a folder under my application. In asp.net i would simply create the folder and then use the Server.MapPath("~/Path/File.txt") to get the "File.txt" file in the "Path" Folder. I tried doing the same in my windows form but it did likt ie so i replace it with "Path\File.txt" but now when i run my application it doesn't like the path because it is looking for it under the debug folder. I know i could specify the full path but the path to the app my vary. I've not looked at d ...Show All
.NET Development Question on the 10038 Winsock Error
Hi there, I have a server that listens on a non-blocking server socket every now and then for an incoming connection. When there is one, I would process the incoming data and then close the socket using closesocket() . This happens approximately every 10 seconds ( i.e. the opening and closing of socket) After a while however, when the servers executes the accept function on that non-blocking server socket, it gets a Winsock error of 10038 . I read up that this is usually caused by too many sockets being opened and not closed. However, I do close every socket I open, so what could be the cause It appears your app may be closing or currupting the socket handle. 10038 means: Soc ...Show All
Visual Basic ToolTip control and DataGridView
I have a tooltip control on my form. The tool tip pops up great for all the other controls on the form except for the DataGridView control. Any idea what could be the problem Well, it works fine for me... So you've added a tooltip control to your form (lets say "ToolTip1"). And then you set the dynamic property on the datagridview: DataGridView1.ToolTip on ToolTip1 = "some text" And then you set DataGridView1.ShowCellToolTips = False And then when you run the program and mouse over the DataGridView and wait, no tooltip displays That sounds odd... Is there anything else going on when the DataGridView has a MouseOver or MouseEnter event Anything changing focus ...Show All
Visual Studio 2008 (Pre-release) Possible Solution / Workaround
I had this error when I tried to execute the db.SubmitChanges() command. Bad Key Member: 0: ItemNotaBO.CD_NOTA_FISCAL in [CD_NOTA_FISCAL]. I have these tables mapped. Note, these table do not represent a real world. They are part of the reference application. |---------------------------| |-----------------------| | TB_NARCH_ITEM_NOTA_FISCAL | | TB_NARCH_NOTA_FISCAL | |---------------------------| |-----------------------| |*CD_ITEM_NOTA | |*CD_NOTA_FISCAL | |CD_NOTA_FISCAL | (n)-------(1) |NM_NOTA_FISCAL_EMPRESA | |CD_PRODUTO | |NR_NOTA_FISCAL_VERSAO | |VL_ITEM_NOTA_PRECO_VENDA | |DT_EMISSAO_NF | |NR_I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing 2D primitives?
I already asked Derek this question, but as request- I'm reposting the question publicly so we all can learn anyway- the question is how to draw lines/2D primitives in XNA. essentially- how would i construct a series of lines from point a to b to c to d to etc... ive read solutions from back in beta1 here that stated its a very long/tedious amount of code compared to textures that take only about 3-4 lines to draw. i was wondering if by now they added somethign like the simplicity in Java where its just graphic.drawLine(x1, y1, x2, y2); and theres a line from (x1, y1) to (x2, y2) i checked the documentation and only found primitives in 3D what would be the closest in XNA ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where is the download?
It is 12:48 pm here (GMT + 1)... in Nuku'alofa (GMT + 13) it is tomorrow... So where the hell is my download link :-D EvilOneSD wrote: Hmmm... the holy grail is here on my desk. Btw... it's "tomorrow" now... What, you have one too :p It's been "tomorrow" here all day... heck, it's almost the day after here! ...Show All
Software Development for Windows Vista Defining workflow variables in XOML
I am currently evaluating WF for use in a custom sequencing application. One of the most attractive parts of this technology is XOML. The ability to define sequences as data, including conditionals, is very valuable. However... I think I'm finding a serious problem with XOML: it lacks the ability to define a workflow variable. I'm a noob, so please correct me if I'm wrong. Conditional activities ( ifelse, while, etc) run off rules, which can be defined in data space. Rules, however, can only reference variables that are compiled members of the workflow or activities. In other words, anyone using workflow conditionals will have to know how to write and compile code - a requirement that I probably won't be able to sell to my customers. So, h ...Show All
Software Development for Windows Vista How to use the DirectShow sample BitmapMixer over a live video stream instead of opening a video file?
I would like to draw a rectangle over a video stream in order to show a region of interest. How can i make BitmapMixer work on a live video stream instead of opening a AVI file I would like to make it work on the video panel of SampleGrabberNET. How can i edit the code sample( A little help would be great, does someone know how to do it Thanks a lot Lionel, There are a variety of ways to do this. If you are using DirectShowNet, there is discussion going on in their forum about using VMR for this. You might also take a look at DxLogo or DxText samples. ...Show All
Visual Studio Any way to prevent language service "undo grouping" editing actions?
Hello, The different language services in Visual Studio try to group distinct input events into undo groups. For example, if you type a space somewhere, move around the file, go back right after the just inserted space, and type another one, they will be "grouped". That means that when you try to undo, both typed characters will be 'undone' at once. I would like to prevent this from happening (the issue is a bit more complex, because I open LinkedUndo's around each of the actions, but the language service still groups them and leaves me with "empty shell" LinkedUndo's after the fact). I tried to open and close a CompoundAction both on the View and on the Buffer, but the language service is still able to ignore this. Is ...Show All
SQL Server Deploying reports to MOSS 2007
Hello, I wonder if anyone can help me save the few remaining hairs on my head I am trying to deploy reports created in SQL Server Business Intelligence Development Studio to SharePoint running SQL Server 2005 Reporting Services in SharePoint integrated mode. Whenever I try to deploy a report, the Reporting Services Login window pops up no matter which user/password I provide it won't accept any. I have the Reporting Services database set up to use Windows credentials and my Domain adminstrator account so I presume that this is user that I should be providing when prompted when deploying. Can anyone give me any clues Thanks, Michael Can you make sure you are using the upgraded Report Design ...Show All
