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
W

wienzzz

@wienzzz
About
Posts
19
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Using DLL library in application
    W wienzzz

    Hai, I have a DLL that created using Delphi. My question is : 1. Can I use that DLL in my C# application? 2. If I can use that DLL, how can I determine the function inside the DLL and th parameters needed for the callback? P.S : no techincal information or documentation available about the DLL. thankz

    Newbie.. Newbie.. Newbie.. Newbie.. Newbie..

    C# question csharp delphi

  • Resizing Control and Halt Operation
    W wienzzz

    oh yeah, Anchor!! never thought of that! thankz a lot Nav :)

    Newbie.. Newbie.. Newbie.. Newbie.. Newbie..

    C# question database help tutorial

  • Resizing Control and Halt Operation
    W wienzzz

    I have 3 questions, 1. has anyone been trying to make some class or libs for resizing control? for example, if I resize the parent control (i.e form Control), then all the contained control also resized. 2. I have an apps which retrieve a lot of data from database and present the data to richTextBox control. My problem is, when apps is still adding the data and I clicked somewhere on the form, the form will show white screen (similar to non-responding application) but it is still running somehow. How can I halt (or prevent maybe) that click operation so even if I clicked anywhere the form layout will still be the same? 3. similar question like before, I retrieve a lot of database using SqlDataReader class. How can I cancel the operation within the apps? (like 'press ESC to cancel' or something like that?) thanks for the information..

    Newbie.. Newbie.. Newbie.. Newbie.. Newbie..

    C# question database help tutorial

  • Detecting URL in RichTextBox Control?
    W wienzzz

    wow :omg: good stuff mav! this is what I'm looking for. thankz. I will start to explore your project thankz a lot

    Newbie.. Newbie.. Newbie.. Newbie.. Newbie..

    C# question regex

  • Detecting URL in RichTextBox Control?
    W wienzzz

    Regex? I don't think that's what I mean. I suppose Regex is used to check over some word pattern, right? what I mean here is how to make some String (i.e hello, it is me) to be treated as hyperlink. Just like in html, when you want to put some hyperlink you put tag between the string. [hello, it is me]([this is the link to be clicked]) I've search through RichTextBox methods and properties, but I found nothing related to the hyperlink thing except DetectUrls and LinkClicked. Why am I using this? well, I try to retrieve some data in database and present them in the richTextBox. some fields need to be hidden until someone want to show it. And I'm thinking of using the hyperlink to be the trigger to show the hidden field. :confused::confused::confused: thankz for the info :rolleyes: Newbie.. Newbie.. Newbie.. Newbie.. Newbie.. -- modified at 1:00 Wednesday 10th October, 2007

    C# question regex

  • Detecting URL in RichTextBox Control?
    W wienzzz

    Hai, On RichTextBox Control, there's a property "DetectUrls". When the property value is "true" then any word begin with "www." on that richTextBox will be treated as Hyperlink. my Question : How do we treat the text on richTextBox as hyperlink manually? Or, maybe there's any class that we could edit so there will be more word pattern to be treated as hyperlink? thankz for the information

    Mail me at erwin@holyknight.us

    C# question regex

  • adding another control in RichTextBox
    W wienzzz

    hai, I've got question about RTB Controller in C# I need to "hide" some of text in RTB Controller. I'm thinking of using TreeView Controller so if the user wants to "unhide" they just expand the treeview. is it possible to add another control like treeview controller in RichTextBox? if not possible, is there another way to hide some text in RTB Controller? regards ~erwin~

    Mail me at erwin@holyknight.us

    C# question csharp

  • Float on Currency format..
    W wienzzz

    Guys is there any way that i make an Float Column output into Currency Format.. withoug rounding
    e.g.
    Float data is:

    Name Price
    Ambie 505.5560
    James 44.240
    Nicolas .5275
    Moyano 20

    OUTPUT
    Ambie 505.55
    James 44.24
    Nicolas .52
    Moyano 20.00

    if you trying to display in textbox or something, I think you can set the formatting display on that textbox for just only 2 decimals. question : do you want retrieve float data and display in currency? OR do you want to insert the float data with only 2 decimals? CMIIW

    Mail me at erwin@holyknight.us

    Database

  • Question about Querying in SQL Database
    W wienzzz

    further question,

    When you create the database the collation sequence should be defined as Accent Insensitive (AI). It causes more problems that it is worth to individually define columns as a specific collation

    can I just modify the properties after the database created? I try to look for those properties and I couldn't find any properties related to that. Or should it be the SQL Server properties? (like in VFP to turn safety on or something like that?) second, let's assume that I couldn't change it (because I worked on existing database which I'm not able to change the structure), can I called a function to show the field in the view definition? well, maybe here's simple example (I'm not doing it yet) SELECT test.myField, myFunct(test.myField) as newfield FROM test assume that myFunct is the function to convert all the accented character to normal character. can it be the solution? CMIIW thankz for the information regards ~erwin~

    Mail me at erwin@holyknight.us

    Database database question csharp sql-server sysadmin

  • Question about Querying in SQL Database
    W wienzzz

    Hai, I have question about SQL database. I'm using C#2005 let's assume I have a database table 'TEST' with field 'myField' TEST ---------------- Recno | myField ---------------- 1 | axcel 2 | áxcel 3 | axcël 4 | axÇel 5 | áxÇèl ---------------- If I fire the command "SELECT * FROM TEST WHERE TEST.myField LIKE '%axce%'" The query result would be TEST ---------------- Recno | myField ---------------- 1 | axcel ---------------- my Question is : 1. Is there anyway so the query result would contain all of the record instead of first record only?? I assume this has something to do with Localization class in C#. Am I right? 2. If not possible, any suggestion how to make it possible? maybe using Function in SQL Server? I'm barely new to SQL server.. thankz for the information, if this question goes in wrong forum, please forgive me 1st.. regards ~erwin~ Mail me at erwin@holyknight.us

    Database database question csharp sql-server sysadmin

  • Need Help With RichTextBox
    W wienzzz

    ...In fact, a carriage return line feed is never expected to be found in an RTF file...

    Just found that in RTF Specification for Word2007. I just replace the "\r" "\n" with "\line" in RTF and it worked for now.. CMIIW

    Mail me at erwin@holyknight.us

    C# help database question

  • Need Help With RichTextBox
    W wienzzz

    more information, I try to display it in RTF Format. I think RTF Format doesn't accept "\r" and "\n". Am I correct? anyway to make RTF Format could read "\r" and "\n" character? CMIIW

    Mail me at erwin@holyknight.us

    C# help database question

  • SendMessage Function (Sub in C#)
    W wienzzz

    Yep, put it inside a class.. search in microsoft documentation for more info about windows messaging, the message type, and other info.. CMIIW

    Mail me at erwin@holyknight.us

    C# csharp com tools question

  • SendMessage Function (Sub in C#)
    W wienzzz

    where did you find "HandleRef"? that's why the compiler expected class, delegate, enum, interface, etc I think.. try the code below.. I have no idea how to use it because it only return the message ID which I don't know how to process.. [DllImport("user32.dll", CharSet = CharSet.Auto)] private static extern IntPtr SendMessage(IntPtr hWnd, int wMsg, IntPtr wParam, IntPtr lParam); CMIIW

    Mail me at erwin@holyknight.us

    C# csharp com tools question

  • RichTextBox
    W wienzzz

    Hai mihk, I'm working on similar application also. In my opinion, you can do that on 2 ways. 1. scan through the first char loop until end, when you find "SPACE" / "32" in ASCII, you just put a little code of RTF Formatting. well, let's just say like this. StringResult = ""; //this is the header for RTF-format StringResult = {\rtf\ansi {\colortbl; \red0\green0\blue255;\red255\green0\blue0;}; //2 color, Blue and Red bool toggle = false; for(int i=0; i < YourString.GetLength(0); i++) { if(toggle) { StringResult = StringResult + @"\cf1"; } else StringResult = StringResult + @"\cf2"; StringResult = StringResult + YourString[i]; if(YourString[i] == (char)32) { //toggle the boolean if(toggle) toggle = false; else toggle = true; } } you may search more about RTF formatting on microsoft web site. 2. you can just use the method RTB.Selection to change the font, forecolor, backcolor, etc. find more info about this on MSDN help. CMIIW

    C# tutorial question

  • Need Help With RichTextBox
    W wienzzz

    Help! I'm trying to retrieve data from database and put it on richtextbox control. my problem is : the richtextbox control doesn't read the "\r" and "\n" character (13 and 10 in ASCII, return carriage and line feed). so the data was not displayed on different line but go through one line. any information on it? thankz a lot regards ~erwin~

    C# help database question

  • Determine Double-Click / Middle Click using low-level mouse hook?
    W wienzzz

    Got it, I'm sorry before... the class I used only handle WM_LBUTTONDOWN / WMLBUTTONUP and WM_RBUTTONDOWN / WMRBUTTONUP.. so just modify the class a little bit and add WM_MBUTTONDOWN / MBUTTONUP and maybe the double click handler to modify it. yeah.. thankz a lot..

    C# question csharp c++ tutorial

  • Determine Double-Click / Middle Click using low-level mouse hook?
    W wienzzz

    thankz for the answer, but I have look throughout that article before, and those article/project only cover the "left" and "right" clicks button. any way to determine "middle" clicks? low-level hooking problem maybe?

    C# question csharp c++ tutorial

  • Determine Double-Click / Middle Click using low-level mouse hook?
    W wienzzz

    hai, I have question since there were many article implementing low-level hooking in C#. i couldn't manage to find how to determine when we click the middle button or double-clicked the mouse using low-level mouse hook. is there any way / method to do that? i'm using unmanaged c++ dll wrapper (WilsonGlobalHook) from this site. thx

    C# question csharp c++ tutorial
  • Login

  • Don't have an account? Register

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