justintime's Q&A profile
Visual Basic About RTC API example.
Hi. This is my question: Could I use the example for the RTC API (VB), for playing a file (wav, for example) during a PC-PC call How can I do it Thanks! Hi, Do you mean VB6 or vb.net Thank you, Bhanu. ...Show All
SQL Server report authentication: windows prompt removal
Hello, I'm writing a small program to access reports on a remote server. When simply accessing the server, using the reportviewer, I get a windows prompt for login. I would like to avoid this by passing the account information. How should I do this (Maybe through network credentials) Could someone send me some example code Thank you. Jose Well I want to access the reports through a small asp.net program. You may see the source code in http://www.odetocode.com/Articles/95.aspx When I access my reportserver ( http://sqlreport244_9.mysite4now.com/reportserver ) I get prompted for a windows login. What I would like to ...Show All
Visual Basic additional overloads for My.Computer.FileSystem.[DeleteFile|CopyFile|MoveFile|...] to handle a list of files
It would be very useful if the methods DeleteFile CopyFile MoveFile etc. of the My.Computer.FileSystem object would each have additional overloads to handle multible files at once. e.g. dim files() as String = { "foo.txt", "bar.txt" } My.Computer.FileSystem.DeleteFile(files, FileIO.UIOption.AllDialogs, FileIO.RecycleOption.SendToRecycleBin) I think, thats easy and fast to implement since I heard that these methodes are wrappers for SHFileOperation and SHFileOperation handles multible files. --Hannes I wrote a wrapper for SHFileOperation based on some samples I found on the web, but it's kind o ...Show All
Visual Basic CopyDirectory for VS.NET 2003
For those of us required by circumstances to remain in VS2003 for a while longer, are there any good references for code to copy a directory from one location to another. Thanks, Fred There is not a 'simple' way to do that in VB2003... This is a Sub found on the net used in a VB2003 application: ' Recursively copy all files and subdirectories from the specified source to the specified destination. Private Sub RecursiveCopyFiles( ByVal sourceDir As String , ByVal destDir As String , ByVal fRecursive As Boolean , ByVal overWrite As Boolean ) Dim i As Integer Dim posSep As Integ ...Show All
Windows Forms How can I do virtual mouse click?
Hi all, I have to do a virtual click on any position on window(I mean click by not use a mouse ). How can I do that in C# Thank a lot. You can simulate a mouse click by calling the mouse_event API. [System.Runtime.InteropServices.DllImport("user32.dll")] public static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo); public const int MOUSEEVENTF_LEFTDOWN = 0x02; public const int MOUSEEVENTF_LEFTUP = 0x04; public const int MOUSEEVENTF_RIGHTDOWN = 0x08; public const int MOUSEEVENTF_RIGHTUP = 0x10; public void MouseClick() { int x = 100; int y = 100; ...Show All
Visual Studio Express Editions Allow Only Text Input
What is the code to allow only text to be inputted into a text box Also what would be the could to only allow numeric values, and another to allow only dates (dd/mm/yyyy) Any help appreciated. Have a look below for the text box: http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.keypress.aspx and for the date try erither: MaskedTextBox, DateTimePicker control or the keypress event ...Show All
Visual Studio 2008 (Pre-release) Need Help finding Class Library documentation
I'm just getting started with WPF development. I've freshly installed VS 2005, and the February Windows SDK. Where is the documentation for the WPF classes For example, how do I find the description of the member functions in Window of the System.Windows namespace. I've searched the installed help and MSDN online to no avail. Check out the online SDK . HTH, Drew ...Show All
.NET Development Using RETURN_VALUE from stored procedure via SQLDataSource
I have a FormView that I'm using to insert new records. I'm using SQLDataSource to access an insertEmployee stored procedure. This sproc takes 2 parameters, empName varchar(50), empPhone varchar(25) and returns the the newly created record's primary key using scope_identity(). What I need to do is to capture the return value of this sp and then use it to display data about the newly created record. Records are being created correctly so I know the FormView control is wired up correctly. I have tried many approaches, including trying to add to the InsertParameters collection. I tried to add to the ItemInserting, ItemInserted, DataBindin ...Show All
Visual Studio Connecting to DB
Ok heres the run down guys. This is the final step in the program I have created so thanks to all that have helped me thus far. 1. Report was created in Crystal Reports XI, database connected fine through it yada yada yada all works fine. 2. Combined the Report into Visual Basic .net application (windows application not web) and have got everything to show up via CrystalReportViewer. 3. I have an ini file that has the path to the database in which the report should pull its data from (an access db) so I have created some coding (with the help of the vb people in the vb forum) code to read that ini file, pull the line that has the path to dat ...Show All
SQL Server Help with SUM
Take a look at the link below. Look at InHouse2. I want @InHouse1 in the InHouse2's query not to reference the whole sum like @InHouse1 currently is but rather the same fomula from InHouse1 based on the record level I'm not sure how to do this other than combine all the previous queries somehow in this select so that it only references individual records. InHouse2 = InHouse1 * commision % for each record. Here's my SQL : http://www.photopizzaz.biz/projfee.txt Firstly, your query can be rewritten as: Select SUM(@InHouse1 * CASE WHEN FeeSchedule = 0 THEN 1 WHEN FeeSchedule = 1 THEN FeeSchedule / 100 ...Show All
Visual Studio Tools for Office VSTO v3 on international VS 2005 editions?
Hi, has anybody installed the march CTP of VSTO v3 on a non english version of VS 2005 I installed the CTP but the project templates won't show up. I am using the German version of VS 2005 Pro, Windows XP Sp2, WinFX runtime etc. Regards, Peter Peter, Support for international versions is certainly beyond the scope of this CTP. We never even tested it, so your observations are actually not surprising - it can certainly be the case that none of it is working. The recommended path of using the v3 CTP right now is to install it over the English trial-version of VSTS, which is downloadable for free from MSDN. That ...Show All
Visual Studio Team System How to make Warehouse database auto-refresh?
Hi, I have called the Warehouse Web Service to kick off the refresh the data of Warehouse database, how can I cancel this action What I have done is below: Go to http://localhost:8080/Warehouse/warehousecontroller.asmx using a browser on the app tier. Click the ‘Run’ link. Press the ‘Invoke’ button. Thanks. We plan to offer a stop method. For now, you can run iisreset.exe (note that will bounce the server) Thanks ...Show All
Visual Basic Changing Font of Menu Items
In form1.resx, I have < data name ="MenuItem2.Modifiers" type ="System.CodeDom.MemberAttributes, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> < value > Assembly </ value > The text property is "User Manual". I have extra room on the form. Is there any way for me to increase the font size of the menu items Hi, I think this is a system property. You would change it in the system properties not in your code. Thus affecting all other programs. That is if you're using the menu provided in visual studio. If you want your menu to system dependent, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Render to texture
this is in response to another thread that I have in this forum. I am having problem of rendering to a texture. I have a texture that I populate by using lockRect and the usage is D3DPOOL_MANAGED. The problem is that I cannot populate this texture using lockRect and D3DPOOL_MANAGED but rather D3DPOOL_DEFAULT, which cannot be populated with lockRect. I have to use D3DPOOL_MANAGED inoder to use SetRenderTarget 1.Is there a way to populate the texture with D3DPOOL_DEFAULT 2. Can you give me an example of using the SetRenderTarget for render to texture Firstly, I did not see where the render target was set. in the onRe ...Show All
Visual Studio 2008 (Pre-release) Manage association from parent side
From what I have been able to ascertain so far, it appears that I have to manage an association from the child side. For example, in a Order/OrderDetail association, I have to have a back-link reference to the parent from the detail and I have to assign the Parent entity to this EntityRef. Is there any way to manage the association from the parent's collection so that all I have to do is add the child entity to the parent's collection and DLINQ will automatically add the foreign key for me Hope I'm missing something simple here. You can manage the association from the parent side collection. The EntitySet<> ...Show All
