Software Development Network Logo
  • Visual C#
  • Windows Live
  • Windows Vista
  • SQL Server
  • Visual C++
  • Visual Studio
  • Visual FoxPro
  • .NET Development
  • VS Team System
  • Visual Basic
  • Microsoft ISV
  • Smart Device
  • Visual J#
  • Windows Forms
  • Architecture

Software Development Network >> Polishchuk Maxim's Q&A profile

Polishchuk Maxim

Member List

JP#
Sranger
NewHacker
DanaDBA
Sugar
hawkpie
durga prasad p.v.
raj416
Asok Babu
Waldo A. Flores
Derrick_Jacobs
StephenWong
bmkiss67
ormico
re10
BenDuvenage
dfeng
tps100
Broomy
Fábio
Only Title

Polishchuk Maxim's Q&A profile

  • Visual Studio Express Editions C# and Sql Server Express Edition, Using Visual C# Express Edition

    Hello! Doing some C# and trying to access my db. Following a book from Wrox: 'Wrox's SQL Server 2005 Express Edition Starter Kit' - they use VB - there is my problem. How would I translate the following to C# Dim PKvalue As String = FilterInput.Text; // Filterinput ar en textbox DIM Rowlocated AS DataRow = Me.MyDBDataSet.Person.Rows.Find(CType(PKvalue,Integer)) If Not ( RowLocated Is Nothing) Then MessageBox.Show(CType(Rowlocated(1),String)) Else MessageBox.Show(PKvalue & " record not located" ) End if I tried out the Converter from VB to C# : http://www.developerfusion.co.uk/Utilities/convertvbtocsharp.aspx But that di ...Show All

  • Visual C# How to tell if Windows or Web GUI called library

    Is there a system property/method that I can call from within my c# library assembly to tell if it is being called by a windows or asp.net .net program p.s. I have found one way, and that is to put a try catch around a ::global or a webconfiguration call, but I am guessing that this adds overhead. Evan Smith I assume you don't want to clutter up your methods with another parameter (the connectionstring). What you can do then is to make your own repository for the connectionstring inside your DAL. Expose a method for setting the string from the Web or the Windows application. The repository the ...Show All

  • Windows Forms Setup Error - Failed to load resources from resource file.

    I am getting following error at random places in my application. "Setup error - Failed to load resources from resource file. Please check your Setup" Application closes if I click on OK button on the message box. Also, it does not happen on development machine, it only happens on client PCs. The client PCs has .NET Framework 1.1 Please help me. If you have a solution or recommendation then please reply. Regards, bmgohil A lot of people seem to have had this problem in different contexts, and the most frequently diagnosed cause seems to be stack overflow (although mostly it seems people never find a solu ...Show All

  • Visual C# Properties Question

    I have a C# Class but I am not sure how to do something, I am also working with ClassDiagram's so if it can be done there instead of code let me know how. this relates to shipping orders Class: ShipBoxes Properties: //First Package: PieceNum PackageWeight PackageCOD PackageDVal //second package PieceNum2 PackageWeight2 PackageCOD2 PackageDVal2 Is there a way to only have one set of properties then just add a second set of the same Properties Instead of adding a "2" or "3" etc Soi can have unlimited number of packages if needed I hope this makes sence. Tdar ...Show All

  • Windows Forms Aligning Header Text

    Is there a way to align the header text in a datagrid with a different alignment than the columns themselves Thanks! Unfortunately the grid uses the alignment set on the data grid column style to paint the column header. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Transformation of a single object

    Hi! I just started learning directx and here is the first of probably many newbie questions. Please, be patient :) How can i transform a single object I used Sample Framwork to load a "tiny.x" mesh and created simple triangle. I can rotate them together (by rotating the whole world) but how can i transform only one object I've got also small problem with my "tiny.x" mesh. It's not so tiny after all :) If i move my camera, so i can see the whole mesh and rotate the mesh (or move camera too far away) it disappears. Does it have something to do with my projection parameters Can i scale down this mesh after loading it (so do it only on ...Show All

  • Visual FoxPro editbox programmatic change

    I am looking for an easy way to determine if I've made interactive change in an editor box. The issue is that there are about 16 controls on a container, they are initialized from a table record thus their values at activate time generally are not trivial default. I have to save the changes with a SAVE button if I made any but I want this button's click method to quickly determine which control values have been changed. I do not want to do REPLACE for the fields with values that haven't been changed. In case of simple controls like a combobox I can store the initial value in Tag property and do the comparison programmatically. Sometimes t ...Show All

  • Windows Forms Hide the properties of a parent class ?

    Hi, I've got a class which inherit from TreeNode. In this derived class, I provide a few properties to show in a propertygrid. But it also displays the properties of TreeNode. And I'd like to avoid that. Is it possible And if so, how (any link to tutorial, documentation or help is welcomed ^^) Give a new implementation of the propery by using the new keyword and then say [Browsable(false)] ...Show All

  • Windows Forms is there a richtextbox which behaves likes textarea control in html

    hi all i m tryin to make a messenger application using vb.net the problem i m facing is ... i have two rich text boxes one i will type the messgae and another one in which i will display the message along with the user name who send the message... i want to make the user name bold ... so is there any rich text box in vb.net which&nb ...Show All

  • Visual C# Nunit

    Hi all, i want to ask about Nunit. Is there anyone there in this forum use Nunit and does it make a significant improvement to c# codes What about Exception Handling What is the difference between Nunit and Exception Handling Thanks :D This is pretty handy for quickly getting your feet wet (hence the name "quick start" <g>) http://www.nunit.org/index.php p=quickStart&r=2.2.7 If you're going more for a complete book, my favorite is "Test Driven Development" by Kent Beck ...Show All

  • Visual Studio can i assign diffrent label to an item?

    in the source safe help,it say: --------------------------------- If you assign a label to a version that already has a label, or if you assign a label to an item that already uses that label for a different version, the old label is replaced. In either case, VSS issues a warning before replacing the old label. --------------------------------- but,if i want to assign diffrent label for diffrent version to an item,can i do that if can,how can i do If you want to avoid the dialog use the -I-Y option, but make sure you test your command lines first.  The -I- will apply to ALL the possible dialog queries. ...Show All

  • SQL Server Management Studio: Error opening read-only SQL Template

    We have custom SQL boiler plate templates for our dev group. We store in a version control library. When we open one of the templates from SSMS, we get the error below. The template still opens and we can work and save as something else, which is what we want. However, this exception is thrown everytime. It is a nuisance. Is this a bug that will be fixed TITLE: Microsoft SQL Server Management Studio ------------------------------ Failed to open template. (AppIDPackage) ------------------------------ ADDITIONAL INFORMATION: Failed to open C:\Documents and Settings\MyUser\Application Data\Microsoft\Microsoft SQL Server\90\T ...Show All

  • Visual C# Speed comparison: Filestream.Seek vs. StreamReader

    What's the fastest way to access the contents of 300,000 variable length "records" in an asynchronous manner  A "record" is a text file approximately 20KB long. Here are some possibilities that I've considered: 1. Store each record as a file & store the file path location (ie: C:\test.txt) of the record. Use the StreamReader class (and File location ability of Windows Operating System) to locate, open, and read the file. 2. Combine all records into 1 file & store the record's location in the file (ie: byte 240 of 240000) and record length. Use the Filestream.Seek method to locate the starting file position and ...Show All

  • SQL Server Update column with 8 digit random number

    How can I replace a field for each row in my table with a Randomly generated 8 number value The field is of type int that I'm updating Hi, try this here: SELECT RIGHT(REPLICATE('0',8) + CONVERT(VARCHAR(100),CAST(RAND() * 100000000 AS INT)),8) HTH, Jens Suessmeyer. ...Show All

  • Visual Basic Best method for exporting a DataGridView to Excel

    I have a datagridview(DGV) which contains data based on a user selections from a pre-defined dataset In point form: User starts program program builds datatable user opens file and program read all data from file into the dataset.datatable user defines the data they want to see program displays datagrid based on dataset.datatable and user choices. (basically it displays the whole dataset and removes unwanted columns\records) I want to be able to export the datagrid to excel (not sure which method yet). I have tried the excelexporter component i found somewhere on the msdn forums (it exports the data to look exactly like ...Show All

©2008 Software Development Network