|
No - but it's easy enough to write your own.
David Anton
Tangible Software Solutions
www.tangiblesoftwaresolutions.com
Home of the Instant C# VB.NET to C# Converter and the Instant VB C# to VB.NET Converter
|
|
|
|
|
What is the best way to check for the double quote in the returned value?
|
|
|
|
|
Nevermind. I have resolved the issue with Replace("\\"", "\\\"")
|
|
|
|
|
I create a bitmap in this way:
bitmap myBmp = new Bitmap(100,100);
now i want to color all the bitmap of green, how?
|
|
|
|
|
|
Hi people,
I have a user control that draws a Bezier (drawing occurs in OnPaint and OnPaintBackground). This control is used in a windows form. Is there a way to get the graphics of that control to be able to save it in a file?
thanks,
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
hi again,
well I managed to send back the Bitmap to the main form, but I had to recreate it in the returning function. I was wondering if there is a way to get back what I had already drawn in the control.
thanks,
Talal
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
hi there
i'm trying to extract certain information from an HTML source, i've used the : WebClient from the .NET library to Screen Scrspe the web page the second part is to use RegEx to EXTRACT usefull information to me from the HTML source available and because i'm not very familiar with regular expressions i need help to do this for example:
I NEED TO EXTRACT THISand then to place whatever is extracted within XML tag (i.e. converting)
thanks and regards
jay
|
|
|
|
|
<td class="subhead" colspan="2">(?<content>.*?)</td>
where group "content" will contain text "I NEED TO EXTRACT THIS"
or more generaly,
<td(.*?)>(?<content>.*?)</td>
RETester[^] is nice place for testing... Check out Reg Ex Lib, too.
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
thanx alot, appreciated
|
|
|
|
|
ok how to do without the tags,,i.e just the : (?<content>.*?)
regards
|
|
|
|
|
I don't understand your question... Read MSDN here[^]
ah maybe I know what you mean... try @"yourregexhere". You know what I mean?
hope it helps
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
Hi for all
I have nine buttons in my form and I would like how I can include a button's reference in an arraylist. I'll modify the text's value of a some button by this reference. How can I do this?
Thans for all
Alex
|
|
|
|
|
Does simply adding the Button object not work? Something like
<br />
class MainForm<br />
{<br />
private Button b1 = new Button("B1");<br />
private Button b2 = new Button("B2");<br />
<br />
ArrayList a = new ArrayList();<br />
<br />
<br />
public void AddToList()<br />
{<br />
a.Add(b1);<br />
a.add(b2);<br />
}<br />
<br />
private void ModifyText()<br />
{<br />
foreach(Button b in a)<br />
{<br />
b.Text = "Long live Senthil";<br />
}<br />
}<br />
}<br />
Regards
Senthil
My Blog
|
|
|
|
|
how to display colorful cursors or *.ani in the c#?
the mono cursor is very done,but the colorful cursor is not easy to be done?
|
|
|
|
|
|
the above is not correct in the c#!
|
|
|
|
|
hi
i want to know what is the Diffrence between the DATASET and the DATAREADER
and when you use each of them
thankx
|
|
|
|
|
datareader is a connected resultset, while the dataset is disconnected.
Have a look on MSDN for more detailed info though.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG blog:: brokenkeyboards "Most of us are programmers, but a few use VB", Christian Graus
|
|
|
|
|
Hi all,
i am developing a software ,,which will helpfull for the network administrator in such a way that....it will provide efficiency to the printer..
my software is explained as
this software will restrict the user to use the printer....for example...
the network administrator will provide a database for the user that e.g, "abc" user can only print 3 pages...if user send 4 number of prints from any place means from network or any software then then the message box come to the user that u r restricted to use on 3 pages...the boundries of such software are completed.....the main module that when the user send the print job to printer then the job should cancelled and read the database and according to that data base there will be printing pages to certain users...
So i have to take help that ....plz made me this help that
this module i m tying a lot ..but not happening that the job should canelled first of the printer and then job according to database apply...please programmes help me .I will very thankful to all...I will wait for yours response and the code also related to this module..
Lot of thanx for solving my problem
|
|
|
|
|
cishi_us wrote:
I will wait for yours response and the code also related to this module..
Lot of thanx for solving my problem
Uhhh.... YOU have to write the code, we're not doing it for you. You solve your own problems, we just help.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
well sir sure i like to take urs help...i have just reaced to my destiny as well but some problems occuring in it.....
i m writing here u code and plz try to help me...The problem occuring on following places..please read code i m writing where the problem is occuring..
///////////////////////////////////////////////////////////////////
try
{
PropertyDataCollection __gc *pdc = e->NewEvent->get_Properties();
PropertyDataCollection::PropertyDataEnumerator __gc *pdce = pdc->GetEnumerator();
while(pdce->MoveNext())
{
PropertyData __gc *pd = pdce->get_Current();
ManagementBaseObject __gc *mbo = dynamic_cast<managementbaseobject *="">(pd->get_Value());
1) problem***************problem occuring on the below if statement.not all time but some time the mbo variable does not declare and by using watches i see that mbo is undeclared value.its some time ... and printer does not pause..***********************************
if( mbo != NULL && mbo->ClassPath->ToString()->ToUpper()->EndsWith(S"WIN32_PRINTJOB") )
{
/////
//pause job
long a=0;
long *hprinter = &a;
for(int i=0 ; i<this->printersname->Length ; i++)
{
try
{
int result = PrinterAPIs::OpenPrinter(this->printersname[i], hprinter, NULL);
bool resultf = PrinterAPIs::SetJob(*hprinter, (long)Int64::Parse( mbo->Properties->get_Item(S"Jobid")->Value->ToString() ), 0, NULL, 1);
PrinterAPIs::ClosePrinter(*hprinter);
MessageBox::Show(this, mbo->Properties->get_Item(S"Owner")->Value->ToString());
*****************************************************************************
2) Below message box is not showing the correct number of pages that comes from print status that come in task bar when a pages are going to print.***************************************
MessageBox::Show(this, mbo->Properties->get_Item(S"TotalPages")->Value->ToString());
if(resultf == true)
break;
}
catch(Exception __gc *ex)
{
MessageBox::Show(this, ex->ToString());
ex = NULL;
}
|
|
|
|
|
You do realize this is the C# forum, right? Visual C++ is over here[^]!!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I'm absolutely new to programming, so please don't be too hard on me...
I'm trying to make a simple form application to hide or show hidden files. When I try to run the application I get a "System.NullReferenceException: Object reference not set to an instance of an object."
I found many topics related to this problem, but I still cannot figure it out.
Here's the code:
partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void HideFiles()
{
RegistryKey MyKey = Registry.CurrentUser;
MyKey = MyKey.OpenSubKey(".Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", true);
MyKey.SetValue("Hidden",2);
MyKey.Close();
}
private void ShowFiles()
{
RegistryKey MyKey;
MyKey = Registry.CurrentUser;
MyKey = MyKey.OpenSubKey(".Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", true);
MyKey.SetValue("Hidden",1);
MyKey.Close();
}
private void ShowButton_Click(object sender, EventArgs e)
{
ShowFiles();
}
private void HideButton_Click(object sender, EventArgs e)
{
HideFiles();
}
}
|
|
|
|
|
NullReferenceException is a very basic exception you get when you declare an object reference but do not assign a value to it (or, in your case, have a method returning null and assigning this null to your reference) and then try to access the non-existing object.
Just debug the code then you'll see where the exception occurrs.
I assume the subkey you're trying to open doesn't exist (it should start with "Software", not ".Software").
mav
|
|
|
|