Kestutis's Q&A profile
.NET Development Changes made to multiple tables
Hello all, This may sound rather silly (a newbie question...), but is there a way to have more than one table in a dataset, and to have the dataAdapter updated afterwards with changes that were made to all tables If not (as I believe would be the case), what is the easiest way to go about this Am I obliged to create a dataAdapter & dataset for each table if I wish to minimize the usage of dataAdapter.update dataAdapter.fill methods (initializing/filling the Dset & Dadapter upon Form load, then having a certain point to update, instead of updating with every click event and the likes..) Hope this was coherent enough , thanks for any answer.. Here's what I've done- I've got one DataSet and one DataAdapter (da) with a select co ...Show All
Community Chat What language do you prefer?
Could someone please enlighten me as to what the advantages and disadvantages of the following languages are, in general: C# C++ Visual Basic Also: I read somewhere that C++ was much better for game programming than VB, but why VB is easier to learn and use, so what are the advantages of C++ People here sure talk down vb.net a lot here... ease of use isn't just for "new programmers" after all! I think a person's programming background greatly influences which .net language they prefer. I come from a Fortran and Basic background, so I favor vb. I think most people with a C background prefer C++ or C#. I think the differences are miniscule. That being said, whenever technology branches I always seem to ch ...Show All
Visual Basic numericupdown problem
How to make a numericupdown control to have the range between 10-2000 in step of 10...and 2000-9900 in step of 100 the code bellow worck's, but with one bug....for eg, if i have 2000 value....and i go down...he go on 1900 value...and i want 1990(if i go up again worck's fine) is posible to make that i search an event ho tell'me in witch way i'm click(up or down)...but i don't find...so, please help'me. tank's (p.s.:the value 1900 is correct...but the value 2010 is not correct....) Private Sub NumericUpDown1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NumericUpDown1.ValueChanged If NumericUpDown1.Value >= 2000 Then NumericUpDown1.Increment = 100 End If If NumericUpDown1.Value < 20 ...Show All
Visual Studio Tools for Office [Word] Runtime error on loading custom add-in
Hello, I have a problem with loading my own add-in after I deployed the setup and installed the add-in. When I run the add-in directly out of visual studio it all works fine. However when I generate the setup.exe and use it to install the add-in it won't display in Word. When I go to the COM-addins dialog in Word I can see that it is indeed installed. When I click on it, i see the message: "Not loaded. There was a runtime-error ...... ". My guesses are that it has to do with security or something. I already put the macro's security to the lowest level, and followed the directions on http://msdn2.microsoft.com/en-us/library/aa537179(office.11).aspx to add something for the security. I allready spent hours searching google for this ...Show All
Visual Basic problem of controls array in Visual Basic 2005
Hi: I wrote a project in vb6. That project contains controls array and I want to upgrade this project to vb2005 but I have some problems. In vb6: I have array of checkbox When the user check the checkbox It's index = I as integer then Create 3 elements in 3 arrays of combobox All this elements have the same index When I want to determine any combobox by the index of checkbox I will write code like this: For i = 0 To Check1.UBound If Check1(i).Value = vbChecked Then &nb ...Show All
Visual Studio Team System Sampling method of Performance Tool does not generate any report!?
After successfully tried using Sampling method of Performance tool on a small console application, I applied the same skill on a larger WinForm application. But this time the tool does not generate any report under the Reports folder. Is there any limitation on the tool Or any special configuration needs to be set Hey John, I was just scrubbing the forums when I noticed that your question had not been answered. After collecting data with the profiler it should always generate a report or give you a warning that no data was collected in the profiling run. I've never seen an example of it not doing one or the other. One thing to check is that in the session property page for the performance session yo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Windows Forms and DirectX
To use directx, you send it a winodw in the form of a control. Is there any other form type this will work with I want to have a windows form on one side, with a directx controlled draw space on the other. How would i go about doing this please Thanks, Mike I had a similar project that I was working on in C#. I wanted to be able to render to most of the screen, and have some different input and output options around it as a border. There were several methods that were suggested on various forums. The best way that I found to do it, with the least modifications to my code, was to keep rendering to the form as normal with my 3D engine, and then have that form be an object inside another, larger, form that i ...Show All
Visual C++ problem in retrieving "Time" from database using _RecordsetPtr
Here i am developing a application which require to fetch Time from database . But i am getting 00:00:00 AM as a time everytime. We are using MySql database. Code fragment is.... ======================================================== _variant_t vtValue; vtValue = RsSession->Fields->GetItem("StartTime")->GetValue(); COleDateTime d( vtValue ); sprintf( name, "%02d:%02d:%02d",d.GetHour(),d.GetMinute(),d.GetSecond() ); ======================================================== in "name" i am getting "00:00:00" ..everytime.. All the other values i am retrieving from ResultSetPtr are OK. Can any one tell me what is to be done ther .... Thanks in advance Why aren't you u ...Show All
Windows Forms Custom drawn combo box
I have a combo box which lists images to display in a medical program. I need to sort them in a custom order ( easy ) and show parts of the names in bold. As there is no hard and fast rule, I am doing this: Thorasic @Spine@ VD where the bit in @@ is bold. I have set up my combo box to draw the text in bold, but I can't figure out how to get the selected item textbox to also show the item in this format. Any suggestions will be met with great joy. ...Show All
SQL Server Is Installing SQL05dev and VS05pro on the same machine supported?
Hello, When SQL05dev is installed a SQL05 version of Visual Studio (SQL05-VS) is also installed (called the “SQL Server Business Intelligence Development Studio”). The SQL05-VS installs files into a “C:\Program Files\Microsoft SQL Server\90\Tools\binn\VSShell\Common7\IDE” directory (and other directories - not described here). When the full version VS05pro is installed it installs/uses files in a “C:\Program Files\Microsoft Visual Studio 8\Common7\IDE” directory. The number of files in these two directories is different – the directory for VS05pro has (of course) many many more files than the directory for SQL05-VS. On the surface this seems ok since the instal ...Show All
Visual C++ Is this ISO C++ conformant?
I wrote the following simple program and could build it happily. #include <stdio.h> #include <conio.h> int main() { int i; printf("Integer please>"); scanf_s("%d",&i); _getch(); } I have two questions about this code. First, is this code 100% ISO C++ conformat I could build this, with language extensions disalbed. Second, is the _getch() function always thread -safe Thank you very much. einaros wrote: I fear that you are chasing the wrong chicken, though. Whether or not a piece of code is 100% standard conformant (be it C or C++), doesn't necessarily mean that the code will be portable. Most compilers has their own quirks and problems. VC8 isn't 100% c ...Show All
Visual Studio beginner question how to find sample files
The help file says 1. In the document window, click the Download Sample button located at the top of the Sample Files list window. But I can't find a Download Sample button or figure out how to open a Sample Files list window. Any clues to help me get started Thanks Visual Studio 2005 Chas In my copy of the VIsual Studion MSDN, in the "Contents" panel, I've opened: +Developement Tools and Languages +Visual Studio +Visual C# +Visual C# Samples - Hello World Sample Then in the document panel, there is a list box of file names (Hello1.cs, hello2.cs etc), and above them to the right a link (not a button) with "Download Samples ...Show All
Visual C++ Problem using #import with ADODB in VS2005
I have a VS2003 project that I am migrating to VS2005. It currently compiles just fine under VS2003, but when I try to compile it under VS2005, I get a whole slew of C2327 errors. The root cause appears to be the different way that VS2005 handles nested classes. However, the code that the compiler is having a problem with is generated by VS itself as a result of a #import: #import "C:\Program Files\Common Files\System\ado\msado25.tlb" rename( "EOF" , "adoEOF" ) rename( "BOF" , "adoBOF" ) rename_namespace( "ADODB" ) An example of the error that I receive is: error C2327: 'ADODB::_ADO::Properties' : is not a type name, static, or enumerator Has anyone else encoun ...Show All
Visual Studio Express Editions Following item failed to download
Setup has stopped because the item listed above could not be downloaded... It dows that trying to install any Visual Studio Product. Reuomi wrote: I am having a similar issue with VC# express. The error I recieve is below. The following item failed to Download: Microsoft Visual C# 2005 express edition -ENU. I go through the trouble shootign page and it tells me my BITS Service isn't workign correctly so I go and set it to manual, try agian. nothing, then i try the last step to enable it's dependencies, and it doesn't seem to have any. Any ideas Reuomi, please check the logfiles in the %TEMP% folder. They will start with "dd_". You might be able to find a more precise error co ...Show All
Visual C# Making help files for MS Document Explorer
I remember there was a feature in VS 2003 that you could create HTML pages according to the comments you wrote in your codes, it seems that microsoft has omitted this feature in VS 2005.But i don't know if microsoft has replaced this feature with a beter one. By the way i wonder if you could tell me how can i create help documents of my program for Microsoft Document Explorer. Thanks in advance. take a look here A guide to MSDN Collection Integration hope this helps ...Show All
