Software Development Network Logo
  • SQL Server
  • SharePoint Products
  • Microsoft ISV
  • Audio and Video
  • IE Development
  • Windows Vista
  • Visual FoxPro
  • .NET Development
  • Visual Basic
  • Smart Devicet
  • Visual Studio
  • Visual C#
  • Windows Forms
  • Visual C++
  • Game Technologies

Software Development Network >> Andrzej Martyna's Q&A profile

Andrzej Martyna

Member List

pinoyz
Banacek
Daniel Tomasini
softwarejaeger
woodland30033
SNAFU
thorlax402
gldnratio
Davids Learning
.neo
Jim J
Krutika
budbjames
seco
AndyL
John Shiangoli
Davids Learning
KarthikNarasimhan
Jeyaraj N
dzimmy
Only Title

Andrzej Martyna's Q&A profile

  • Visual FoxPro Printing Rich Text

    Hi, all Can anyone tell me if I cam print th content of a Rich Text Box In case I can't, is there any way to print formated text (i mean, with justification, italics, bolds, etc..) Thanks a lot I use OLE object to do that. I use a table with GENERAL field storing each 2 lines of the RTF source. And print it out like an IMAGE/PICTURE in the report. That job was finished 2 years ago. And it is now running on Fox 8. It is complicated. Including temp files, convertion programs, fields storing the source rtf, the plain text, and the image. Starting from this year, all the new project started to use HTML in most of the reports. so, I use the HTML format instead of RTF as the source text. ^O^ ...Show All

  • Visual Studio Express Editions Tutorial on adding dataset from access database programatically

    Hi, After moving over the 2005 Express I have always used the Add New Datasource wizard from VC#2005e to add datasets but I have run into some problems sometimes. Could someone please point me to a tutorial on how to add a dataset from an access database the good old fashioned way... programmatically Thanks ! Thanks and sorry for the basic questions. using System.Data.OleDb; I have added all your above code to declare and open the dataset globally, ie: after the public partial class parenthesis. I get all kinds of errors. it does not accept "=" for theOleDbCommand.Connection = new OleDbConnection(... it does not accept "this." in this .theDataAdapter ...Show All

  • Windows Forms Parent/Child form data exchange question

    i am unsure if my data exchange architecture is unsound, and would like some advice please. here's the situation: my main form has a button. if that button gets clicked then a dialog gets opened. this dialog in turn has a button. if that gets clicked then a further dialog gets opened. you still with me ok good. i have read that it is better to not reference properties within parent forms so that the child forms will not break with code changes, and are more reusable. fair enough. in my situation, all my 3 forms need access to a non static class (lets call it MyClass for convenience). at the moment, when the main form is initialising, i am instantiating an instance of MyClass. so if dialog1 gets opened then i am passing a ref ...Show All

  • Visual Studio Team System Turn off :setvar in .sql output

    Is there a way to build my database project such that the resulting .sql file does not contain the :setvar stuff I want a .sql file that is directly runnable in SSMS or from my own custom code. FYI https://forums.microsoft.com/MSDN/ShowPost.aspx PostID=862288&SiteID=1 -Jamie ...Show All

  • Visual Studio Express Editions Return object value from function

    Hi. I am trying to return an object from a function. I will able to return by using pointer. However, I would like to return by value. If fails. Here is the failing code: The class is given as follow: public ref class itemProperty { public: String^ Parent; String^ Code; public: itemProperty(); ~itemProperty(); }; itemProperty::itemProperty() { Parent = ""; Code = ""; } itemProperty::~itemProperty() { } itemProperty addItemProperty(void) { itemProperty tmpItem; tmpItem.Parent = this->txtBoxParent->Text; tmpItem.Code = this->txtBoxItemCode->Text; return tmpItem; ---> The Failure is pointed to here } It gives the following error while compiling: Error 1 error C2440: 'return' : ...Show All

  • Visual Studio 2008 (Pre-release) Access child elements inside an animation

    Hi, i do the following code inside a Styletrigger: < BeginStoryboard > < Storyboard > < DoubleAnimation To = " 360 " Storyboard.TargetProperty = " (Grid.Children)[0].(Image.Width) " Duration = " 0:0:1 " /> </ Storyboard > </ BeginStoryboard > which raises this exception at runtime: "Value cannot be null.Parameter name: dp" Does anyone knows how to avoid this give the Image in the grid a Name, set the Storyboard.TargetName to that Name and change Storyboard.TargetProperty on Doubleanimation  to Storyboard.TargetProperty="Width" ...Show All

  • Visual Studio Mixed-mode debugger hangs

    We have a quite large native C++ application with some parts in C++/CLI, and some GUI components written in C#. Recently, the mixed-mode debugger has become unusable for us because it hangs with a high CPU load as soon as the managed components are used. Visual Studio itself stays responsive, until I select 'break all' -- then VS itself also hangs, now without CPU load. During the high-CPU-load hang, VS uses ca. 59% of the CPU, our program (the debuggee) uses ca. 17%. The process explorer (from sysinternals) shows that VS uses CPU mainly in two threads which stay in ntoskrnl.exe. The number of objects marshalled also increases continuously. Here are typical call stacks for those two threads if I debug the devenv.exe and break execution: &g ...Show All

  • Visual Studio Express Editions Trouble populating a ComboBox with an Enum

    Okay VB Experts, I know that this should be very simple, but I can't find the solution. I have an Enum & want to populate a ComboBox with the Enum's members. Public Enum Stuff stuff0 stuff1 stuff2 End Enum ComboBox1.Items.AddRange(Stuff) The above code bombs, but I have successfully added each item in the enumeration individually. ComboBox1.Items.Add(Stuff.stuff0) ComboBox1.Items.Add(Stuff.stuff1) ComboBox1.Items.Add(Stuff.stuff2) There must be a way that .NET will allow me to iterate through the members without listing each one. Your assistance will be appreciated, thanks. Or you can simplify the loading in this way: ComboBox1.DataSource = System.Enum.GetValues(GetType(MyEnum)) Regards Kapalic ...Show All

  • Visual C++ Compiler Warning ""At least one of the arguments for ... can not be marshaled"

    Hi, I keep getting compilier warnings like this: Warning 12 At least one of the arguments for 'COWSplineCalc.CalcSpline' cannot be marshaled by the runtime marshaler. Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate. The warnings started after I moved the project to VS2005 running under Vista. I've found no documentation on the warning. Can I suppress it somehow Any input would be appreciated. Thanks. Mikhail The problem is that that warning doesn't have a number... I can not suppress it using pragma. Of course I can suppress all warnings, but it's a bad-bad idea. (sorry, in my message "12" was just the count number (I also ...Show All

  • SQL Server DrillThrough to Details.... Programming

    Hello, In the article on microsoft : http://msdn2.microsoft.com/en-us/library/aa175980(SQL.80).aspx It explains how to use ADOMD and ADODB to retreive detailed information for the cell returned from the analysis service. For example, detailed information (such as student ID, First name, last name.., etc) about the student that's in location Cincinnati. However, this example is quite old and doesn't apply to the new ADOMD.net (Microsoft.AnalysisServices.ADOMDClient). I tried to find any example on the web, but without success. Is there a way to retrieve underlying detailed information Any help is greatly appreciated. Thank you very much, Annie Finally, I found some resources online and w ...Show All

  • Visual Studio Express Editions Shutdown

    I am using this code in my applcation to shutdown my computer: Shell( "shutdown /s /t 0" ) I found that you cna change the message on the shutdown window by putting: c/"Message" but when i try this it doesn't shutdown. How can i incorporate it into the code Actually, given the opportunity to promulgate copious quotation marks, the urge to expediently respond using the initiators initial construct was overwhelming and obscured my customary observance of optimum style selection. Translation: Tall Dude got hack code, Spotty knows what he is doing. ...Show All

  • Visual Studio Express Editions Make Your Software Expire WITHOUT the Shareware Starter Kit

    Does anybody have some kind of code example to make the software expire after a certain amount of time and then have the user enter a registration code I have tried the Shareware Started Kit with no success. Does anybody else have another solution or option I would greatly appreciate it. Thanks. I found the code for the trial period: note that this code is for day trial only ( so the user can use the application for a specified amount of days) Before you use this code you should create a couple of settings in order for this code to run properly: time (Integer) = how many times system date has been changed = 1 laststart (DateTime) = application's last run date enabled (Boolean) = if application can run o ...Show All

  • SQL Server Identity

    Suppose we have a table with a column which has a property Is Identity set to true. Is any programmatic way ( for example, in stored procedure ) to change this property to false Hi, have a look at this article: http://www.eggheadcafe.com/community/aspnet/9/10005322/remove-the-identity-prope.aspx -- SvenC ...Show All

  • Visual Studio Whole Page Print Problem

    Hello to all I am haveing a problem related to printing of crystal reports. I am having a dot matrix printer in which i have put a A4 size paper.and i am printing a reports that takes only the half area to print matter of the A4 paper but printer scroll to the next page that i d't want. I want where the printing of matter finished then printer will stops at that point d't go to next page. Like the below displayed is my page ---------------------------------------------------------------------------------- | | | | ...Show All

  • Visual Studio Express Editions Saving text

    I'm trying to save text from a Rich Textbox to an external .txt file, but I don't know how, can somebody help me Thank you for your help, but I now found a other way for saving, but that's only with a apart screen, to Save as... And I've wrote a program to save it without the Save as... screen, but to the same path as the path from where I opened it, and saved it earlier. This is the code: Public Class Form1 Dim Saved As Boolean = False , NewFile As Boolean = True , path As String Private Sub Button_Save_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) _ Handles Button_Save.Click Save_File() End Sub Private Sub Button_Exit_Click( ByVal sender As System.Object, ...Show All

©2008 Software Development Network