Cell_PT's Q&A profile
Windows Forms vs2002 deployment reboot and .NET framework
hello, I am new at deployment and know how to reboot a machine with code but not with the 'setup' project. How can I reboot machine after install. how can I include .NET framework in the install Thanks ahead of time! Even a link to a site with explaination would be extremely helpful. I find it interesting that there is no information on this. This seems like it would be a very common thing to do. I am not sure if setup and deployment is the same across vs2002-2005 but I would assume that this type of functionality would be a common practice. ...Show All
Software Development for Windows Vista Communication with external applications
Hello, I've been trying the hands-on labs and now I'm developing a simple workflow myself, but I don't really know how to communicate between an external application and the local workflow. I know that lab05 deals with a similar topic but I've found that the communication was only between a LOCAL application and the workflow but not with an external application. Now I'm trying to follow the expense reporting application in lab01 (resources folder) and I try to see how it communicates with the workflow. I've seen it uses .NET Remoting to create an instance of the remote class, but I don't get to understand well what it does because the same project has together the remoteservices class and the localservices class. Please can someon ...Show All
Visual Studio 2008 (Pre-release) How can I bind to member classes of a class
I want to encapsulate all the data binding, validation, conversion, etc. objects for a piece of data under a single class, then reference these child objects as needed in XAML. For Example: I can implement a collection like this *** public class MyModes : ObservableCollection<string> { public MyModes() { Add("Mode One"); Add("Mode Two"); } } And bind it to a combo box, like this <Grid.Resources> <ObjectDataProvider x:Key="Modes" ObjectType="{x:Type src:MyModes}"/> </Grid.Resources> .... ItemsSource="{Binding Source={StaticResource Modes}}" IsSynchronizedWithCurrentItem="true"> *** ...Show All
Windows Forms Expandable columns in DataGridView
Hi, I have to create a customized datagridview to enable the expandable columns. If anyone already worked out this, please help me on this. Thanks in advance, Natraj What do you mean by expandable columns ones that the user can resize if that is what you are looking for. in the designer add a DataGridView to you form and AllowUserToResizeColumns is true by default. ...Show All
Visual Studio Express Editions Messaging System
Hi This may ahve already been done but i just thought how effective it could be. Instead of using the winsock control in a chat program use a database stored on a server where messages are stored. When someone sends a message the name of the recipient is logged and a query would then check if the recipients name matches the one the sender specified. Each user would have a unque name. I know it would not be a very secure way of sending messages but it would still be quite simple. If it is possible to do this could someone help me with the query part (I would use an SQL database). It has most likely been done before. If you have looked at the connections open when you chat with some one using MSN/Live Messenger you will see that it ...Show All
Visual Studio Express Editions syntax code
to those of you who are familiar with the coding, could you write a simple code example so we can understand,give us simple syntax examples please of; deleete command accept changes command that way those of us who are beginners can read the syntax and get a better view of how it works. it will take me a bit of time to read and digest all that, i have tried to send you my project. as an extra, even when i use the binding navigater whih is soposed to delete and add as you go it doesnt, i can add a record but i cant delete one. that is strange. but let me take in all thiis stuff for now. many thanks ahmed ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multiple render targets and multisampling
Hi, I have this little problem you see. I want to render to multiple render targets (I'm going for Windows only. No xbox 360). Works fine and everyone is happy and the world is a pretty place. Until I turn on multisampling on my graphics device (PreferMultiSampling=true). Then I get nothing (or whatever was left in the video memory). If I only use one render target it works fine. Two, not so much. I have created the render targets using the same SurfaceFormat and multisampling as my device uses since I read somewhere that you can't have different multisample types on the rendertargets and the depthbuffer. Anyone got a clue on how to solve it In my case I can live without multisampling. I might even, at then end, decide it is ...Show All
Visual C# help in list box..
Hi.. I am creating a windows form using c#. i have 2 listbox controls. The first list box contains the available names. i want to select an item and list in the second list box using a button, select all the items from the first listbox and list in the second listbox using another button, similarly i should be able to move the selected item(single selection) which is in the second listbox to the first listbox using a buuton and likewise select the whole of the items in the second listbox and move it to the first listbox using a button. can anyone please help me with the code... please help Ok, I write all the code for you. //this event handler moves all the selected items from listbox1 t ...Show All
Visual C++ Project organization
I find myself against the wall. I am at a place where I have never gotten beyond because I do not understand the organization of projects. In the past I have done top-down programming. I've gotten fairly proficient with it, even though I have never gotten deep into the system with it. An example of the type of coding I am familiar with is here . While I can understand the concept of classes and objects, the organization of object-based projects throws me. As example, the app I'm writing. Using windows forms I created this project. It has 2 header files (Form1.h and stdafx.h) and 3 c++ files (AssemblyInfo.cpp, ProLite.cpp and stdafx.cpp). So far,all of the code generated by the designer is going into Form1.h. All of it. I know that I am ...Show All
Windows Forms Updating a specific row in Access database
Hi, I have another question regarding my database application. After my other question being answered here , I was able to populate a listbox with data from a column of an Access database. I now need to edit a specific item of the listbox and then update it in the database. The idea is the following: below the Listbox is a Textbox and a button labeled 'Update'. The user selects an item from the listbox and then writes something in the textbox below. When the Save button is pressed, the content of the textbox replace the value of that specific item in the database. How can this be achieved Or is there an easier way similar to what I have in mind And I don't have a DataSource associated with my project. (please refer to the code for ...Show All
.NET Development .Net app updater question
I want to use the app updater application in my program. The question I have is whether the files that are for updating can be on a FTP server. The application works when I use localhost on my machine. Thanks Matt Sure You put them on FTP Server when new update is available, Configure some webservice to check the version. Like From your running application call this webservice and tell it version of the current running application, Webservice checks if new version is availble and return true or false depending on Update Availble or not Then Use FTP to download the file! After Download is complete close the Current instance of application if running and run the Setup... or Application (New Ver ...Show All
Visual C++ URGENT!! MFC function call error
HI I am using MFC .net single document extending from CRichEditView class I want to call a function from my view class during startup of the program. I tried to call it from the constractor method of the view class but non statc function call error. sample code CMyView::CMyView()//constractor { ...... LoadText(); //error with this call ...... } void CMyView::LoadText() { CString str= "something" ; //my actual code reads something from txt file. CRichEditView::SetWindowText(str); } How can call LoadText() method during start up of my MFC single document GUI Tanx to Viorel. It works whith rhis .. void CMyView::OnInitialUpdate() ...Show All
Software Development for Windows Vista SetOutputFileName for GraphBuilder
Hello, SetOutputFileName is used for a CaptureGraphBuilder. What is the equivalent for a simple GraphBuilder Thank you, Christophe, ICaptureGraphBuilder is deprecated in favor of ICaptureGraphBuilder2. ICaptureGraphBuilder2 needs a call to SetFiltergraph() in order to know what GraphBuilder object to work with. SetOutputFileName automates the process of building the graph. However, you can always build the graph manually by using IFilterGraph::AddFilter to add the filters you prefer, and connecting the pins of the filters. ...Show All
Visual Studio Express Editions splitting a sentence into word per word in array with a twist...
Hi everyone this is my first post. I'm fairly new to programming. I can't find answer to my problem from the book I purchased on mastering VB express edition so I thought I'd ask here. and I have this; dim array() as string array(0) = "human hair found everywhere" array(1) = " I really love pringles" 'I can do this on the first element dim wordSplit() as string = split(array(0), " ") msgbox(wordSplit(1)) 'this would display "hair" msgbox(wordSplit(2)) 'this would display "found" 'the next is where the problem occurs 'how can I do the same thing to the second element 'I tried these but they won't work ' dim wordSplit() as string = split(array(1), " ") ...Show All
SQL Server How can one find out if two tables can be joinned dynamically
Hi All, Given a table, is there a way to programmatically find out what other tables and views it can be joinned with Essentially, given two tables, two views, or a table and a view, I want to be able to find out if they can be joinned. I was able to find related tables with sp_fkeys, but this does not work all the time, and does not work at all with views. I also played with the information_schema but got mixed up and confused quickly. Any help would be greatly appreciated. Can you explain what you are trying to do with joining tables dynamically What is the problem you are trying to solve It seems very complicated to me. You can use sp_fkeys or INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS or sys.f ...Show All
