|
I've had that happen several times!
Spend most of a late night trying to find a bug in what looks like perfect code, give up and shut VS down for the night, then reopen the project the next day to find the bug has gone missing. If it helps, I've never had one of those "missing bugs" return later. If quitting fixes it, it stays fixed.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Hello Everybody,
I am creating a app to convert Image to Text file. I refereed following link []. I am able to convert Image to text file.But when i convert Image file which have row and column layout (i.e., data is as in excel sheet format).when i read this type of file if the gap between corresponding columns is different. OCR takes it as Row delimiter and cuts the following text on new line. So I wanna replace the gaps to equal space while performing OCR scanning. Please help Any suggestions appreciated.
Regards
Rizwan
|
|
|
|
|
If you get the data into a text file then you can replace the char(9) tab in the text with char(34) which is a space, then output the text into the excel file.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello Mycroft Holmes,
When the data is retrieve in text file the order of rows and columns changes hence ,when i replace space with tab in Text file. I do not get the required table layout as in image file. Therefore i wanna replace it at the time of OCR scanning or know is there any alternative to achieve it. Any suggestion appreciated.
Regards
Rizwan
|
|
|
|
|
Is Char(32) not a Space and Char(34) a [Double Quote] according to the ascii tables.
|
|
|
|
|
How can I translate the request below into C# code?
POST /accounts/OAuthGetAccessToken HTTP/1.1
Host: www.google.com
Content-Type: application/x-www-form-urlencoded
Authorization: OAuth
oauth_consumer_key="example.com",
oauth_token="CKF50YzIHxCT85KMAg",
oauth_verifier="fERNOO3NfWph90CPCeIutmFA",
oauth_signature_method="RSA-SHA1",
oauth_signature="wOJIO9A2W5mFwDgiDvZbTSMK%2FPY%3D",
oauth_timestamp="137131200",
oauth_nonce="4572616e48616d6d65724c61686176",
oauth_version="1.0"
|
|
|
|
|
Why roll your own oauth code? There are plenty of OS versions out there to work with - there's a very good implementation here[^].
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I believe the System.Net.WebRequest object will suit your needs if you want to roll your own.
|
|
|
|
|
I'm quite new to this. I didn't know you don't need to roll your own. While on the subject, has anyone successfully implemented Google's implementation of OAuth? I'm trying it but I keep getting the error The remote server returned an error: (400) Bad Request. . I know this has to do with an invalid or missing parameter, but I've tried all the parameters according to the specifications listed here: OAuth API Reference[^]
|
|
|
|
|
Step one is to view your request in plain-text as it is being sent over the wire so you can see if it is indeed identical. The Google API is a bear, lack of examples, and not using web services make it a PITA. However, the do offer a free .NET assembly that is supposed to do all of the work for you. It is available on the Google Checkout API website somewhere.
|
|
|
|
|
Well according to this ^[^] site, there is no API for Gmail, and you have to use the Atom feed, which is read-only. So I guess I'll use that then. I also downloaded an assembly from somewhere that allows the sending of emails from your gmail account with one line of code. So I'll just use that to send emails
|
|
|
|
|
Hi
I am creating an application that need sql server 2005 express. Now I need a separate sql server instance in the computer. to do this i have tree option
1) first install sql server then application.
2) first install Application then sql server.
I cant go with these options . Bcoz i need to install the sqlserver atthe time of insatlling the application .I mnean in same msi file. But i cant do this either. bcoz i am unable to run a msi from another msi. I can write a cusome installer and run the sqlsvr32 file but it will throw the avobe error .
Is there any option of installing the sql server from a dll or somthinglike wrraper with the msi of my application so that there will not be any kind of user ui shown for the sql sserver installation.
Thank u.
|
|
|
|
|
Use installaware
I know nothing , I know nothing ...
|
|
|
|
|
Hi can any body the sample code to declare a <class ,="" member="" methods="">
as protected Internal , as well as Internal to use across different assemblies..
Assembly1
define class as Protected Internal or Internal
define member variables as Protected internal / internal
eg.
namespace Assembly1
{
protected Internal class Assembly1Base
{
protected internal Member1;
internal Member2;
}
}
define anothe class
derive from assembly1.Assembly1Base
namespace Assembly2
{
// inherit or create objects of above class }
and access the different members
|
|
|
|
|
This is what the documentation says: Internal types or members are accessible only within files in the same assembly.
Wout Louwers
|
|
|
|
|
You can only use internal classes from files in the the assembly in which they're defined.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
|
|
|
I have created an AppBar. The AppBar always stays on top, when it loses focus, then to get back to the AppBar requires two clicks instead of one. I believe the first click activates the form and then with second click I receive the mouse click events (as expected). Can you give any ideas, what can be wrong here? My problem is similar to this one Appbar and focus issues[^]. Unfortunately the OP in that link hasn't posted his solution
I created the AppBar following this article from CodeProject C# does Shell, Part 3[^]
I looked into it with Spy++ but don't have any idea why this is happening.
Here is the Spy++ log which I obtained testing out this scenario (first click doesn't works, second does).
<00001> 00090CFE S WM_PARENTNOTIFY fwEvent:WM_LBUTTONDOWN xPos:25 yPos:17
<00002> 00090CFE R WM_PARENTNOTIFY
<00003> 00090CFE S WM_WINDOWPOSCHANGING lpwp:0418EAE4
<00004> 00090CFE R WM_WINDOWPOSCHANGING
<00005> 00090CFE S WM_ACTIVATEAPP fActive:True dwThreadID:00000000
<00006> 00090CFE R WM_ACTIVATEAPP
<00007> 00090CFE S WM_NCACTIVATE fActive:True
<00008> 00090CFE R WM_NCACTIVATE
<00009> 00090CFE S WM_ACTIVATE fActive:WA_CLICKACTIVE fMinimized:False hwndPrevious:(null)
<00010> 00090CFE S WM_IME_SETCONTEXT fSet:1 iShow:C000000F
<00011> 00090CFE S WM_IME_NOTIFY dwCommand:IMN_OPENSTATUSWINDOW dwCommand:00000002 dwData:00000000
<00012> 00090CFE R WM_IME_NOTIFY
<00013> 00090CFE R WM_IME_SETCONTEXT
<00014> 00090CFE S WM_SETFOCUS hwndLoseFocus:(null)
<00015> 00090CFE R WM_SETFOCUS
<00016> 00090CFE R WM_ACTIVATE
Now happens the second click (which works)
<00017> 00090CFE S WM_PARENTNOTIFY fwEvent:WM_LBUTTONDOWN xPos:25 yPos:17
<00018> 00090CFE R WM_PARENTNOTIFY
<00019> 00090CFE S WM_WINDOWPOSCHANGING lpwp:0418E40C
<00020> 00090CFE R WM_WINDOWPOSCHANGING
Looking at the Spy++ logs, I believe the problem is with activation, I think that it only receives WM_LBUTTONDOWN event if the window is activated. But how come other windows aren't activated but they still work with one click (i.e. I don't have to click it first).
EDIT:I think the problem is with the ToolStrip. I have a ToolStrip in my AppBar. Now how I verified this? Well on the same form I created a button and showed a message box in its click event and it is working fine. Now how to remedy that?
modified on Thursday, June 24, 2010 1:12 PM
|
|
|
|
|
Hello there,
i want to add buttons to tool tip in .net but i think it is not that straight forward. may be because its parent is not control i cant add them. any suggestions will be appreciated
best regards
|
|
|
|
|
mobasher wrote: any suggestions will be appreciated
On mouse move, display a form with a button in it?
|
|
|
|
|
Look at this article: Custom Mouse Cursors (VB.NET)[^] specifically the PopCursor
It uses a ToolStripDropDown to create a custom tooltip. It would be possible to add buttons to that and that would be the approach that I would take. You could use a new form, but that's a little over-kill.
|
|
|
|
|
Hello Friends
I am having one jar file And now I want to call some java methods from c# code.Is there any way to call ?
Any Help will be Appreciated.
Thanks & Regards
Yogesh
|
|
|
|
|
Message Closed
modified 23-Nov-14 6:16am.
|
|
|
|