Toshipenguin's Q&A profile
Windows Forms displaymember lookup on other table
Hi, I have a dataset with 2 tables Table 1: ID_TABLE1 field DESC field. Table 2: ID_TABLE2 field, ID_TABLE1, ... others fields My question: I have a listbox and I want to add data in Table 2. Value are all added correctly but I want to display the DESC of Table 1 (by the way of a relation between ID_TABLE1 ) How I can do that Thank very much... How about this Dim strConnection As String = "Provider=microsoft.jet.oledb.4.0;data source= **DB Path** " Dim conn As OleDb.OleDbConnection = New OleDb.OleDbConnection(strConnection) Dim strSelect As String = "select table1.ID_TABLE1 as table1_id, table1.DESC, table2.ID_TABLE2, table2.other" _ & " ...Show All
Visual Studio Team System How can I tell how many times my web test ran within the load test?
Hi, This might be a very silly question, but how do I find out how many times the web test ran during my load test I have a load test that runs just a single web test. I need to measure some performance data for this test. So, the result data I get back is graphed with regards to the time. However, I was asked to tell how the performance changes with regards to how many times my web test was called and I can't find any way to do that. Does anyone have any ideas Thank you in advance. When you run a web test through web test editor, think time is not used (by deafult). When you run the web test in a load test, think time is turned on by default. Read the short article http://msdn2.micr ...Show All
Software Development for Windows Vista capturing audio from various devices using Directshow
hi, i want to record the audio, from various sources, i have started coding by seeing the msdn help, i am getting the problems for creating the filters like CLSID_FileWriter. And there is no class id like the CLSID_WavDest which is written in msdn help at http://msdn.microsoft.com/archive/default.asp url=/archive/en-us/directx9_c_Summer_03/directX/htm/creatinganaudiocapturegraph.asp does any body have refernce code for capturing of audio. thanks in advance I need to know about the same issue that happend to you thats about CLSID_WavDest. How you overcome this for Wav file Please help me..... Thanks in advance ...Show All
Visual Studio Express Editions Joining code
Is it possible to make a program with joined code (Like joining a little bit of VB and a little C#) Not in the same class or in the same project ... However you can have a VB project and a C# project in the same solution ...Show All
Visual Studio Express Editions ActivX
<h1>Can anyone tell me how to make an activex control in Visual Basic without the template </h> You can make a windows control with creating a class library project and having the class inherit from usercontrol. There is an example control on the vb-tips website . ...Show All
Windows Forms Problems with stdole.dll
Hi, I made an application and use the MapPoint ActiveX Control. When I start the app I check for the presence of MapPoint and if it is there it shows a map. This all works fine. But now I tried to deplay the app to a clean machine. XP SP2 / .NET CF 2.0 (downloaded dotnetfx.exe) are on the machine. The app deployed fine on the machin until I added tha ActiveX Control. Now after some installation work it brings a MessageBox: System Update Required Unable to install or run this application This application requires your system to be updated to stdole Version 7.0.3300.0 I tried to include the dll in the project - that does not help. Is there a way to make this run with click once Cheers Manfred Thanks for the ...Show All
Visual Studio Tools for Office document close event.
Hello, I want to use the close event of document object but the thing is that it is still fired even when the user clicks on the close button but then chooses cancel when the prompt is displayed. The microsoft.office.tools.document class has shutdown event that I'd like to use but it is not possible to use this class from another application. What can I do should I create a component using VSTO and then use it from my app If yes how I want to open a word file from my application and then detect when it is closed. Also, the document class has got many collections like these: tables,words,paragraphs,etc. Is it possible to store all these collections in other files or in sql table and then assemble the word document using them Thanks ...Show All
Windows Forms Printing Windows Forms
I'm having trouble centering my printed windows form on the paper. I can change the paper orientation from portrait to landscape with no problem but can't seem to get it to center to the page - it always wants to print off the the lower right. I've got my margins (left/right/top) set to 0 but change. This is a VB.NET 2003 app and the print command comes from the menu of the mdi for the app. Any help would be appreciated. For your consideration: Private WithEvents pd As Printing.PrintDocument (this is from within the mdi_Load) pd = New Printing.PrintDocument pd.DefaultPageSettings.Landscape = True pd.DefaultPageSettings.Margins.Left = 0 pd.DefaultPageSettings.Margins.Right = 0 pd.DefaultPageSettings.Margins ...Show All
Internet Explorer Development MSJVM patch for DST?
Hi, We're currently in an XP (pre-SP2) environment and I'm trying to find any information about the MSJVM and the upcoming DST change... I was under the assumption that the MSJVM pulls the date-time information from the underlying Windows OS, thus a specific DST patch for the MSJVM is not needed. Is my assumption correct Do we only need to worry about applying the DST patch to Windows itself thanks! This is probably just me being ignorant, but didn't Microsoft stop developing the MS Java 5 years ago ...Show All
Software Development for Windows Vista What is the rationale behind not having a static method to retrieve the current workflowruntime instance?
After doing quite some work with windows workflow I am starting to feel that there is one thing that is coming back every time you work with the WF runtime and that is getting the current running instance of the WFruntime. What I just can’t grasp is why there is no static method on the workflowruntime class to retrieve the running instance. (or by name if you have multiple instances running) In every sample you look you see that not having this method makes the developers suffer and you need to make assumptions that are not always true. e.g. take a look, at the WebServiceInput activity and try to use it without the generated configuration when you publish the service. (name the configuration something else then “workflowRuntime”!) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help Please, kinda alot of questions in here
Hi, im a complete beginner with any kind of coding and i want to make a simple game to start learning how to code. I'm very fluent in 3ds max and want to put some use to the models i've made and put them in my own game... I want to make a simple space ship flight game. I've done the 3 tutorials for moving models but I dont really know how to apply them to my own game. heres mainly what i want; 1. I want the camera to rotate around my model using the right thumb stick. 2. the gun on top of the ship to rotate with the camera view. (when you look up and down the guns would aim up and down etc.) I have bones going through the gun on the model. 3. want to press up or down on the d-pad to toggle 3 different speeds. 4. steer the ship with the lef ...Show All
.NET Development TableAdapter Update problem
Hello, i have problem in my application. I create dataset with single table. In MainForm i have 2 texboxes and update button. This is code for update button: [CODE] Klient klient = new Klient(); klient.ShowDialog(); KlientDataSet dataSet = new KlientDataSet(); Serwis.KlientDataSet.KlienciRow klientRow = dataSet.Klienci.NewKlienciRow(); klientRow[0] = Guid.NewGuid(); klientRow[1] = klient.Imie; klientRow[2] = klient.Nazwisko; dataSet.Klienci.AddKlienciRow( klientRow ); int result = this.klienciTableAdapter1.Update( dataSet.Klienci ); [/CODE] I got 1 in result variable so i think that database was updated. No my database was not updated. I add another form to my app with droped table from tolbox. VS created ...Show All
SQL Server DeriveParameters throws when called against a C# function?
When I call DeriveParameters against a function written in SQLCLR function it throws an exception. I've been working on this a little while and haven't found a fix. I understand that I could write additional code to do the same work DeriveParameters does, but it seems like this should work. This is the exception thrown: [InvalidOperationException: The stored procedure 'GSI.Utils.IsMatch' doesn't exist.] The function is defined as CREATE FUNCTION [Utils].[IsMatch](@Value [nvarchar](4000), @RegularExpression [nvarchar](4000)) RETURNS [bit] WITH EXECUTE AS CALLER AS EXTERNAL NAME [RegularExpressionsHelper].[UserDefinedFunctions].[IsMatch] The C# function is defined as: [Microsoft.SqlServer.Server.SqlFunction(IsDeter ...Show All
Windows Forms Windows MessageBox: limit to number of lines?
Is there a limit to the number of lines that will show up on a single Message Box that is created from a call to the MessageBox() function If so, what is that limit, and what is the behavior if the limit is exceeded I think there is no limit until the limit of a string has been reached ... the problem being is the display where the messagebox will go off the screen if you try to fill it with loads of lines. How many lines are you thinking about displaying On a side note, remember MessageBox's are just for user notification purposes :-) ...Show All
Visual Basic Class not registered
I just transferred an app from one computer to another and upgraded from VS 2002 to VS 2005. After doing this, I'm getting several errors, the most common one being: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). The error occurs on the line that says InitializeComponent() at the end of the region "Window Form Designer generated code" for one of my forms. I looked at my classes in the Class View window, and they appear the same as those on my other machine w/ VS 2002. What do I need to do to register this class My guess is that there is some ActiveX which was supported with VS2002 and now is no longer. Maybe you find and replace just that single one, so that you ...Show All
