lotofu's Q&A profile
Visual Basic How to halt a program???
Let say i have two program called program A and program B, i run program A, but inside program A, i use [call shell(C:\....\programB.exe)] at the 2nd line of my codes in program A, how do i stop program A at 2nd line, until i finished running program B then only continue execute the rest of the code from 2nd line in program A Please help, if you dun understand wat im saying above, u can ask ...thanks a lot!!! You can use Process.Start from process A to start process B. This method will return a new Process object. You can then call WaitForExit on the returned process object to block process A until process B is done. Best r ...Show All
SQL Server RS 2005: Excessively Long String error when printing
I have a VB.NET 2003 WinForms application that contains a browser control to render reports within. I have a SQL Server 2005 Reporting Services instance - and through the RS site, the reports come up great, and print just fine. However, when pulling in the reports through the WinForms application, when trying to print - I receive an error. A message box pops up that says "An error occured trying to get the current window." The next message is: Line: 26; Char:4; Error: Marshaler restriction: Excessively long string. Code: 0; URL: http://svr-sqlreport1/ReportServer$QA/Reserved.ReportViewerWebControl.axd ...Show All
Smart Device Development problems with WriteString and CStdioFile
Hi everybody, while I am using file.WriteString(); with CStdioFile there is an error nobody can explain in other forums and discussion boards: error C2039: 'WriteString' : is not a member of 'CStdioFile' c:\...\mfc\include\afx.h(1487) : see declaration of 'CStdioFile' I don't understand because every other things works well with CStdioFile (for example Open or CFile::modeWrite etc.). I want to write in a .txt-file and don't like things like the little squares (for \n) in the text files. Now I use file.Write(); but here I have these little squares I don't want. The program I use is: embedded Visual C++ 4 SP4 for pocket pc and m ...Show All
Microsoft ISV Community Center Forums Architecture - what it is and what it will be
As an initial discussion which can be helpful to all of us I would like to hear opinions of my colleagues regarding the basic question of just what is Architecture and what we would like it to be in the future. Regards, Behzad Architecture....according to me is a blue-print of a product. Caring less about the technology involved to convert the blue-print takes virtual form, all it does is dictates how the system should be implemented. -S ...Show All
Windows Forms TopMost window only to a certain window handle
Setting the TopMost property makes the window top of all window handles. How do I make the window topmost only for a particular window handle not all. Tried the following API BOOL SetWindowPos( HWND hWnd , HWND hWndInsertAfter , int X , int Y , int cx , int cy , UINT uFlags ); Still stays topmost for all windows. Didn't I just answer this on Codeproject :P Given that you're reporting your work via a Win32 function, I wonder if you meant to post this in a C++ forum ...Show All
.NET Development ADO.net
My Company has recently decided to develop an application in VB.Net. Almost all queries/ updates in the application use multiple tables. How should the updates to database be handled Is dataset.update really used in real applications Should I do the updates using executeNonquery Thanks in advance DataSet does not update anything by itself. There is another class SqlDataAdapter that does all staff. It has four type of the commands InsertCommand, UpdateCommand, DeleteCommand and SelectCommand. Fist three define which quesries or stored procedures to execute for each specific action in a case if new, updated or deleted row exi ...Show All
Windows Forms showing popup menu on a listview
Hi I have this code to show a context menu when i right click on a treeView, I want the same effect for the Listvew can anyone show me how...I want it so that when i right click on an item in the listview it comes up with menus Private m_rClickedNode As TreeNode Private Sub MyContextMenu_Popup(ByVal sender As System.Object, ByVal e As Sys ...Show All
SQL Server Do you regularly reboot your server?
I would like to know if you reboot your SQL Server on a regular basis and why... I do not regularly reboot our SQL Servers. They do get reboots when patches adn service packs are applied, but past that, I have found no need to reboot the servers. ...Show All
Visual FoxPro Select SQL Problem
I am trying to select records from a database to determine qualifying order over 3 rounds of competition. I *thought* I had it working but the results are not always correct. I need to find the lowest number in the field IQUARTER from a list of runs from many different entries listed by the field RACESESSIONS, but I need only the lowest for each contestant. If there is a tie then the highest Miles Per Hour from the field I1320MPH breaks the tie, if there is an additional tie then the first one is placed above the other, this is determined by the TIMESTAMP field. The structure of the database that matters is this: tim ...Show All
Software Development for Windows Vista Journaling hooks on Vista?
Along with a lot of other people, I've noticed that attempts to set the journalling hooks ( WH_JOURNALPLAYBACK, WH_JOURNALRECORD) get knocked back with access denied on CTP 5270. Is this down to the new Vista security policies I'm having the same issue and posted a message here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=201352&SiteID=1&mode=1 I posted that three months ago and as yet there has been no useful reply. ...Show All
SQL Server Create 1 connection to execute multiple Packages
I want to create 1 connection because I have to execute multiple packages (2005). But when I go into the execute package task editor, the dropdown only ever has "New Connection". Is this a bug "Why can't the EXECUTE PACKAGE task just use one of the connections available in the "connections managers" collection " It can, If all your execute package tasks are in the same package, yes, they can all use the same connection manager. Is this not working for you Whew, thats all i need, maybe its a bug - using June CTP. I create a new execute package task and then create a new connection for it. Then I c ...Show All
Visual Studio VS 2005 Integration with MSBuild
Let me ask the question and then provide some background... How much can we customize an initially VS 2005 generated .csproj msbuild project file without "breaking" the VS 2005 <-> MSBuild integration Background... Forgive me if this this overly general question has been answered elsewhere, but I didn't see anything. I have just recently begun investigations related to migrating our existing NAnt build scripts to MSBuild for when we move to .NET 2.0. In our current system, we ask developers to maintain the .csproj files and the nant build files. However, only the nant build files are really important. Our bu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Render into tabbed page
I'm looking for direction so that I can render into a tabbed page To do this you are going to have to learn to use directX inside user controls. Here are some links, Inner Realm - Managed DirectX in a User Control http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=136448&SiteID=1 Free Managed DirectX User Control http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=133462&SiteID=1 http://gosub.com/OpenSource/DirectXControl/DirectXControl.htm ...Show All
Windows Forms Creating another Form
Hi Gal! > Hi, I've been wondering how is it possible to create another form, and > later on activate it from within my main form. For example I want to > have my main form and when I click a certain button my second form is > activated. Furthermore, I want to collect data from that second form and > use it in my first form, for example, I want the analyse the string > entered in the second form using my main form. > P.S - I'm working with Visual Studio 2005, managed C++ (And I'm working > on a Windows Forms application) Just add a new Form (Project | Add...) and the implement this form. Be sure you have some public prop ...Show All
Visual Studio Express Editions Help Please on Visual Express Database Saving
I just recently downloaded visual basic express and i've found it to be a very powerful tool despite being free. I've been moving right along through the tutorial and ran into a simple problem..... I got to this page on the "How Do I" help training: "Adding or Modifying Your Records: Updating Data" I created a project and connected it to a database. When I run the form and "update" the database on the form(and save it) it doesnt save. When I reopen it, it has the original data and not what I added. Please, could someone give me some insight into what I'm doing wrong This is the code they provide to save ...Show All
