|
Check this.[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
|
No problem.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|
|
hi
i need a wraper "class" for microsoft Enterprise Library caching in C# which can add and retrieve data.The developer must use this class for the data manipulation.As i am new to it.. i have no idea abt it. Pls help me..
thanks
Sid
|
|
|
|
|
pls help C#.NET 2.0 application , when I try to Build it I am receiving
the error:
Error 45 The command "xcopy "P:\ID Solutions\FpSdk\fpSDK_IP.dll" "C:\My Job\Development\SBMS_Development\FingerPrints\4. Development\a. Client\FingerPrintQAIdSolutions\bin\Debug\" /Y /R /D
xcopy "P:\ID Solutions\FpSdk\fpSDK_MA.dll" "C:\My Job\Development\SBMS_Development\FingerPrints\4. Development\a. Client\FingerPrintQAIdSolutions\bin\Debug\" /Y /R /D" exited with code 4.
FingerPrintQAIDSolutions is my solution
C:\My Job\Development\SBMS_Development\FingerPrints\4. Development\a. Client is the directory where i put my project
regards paula
|
|
|
|
|
from MS tech net:
exit code 4 "Initialization error occurred. There is not enough memory or disk space, or you entered an invalid drive name or invalid syntax on the command line."
Source[^]
Make sure that P is a valid drive
Natza Mitzi
|
|
|
|
|
I got a task to develop an application to be installed in a maccintosh environment. Can Visual studio application run in Maccintosh OS. Plz Tell.
|
|
|
|
|
MONO is an open source development for porting .NET libraries to other platforms. Try to compile your application with MONO. Keep it in mind, MONO is developed by open source community and it won't support latest .NET framework classes. I believe it has support till framework 2.0,
|
|
|
|
|
Hi all,
Do you know a simple way to print contents of a DataGridView in a C# program?
Sourie
|
|
|
|
|
Use search to find an article on codeproject that shows how to print a datagridview. Then use it in your application
|
|
|
|
|
oh thanks I found 6 articles. I am going to read them.
Sourie
|
|
|
|
|
How to provide the different implementations to two abstract classes methods and methods name are same
Example
abstract class abstA
{
public abstract void get(int num);
}
abstract class abstB
{
public abstract void get();
}
How to use the get() method of two abstract classes
|
|
|
|
|
In c# you can't have a class inheriting from two classes so you won't have two get() methods to implement
|
|
|
|
|
Hi All!
Actually i need to integration my site with MarketSMART but i have no idea about this there is php code that i need to use in my ASP.NET using c# application can i change this php code to c#....? and any one have the idea about MarketSMART and what things i need for this.... please help me its importany my job...
url for MarketSmart site FAQs : https://www.marketsmart.co.nz/basic.php?pagekey=faq&subject=wsdl
username guest
password MSILweb
PHP Code :
require_once('lib/nusoap.php');
$client = new SoapClient("https://www.marketsmart.co.nz/axis/services/Service?wsdl");
$err = $client->getError();
$auth = new soapval('auth','AuthenticationInfo',array('credentials'=>(obtain from MSIL),'principal'=>(ditto)),false,'urn:Service');
////////////////////////////////////////////////////////
// Config
////////////////////////////////////////////////////////
$cardNumber_val = "9999999990001544";
$cardNumber = new soapval('cardNumber','long',$cardNumber_val);
$RewardsAvailableRequest = array('auth'=>$auth, 'cardNumber'=>$cardNumber);
$param = new soapval('raReq', 'RewardsAvailableRequest',$RewardsAvailableRequest, false,'urn:Service' );
$result = $client->call('getRewardsAvailable', array($param));
echo $result;
print_r($result);
echo 'Request: ' . htmlspecialchars($client->request, ENT_QUOTES);
echo 'Response: ' . htmlspecialchars($client->response, ENT_QUOTES);
echo 'Debug ' . htmlspecialchars($client->debug_str, ENT_QUOTES);
|
|
|
|
|
I am having a hard time thinking of what logic or design will i put on my personal grading system
can you give me some advice on how to implement this system
thanks
|
|
|
|
|
First of all, you have to explain what you mean by a "personal grading system".
|
|
|
|
|
My first question is about context menu. I was unable to find a way to make it work with form1 so I used this:
private void Form1_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
panel1.ContextMenu.Show(panel1, new Point(e.X, e.Y));
}
}
However i was also using
private const int WM_NCHITTEST = 0x84;
private const int HT_CLIENT = 0x1;
private const int HT_CAPTION = 0x2;
protected override void WndProc(ref Message m)
{
base.WndProc(ref m);
if (m.Msg == WM_NCHITTEST && m.Result.ToInt32() == HT_CLIENT)
{
m.Result = (IntPtr)HT_CAPTION;
}
}
protected override CreateParams CreateParams
{
get
{
int WS_DLGFRAME = 0x00400000;
CreateParams parameters = base.CreateParams;
parameters.Style = parameters.Style & ~WS_DLGFRAME;
return parameters;
}
}
to drag form around. So I need one of these things: to drag form by panel or to make panel send mousedown to form or a way to show context menu strip by clicking on form1.
Second question is about form border style. I have already removed control box and now I'd like to make border invisible as well. For now, border is set to sizable and I need a way to either make sizable border transparent or find a way to resize form without border.
Third question is about anchoring. When I resize form the textbox(anchor set to all 4 sides) stretches by the same amount as the form instead of staying in original proportion to the form. How do I go about fixing this?
Fourth question. I plan to use the app I'm building for reading of various text/html documents. I thought of using richtextbox, however it doesn't allow transparent background. I looked at Alpha blended textbox and related articles and it looks too complex for my skill level. So since I plan to use it only for reading and not editing is there an easier way to do this?
Fifth question. How to make form snap to screen edge(any side)?
Any answer to these questions is much appreciated.
|
|
|
|
|
Answer for the third:
Set the anchor to no anchor should do the trick I think (rather then all 4 sides)
Answer for the fourth:
I don't know of any easy way to do this with C# - I've tried to find an easy way a few times myself, but it always ends up quite complex.
As for the other questions, I dont know off the top of my head, but hopefully these answers have helped.
Chris
[Edit: Just looked again, and saw the context menu one - you need to create a context menu control, and then goto the form and check out its properties. One of them is called ContextMenu or something, and the properties window will give you a drop down list of all context menus you have created. ]
|
|
|
|
|
Thank you for answering.
About the first question. I found an answer elsewhere. 2nd bit of code disrupted it.
About the third, i tried all anchor combinations. Didn't work. Is there a way to fine tune by how much box stretches?
Edited: About fourth, I used this
openedFile = openFileDialog1.FileName;
string textData = System.IO.File.ReadAllText(openedFile);
Font drawFont = new Font("Arial", 10);
SolidBrush drawBrush = new SolidBrush(Color.Black);
surface.DrawString(textData, drawFont, drawBrush, 50.0f, 20.0f);
to display text without trouble, now I just need to get it to display where I want it.
Edit 2: Can't find a way to clear text when opening another file. Or to wrap text. Maybe create temp image that gets deleted on opening of new file?
modified on Saturday, September 27, 2008 12:43 AM
|
|
|
|
|
3) Seems strange to me that it didn't work, but as a last resort you can do something along the lines of:
Text1.X = (this.Width / 2) - (Text1.Width / 2)
To centre a textbox - you would need to play with the formulas a bit, but hopefully this gives you a pointer.
4) Does surface have a clear method so that you can delete text? Also to wrap text, I'd google for printing in C# - it uses a graphics object to construct pages of an image, so you should be able to find out about text wrapping there.
Chris
|
|
|
|
|
I have been developing a project in Visual C# 2008 Express.
Now I want to move the project to another folder in my computer. Since there is no "Save As" in the IDE, how can I do this?
Also, I want to pack the solution source code to distribution (zip/rar). Which files should I pack? I know that I don't need obj and bin folders.. but what about the rest of the files?
Finally, just a quick request: can you give me an example of use of different projects inside one solution?
|
|
|
|
|
You can just copy the folder that contains your project to another folder, then open the csproj with file/project/open. If you have other projects in your solution, you can add them back manually.
Might be easiest to just zip up your project folder, then delete bin/obj folders from the zip.
Example of different projects in one solution:
Main Project
Controls
Data Access Layer
Business Access Layer
Just an example.
- S
50 cups of coffee and you know it's on!
A post a day, keeps the white coats away!
|
|
|
|
|
Hi there, I someone can help me... this is driving me nuts...
I have a form (with textboxes and buttons) with dynamically created user controls (BasePanel) when the user presses the Add button. On that user control is a textbox.
When that user control gets created, one of two possible user controls (GeneralEntry - initially - or EventEntry) are added to that user control, which contains a series of maskedtextboxes. If the user types a letter in this first maskedtextbox, then the GeneralEntry gets replaced with the EventEntry user control, which has a different series of maskedtextboxes.
Now, what I want to have happen is that on the last textbox on the form, when the user presses Tab, it goes to the first maskedtextbox on the GeneralEntry, but it doesn't... it goes to the textbox on the BasePanel.
I have tried assigning all the tab orders so that the all in the correct order, but there seems to be a precedence of controls... form, then user control, then next user control, etc...
I have also tried suppressing the Tab key and forcing the SelectNextControl... but that's not working either, as the Tab key doesn't seem to be able to be suppressed or handled.
Does anyone have any suggestions please?
Thanks in advance!
Paul
One day I want to be a code monkey. Right now, I'm more like a code amoeba...
|
|
|
|
|
Some keys are treated in different way than others. Probably tab key is one of them. I think you will need to handle that in ProcessCmdKey method .
"If you had to identify, in one word, the reason why the human race has not achieved, and never will achieve, its full potential, that word would be 'meetings'." - Dave Barry
|
|
|
|
|
Thanks for that Dave.
A bit of a learning curve to use that method, but it seems like it will meet my needs.
Cheers
Paul
One day I want to be a code monkey. Right now, I'm more like a code amoeba...
|
|
|
|