Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

mistery22

@mistery22
About
Posts
13
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DayOfWeek in other languages?
    M mistery22

    I found it by myself :) It seems that .DayOfWeek only returns the english name. When you use to formatted string DateTime.Now.ToString("dddd") it returns the day with the name in the language from the windows settings (not the windows language itsels). To force it to another language you can use. System.Globalization.CultureInfo ci = new CultureInfo("fr-BE"); DateTime.Now.ToString("dddd", ci) And it will return the day of the week in the language specified in the CultureInfo. :cool: So I was right to suppose a switch structure was not he .Net way.

    C# csharp question

  • New #dev....again [edit]
    M mistery22

    About what product is this thread? Any link? :-D

    C# com linux tools question

  • Converting a 20-page pdf to 20 single page pdf?
    M mistery22

    Visit http://cete.net/Products/[^] Not freeware but they have a pdf_merge module...

    C# tutorial question

  • print page number
    M mistery22

    I wrote an app where I could track the page number on a very easy way. Declare for the full app private int page = 1; At the end (last line) of your printDocument_PrintPage class add ++page in your PaintDocument class just use this.page The PaintDocument class is called from the printDocument_PrintPage class just to split up the drawing of the page in another class.

    C# question

  • DayOfWeek in other languages?
    M mistery22

    Hi, I was trying to make a language selection of the Day-name. When I get the date with DateTime.Now.DayOfWeek, is there a posibility in System.Globalization to return the name of a day in another language then the Windows language? Writing a switch case doesn't seems me to be the .NET way :). System.DateTime myDate = System.DateTime.Now; System.Globalization.CultureInfo ci = new CultureInfo("nl-BE"); myDate.DayOfWeek.ToString(ci); above code still returns the English Name, not the Dutch name. Thanks,

    C# csharp question

  • Generating a unique serial
    M mistery22

    I'm working on the harddisk serial number. So when an application is installed, it returns a code... The user has to call to get the serial to enter with that code. Afterwards the program encrypts the harddisk serial number into a file. And compares it when the app is launched. When the user re-installs the pc, he has only the replace the file. When I get trough this, I will post it here ;)

    C# csharp hardware tutorial

  • printer minimum margins
    M mistery22

    Hi, I was experimenting on the printing functions and found out you can get a lot of information about a printer trough System.Drawing.Printing.PrinterSettings. But I'm missing the minimum margins where the printer can print. Most printers can't print to the edges of a page. These margins varies for eacht printer. Where can we find this information? The Margins class allow to set margins, but it doesn't get the minimum margins of a specific printer. What I need is really the margin where a printer can't print. For example a HP OfficeJet d155 minimum margins are Left: 0,34 cm Right: 0,93 cm Top: 0,00 cm Bottom: 0,67 cm How can we get this information in .NET (maybe in pixels or inches)? thx

    C# csharp graphics tutorial question

  • Icons in a c# gui
    M mistery22

    http://www.glyfx.com/products.html at the end of the page you'll find a free kit ;) Greetz

    C# csharp

  • Context Menu
    M mistery22

    see this tutorial http://www.codeproject.com/cs/miscctrl/taskbarnotifier.asp It's a popup window like msn. I supose you can use the positioning of the popup window to position your app. Greetz

    C# question help

  • SQL/C#
    M mistery22

    Ok I think you want something like The user enters 'Arn' and sql gives Arnold then your like statemint will be Like 'Arn%' or "... LIKE '" + TextBox1.Text + "%';"; Greetz

    C# help csharp database

  • SQL/C#
    M mistery22

    SELCT FirtName, LastName, ID,From Coustomer WHERE FirstName LIKE '[A-Z]' SELECT FirstName, LastName, ID FROM Customer WHERE FirstName LIKE ??? ??? = I don't see what you want to do here. This is sure no SQL the like operater only allows to use wildcards % and _. assume next records in DB: cat C# dog bat faster LIKE 'c%' returns cat and C# LIKE 'c_' returns C# LIKE '_a_' returns cat and bat LIKE '_a%' returns cat, bat and faster % for a range of caracters _ for just 1 character Let know what you want and I'll help you with the statement :) Try this class named mySQL_Data with method get dataSet. (example with mysql) public mySQL_Data(string userName, string database, string password, string host) { // constructor logic this.userName = userName; this.database = database; this.password = password; this.host = host; conString = "DRIVER={MySQL ODBC 3.51 Driver};" + //place here the driver name like you "SERVER="+host+";" + //find in Windows ODBC description "DATABASE="+database+";" + "UID="+userName+";" + "PASSWORD="+password+";" + "OPTION=3"; } public override DataSet getDataSet(string query, string table) { OdbcConnection conn = new OdbcConnection(conString); DataSet ds = new DataSet("name"); try { conn.Open(); OdbcDataAdapter da = new OdbcDataAdapter (query, conn); da.Fill(ds, table); conn.Close(); } catch(OdbcException odbcError) { MessageBox.Show( "Native: " + odbcError.Errors[0].NativeError.ToString() + "\n" + "SQLState: " + odbcError.Errors[0].SQLState.ToString() + "\n" + "Message: " + odbcError.Errors[0].Message,"ODBC Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } return ds; } greetz

    C# help csharp database

  • printer minimum margins??
    M mistery22

    thx for the reply... But the Margins class allow to set margins, but it doesn't get the minimum margins of a printer. What I need is really the margin where a printer can't print. For example a HP OfficeJet d155 minimum margins are Left: 0,34 cm Right: 0,93 cm Top: 0,00 cm Bottom: 0,67 cm How can we get this information in .NET? thx :)

    C# graphics question

  • printer minimum margins??
    M mistery22

    Hi, I was experimenting on the printing functions and found out you can get a lot of information about a printer trough System.Drawing.Printing.PrinterSettings. But I'm missing the minimum margins where the printer can print. Most printers can't print to the edges of a page. These margins varies for eacht printer. Where can we find this information? thx.

    C# graphics question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups