VitCon's Q&A profile
Windows Forms how to work with jooming properties of the webcam
Hi, I am using a webcam 'CREATIVE' in my application(vb.net) to capture the photo graph. is there any way we can joom the image from the application,not touching the webcam. and i also want to know how to use the filtering in the images. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to create a custom-shaped sprite and apply a texture to it (2D)
Is there a way to create a non-rectangular sprite For example, by using VertexPositionNormalTexture Here's an example of what I'm aiming for: http://img148.imageshack.us/img148/4428/exhh0.jpg The reason why I couldn't just create a texture with transparency is because in my particular case there won't be any predefined shape, they will be changing dynamically. >> If you need to do this at runtime instead, then you'll need to set up a pixel shader that takes the two textures as inputs. That sounds interesting. Could you please explain this part in detail ...Show All
Software Development for Windows Vista Sample location needed
Folks, I apologize in advance if this has been asked and answered. I did some due dilligence on google and the local search engine and couldn't come up with anything 1. Anybody know where I can find an example of an application that loads a XOML-only file from disk, activates that workflow, and then runs it 2. Anybody know what a best practice is for having the workflow control the UI In other words, I want the workflow to tell my GUI which form should be displayed. I've come up with a couple of ways to do it, but I want the best way to do it - I'm thinking it would involve some event pub/sub, but I'd like to hear what you folks think. Thanks! Turns out the problem was pretty simple. I was using WorkflowConsoleApplication4.exe as my ...Show All
Visual C# XML socket problem?
Hi all, i know flash can create xmlsocket and send message to server. How to create Xml Socket and send Message to server with c#. Below is flash send message codeing. C# can do this Please sombody can give me good solution. //Flash send message codeing var msg_xml = new XML(); msg_xml.nodeName = "message"; var msg_node = msg_xml.createTextNode(input_txt.text); msg_xml.appendChild(msg_node); //send Message _root.socket.send(msg_xml.toString()+"\n"); //================================== Best Regards, Strange, somehow the . Replace got into that link. Thats it: http://msdn2.microsoft.com/en-us/library/w93yy28a.aspx Be aware the XML element names are case sensitive so use tap or Tap ...Show All
Windows Forms ClickOnce: two instances of application
Let’s consider the situation when MyApplication version 1 is installed on the computer and has been run. After that, user is going to the application site and downloading new version (2) of the MyApplication. At this point system has 2 started applications: version 1 and version 2. I don’t like this situation and would like version 2 to correctly shutdown version 1. Is there any functionality in ClickOnce which can help in this situation You need both Assembly Versions of the two apps the same in order for the new one to overwrite the old one. Ex. Go to the properties designer of the new and old project. Click Assembly Information... on the Assembly tab. Make sure the 2 versions of both projects are ...Show All
SQL Server Simple Workgroup (Like Access) use of SQL Express ??
Hi all, In the past if we wanted to provide an application with simple (multi-user) database facilities, we would use an Access mdb database which we could basically xcopy deploy to the client. Share the folder across the network and apart from the limitations of mdb databases it would work !!! With all the advancements in databases ! we have moved on to SQL Express - touted as the thing to use and the replacement for MSDE and MDB databases. But hang on a minute !! It doesn't work like that ! You can't deploy Express like we used to with MDB databases - the default Express database doesn't allow multi-access and if you can't xcopy deploy the Express database. The 'user Instance' thing is useless - basically every user gets their own ...Show All
.NET Development GetRequestStream() throwing SocketException
Hello, I am still very much a novice when it comes to .NET and programming in general so please excuse my naivete. I have a Windows Mobile 5.0 app written in Visual C# .NET CF 2.0 I had a very simple login program that would query a MySQL database on a server and return some info about the user logging in. This code was working fine a couple weeks ago, and I got sidetracked to another project. Well, today I went to do some more work and I noticed that I could no longer login. My database was accessible and my login info was correctly entered. So I did some debugging and noticed that a line of code I had was throwing a WebException: System.IO.Stream os = req.GetRequestStream(); Since WebException wouldn't give me many details I checked on t ...Show All
Visual Studio Tools for Office How to group the shapes within Excel Worksheet from VB.net ?
Suddenly stucked with simply question: How to group the shapes within Excel Worksheet from VB.net (2005) It's easy from within the EXCEL (VBA) - Set myDocument = Worksheets(1) With mydocument.Shapes .AddShape(msoShapeCan, 50, 10, 100, 200).Name = "shpOne" .AddShape(msoShapeCube, 150, 250, 100, 200).Name = "shpTwo" With .Range(Array("shpOne", "shpTwo")).Group .Fill.PresetTextured msoTextureBlueTissuePaper .Rotation = 45 .ZOrder msoSendToBack End With End With However it's appear to be impossible to use the same construction from VB.NET - array in this way is not supported. The idea is to create ShapeRange with several Shape(s),- but method like "Add" ...Show All
Software Development for Windows Vista Restart Manager TC 30
Our product has a waiver to be run always as administrator. When the product is run as administrator and RMTool (as normal user) sends a shutdown signal (-S) to the application no WM_QUERYENDSESSION message is recieved by the application. Instead a 10005 event message is sent. Is it possible to avoid this 10005 message, Machine restart is required Even when a normal user is sending the request BR, Daniel There is a security measure by design to prevent unelevated apps (in this case RMTool) from shutting down elevated apps. In other words RMTool should be ran elevated to test an elevated application, I have meet with the program manager on this issue. I'm senting an email on this issue to Logo ...Show All
Visual Studio Express Editions A little help with text files...
Hello, I need to know how to read multiple lines from a text file and and put them each into different comboboxes and also how do I put a text file into a list box and have each line as an option Thanks for your help Its just like this --------textfile------ beef flour water So just one or two words a line and I want to be able to show the whole text file in a list box, and have each line as an option. Also its the same for the combobox, i want each line from the textfile to be a option\ Sorry if I am not making it clear :) ...Show All
Visual C# mostly used algorithm
I am trying to become a better developer by learning some algorithms such as recursion. What are the other algorithms that are very useful in a typical crud web application I don't want to waste my time learning some thing just for the sake of academic. Please let me know. It would be ideal to work in a team where you can have your code reviewed by more experienced developers and solution architects. For the customer I work for we are with 3 Solution Architects for about 40 .NET developers. We receive code-change notifications that are queued waiting for a code review. We try to do this as often as possible per project (let's say each 2 to 3 days per project). Don't get me wrong it is not criticize the w ...Show All
Visual Studio Express Editions User Functions in seperate files
How do you get MessageBox support in a user defined function when the Function resides in a seperate .cs file It will only allow it when I make my function either part of a class or form. Thanks Right, I understand how to do a method of a class. What i want though is A simple Function that isn't tied to a class, In C++ you have Classes, and Functions, It seems that in C# all we have are class.Methods. I guess i need to change the way i view classes. I view classes as a Container, with methods to access the Private varables in the container. Where as in C# it seems to be a catch all. ...Show All
Smart Device Development RTC on windows mobile 5
is it possible to imoport rtc on windows mobile 5 will pInvoke be able to access its dll The answer depends on your needs. For the most fine-grain time measurement use QueryPerformanceCounters (P/Invoke). Environment.TickCount is easier but less precise ...Show All
.NET Development Convert string to SystemColor?
I have a string on database like this string stra= "System.drawing.Systemcolor.Red" (sorry if spelling not correct) And I try to make new Label lb=new Label(); and asigne lb.foreColor= new (SystemColors) stra; but it does not work , how can i correct this error because i want to store user's color setting into database so the next time the user uses my program has the color he chosed before. thank you for any reply DongMT You should not store enumeration names in the DB. This is a waste of space. Rather for colors you should store the raw RGB value (an integer). For red it'd be 0xFF0000. You then only need to convert your string to a number and then cast it to a color. lb.ForeColor = (Co ...Show All
SQL Server Attribute key cannot be found issue after migration
Hi Guys, I have migrated my cubes from 2000 to 2005. My cubes are getting processed fine (after fixing known issues) but it looks there is problem with table join with date dimension so lots of rows coming as not found. This is the error/warning I get while processing however cube is processing fine. Errors in the OLAP storage engine: The attribute key cannot be found: Table: <fact table>, Column: DT_ID, Value: 2005010208. Errors in the OLAP storage engine: The record was skipped because the attribute key was not found. Attribute: DT_ID of Dimension: Date from Database: Risk Reports, Cube: <cube name>, Measure Group: <name>, Partition: <name>, Record: 6. The error is very simple and I know what is happin ...Show All
