|
can anyoner plz. help me out in writing a code in c# for
Sending SMSs from your Microsoft .NET Compact Framework-based Applications
regards
|
|
|
|
|
Dear Friends
I am developing application for a browsing center,
I want to restrict users to access some websites and some File formats to Download.
Now I say
http://www.java2s.com/Code/CSharp/Network/ImplementsamultithreadedWebproxyserver.htm
Multithreaded Web proxy server code
And this code is gives me an error as "The operation has timed out" error at System.Net.HttpWebRequest.GetResponse()
1. What is the problem?
2. I get URL name in this code, and I can filter the web sites here. Now how can I filter the creation formats to download?
Please help me.
By
Joe
|
|
|
|
|
Dear Frieds
i have done a sample application for WMI Scheduling, and i could schedule jobs using it.
my problem is i schedule the task to work on every day but that task is assigned for saturday
Hear is my Sample Code.
ManagementClass classInstance = new ManagementClass("root\\CIMV2","Win32_ScheduledJob", null);
ManagementBaseObject inParams = classInstance.GetMethodParameters("Create");
inParams["StartTime"] = "********113000.000000+330";
//YYYYMMDDHHMMSS.MMMMMM(+–)OOO
ManagementBaseObject outParams = classInstance.InvokeMethod("Create", inParams, null);
ManagementClass classInstance = new ManagementClass("root\\CIMV2","Win32_ScheduledJob", null);
ManagementBaseObject inParams = classInstance.GetMethodParameters("Create");
inParams["StartTime"] = "********113000.000000+330";
//YYYYMMDDHHMMSS.MMMMMM(+–)OOO
ManagementBaseObject outParams = classInstance.InvokeMethod("Create", inParams, null);
Any Problem in my Code.
Please help me.
With Love
joe
|
|
|
|
|
is there any way to hide those button???
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
maybe there is a way, but hiding up and down buttons of a control which mainly differs from a textbox by additional up and down buttons doesnt sound like a very good idea.
you can use a textbox and add a validator.
|
|
|
|
|
I am using Visual Studio 2005 to write a C# program. And I am wondering if anyone tell me if there is a programattic way to differentiate when a form is being closed via the Close() method as opposed to being closed via a user clicking on the control box 'x'? The CloseReason seems to be the same for either one, and I would like to know which 'Close' is occurring if possible.
Thank You...
|
|
|
|
|
paas,
I dont think there is a difference. However, when calling the form.Close(); method, you could set a flag and then in the OnClosing event, handle that flag and do whatever you want.
Regards,
Gareth.
|
|
|
|
|
Look up the OnClosing event handler, you can handle the close from there.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Thanks everyone for the replies. Unfortunately my initial message was not as detailed as it should have been. I know about the FormClosing event and how I could trap a flag I set before programtically executing a Form.Close(). However, what I really need to know is the difference between the closes that can be executed on the title bar. Either the 'x' close in the right corner, or the 'Close' that can be executed from the dropdown appears when you click in the left corner (on the icon). Can those be differentiated in the Closing event?
|
|
|
|
|
Not as far as I can tell. Even if overriding WndProc the same data is sent for both.
m.Msg is WM_SYSCOMMAND (0x0112)
m.WParam is SC_CLOSE (0xf060)
Dave
|
|
|
|
|
how can i have a transparent form with image that have shadow?
i want to have a startup form just show image with shadow
|
|
|
|
|
Maybe play around with the Opacity property?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
It dose not work.
Opacity hide all object. but i want to hide form and show an image with shadow
|
|
|
|
|
It was just a quick thought...
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
If you set the TransparencyKey to the SystemColors.Control, and you make your form borderless, you have a nice splash window.
But... the shadow is something you can't do easily. If you tried to embed the shadow in the image, you will see the background behind it.
Perhaps you can use WPF for that.
Quick search: http://www.codeproject.com/KB/WPF/WPFImageEffects.aspx[^]
|
|
|
|
|
i knew it.
but i can't use wpf for this project
|
|
|
|
|
shadow u can do with css property.
box-shadow It may help u in better way
|
|
|
|
|
hey guys, im programatically sharing a directory, but i noticed that the permissions were screwed. so tried using
<br />
FileSecurity fs = File.GetAccessControl(FolderPath.TrimEnd('\\'), AccessControlSections.All);<br />
fs.AddAccessRule(new FileSystemAccessRule("Everyone", FileSystemRights.ReadAndExecute, AccessControlType.Allow));<br />
File.SetAccessControl(FolderPath.ToString().TrimEnd('\\'), fs);<br />
but it creates the permission for that folder only, but when actually viweing the permissions from explorer, there is a field that states: "Apply to", and it says "This folder only." is there any way of changing that to include this folder and all subdirectories?
|
|
|
|
|
Hello,
VS 2008
Adding number and letters on buttons.
I have a form that looks like a phone with buttons. I am wondering how to put number and letters on the buttons.
i.e.
1
abc
2
def
3
ghi
Just another question. I have wired up all the buttons for one click event. And display the numbers in the text box display.
Code:
private void DialerKeyPress_Click(object sender, EventArgs e)
{
this.txtDisplay.Text += ((Button)sender).Text;
}
How would it be possible to display something like a 'c' or 'e' etc. The user would have to click 4 times for a 'c', and twice for a 'e'.
How is this normally implemented in a normal phone application.
Many thanks for any advice,
Steve
modified on Friday, March 14, 2008 2:04 PM
|
|
|
|
|
steve_rm wrote: How is this normally implemented in a normal phone application.
Can you provide a link to one of these "normal phone applications" because off the top of my head I just can't think of one?
led mike
|
|
|
|
|
steve_rm wrote: I am wondering how to put number and letters on the buttons.
Use Text property of the Button class. To specify new line character during runtime use Environment.Newline If you are setting text during design time, you can do it easily by designer.
steve_rm wrote: How would it be possible to display something like a 'c' or 'e' etc. The user would have to click 4 times for a 'c', and twice for a 'e'.
In the click button check if the previous button pressed is the same as currently pressed button. If yes then just replace last character of txtDisplay.Text with the character which comes next on the button. You will need a counter for that. You will also need to check how much time passed from previous click
Giorgi Dalakishvili
#region signature
my articles
#endregion
|
|
|
|
|
You could use images on the buttons - a bit like they have in the "skinned" Smartphone emulator in Visual Studio.
steve_rm wrote: Just another question. I have wired up all the buttons for one click event. And display the numbers in the text box display.
Here I'd be inclined to use a timer - if the user clicks the button before the timer has expired cycle to the next available character, if the timer has expired accept the input.
|
|
|
|
|
Hi all,
i'm facing with an interesting application error.
in my app I used a serial port to read some bytes from an external electronical card and succeded on it. Then a added a web cam video capturing fearture to my app for some better user experience.... I coded the web cam via callling avicap32.dll and used it's defined functions etc... And as you know serial communication is quite easy, no need to explain it i think...
Now to the problem is when run the app , it works at first time, but at second time i cannot see the form design at runtime....and i try to close it, the debuging stops but when i look at task manager the exe still runs under system protection, i cannot close it, or generate a dump file of it etc....
Does anyone have any idea, i never faced an error somethink like this, and don't know what to do next???
Thanks for all replies
Salih
|
|
|
|
|
Hi,
the most common way to get an app to refuse an exit (e.g.when you close the main form)
is by having foreground threads that are not done yet. If you have threads that should
not prevent Application.Exit() or MainForm.Close() to succeed, you should set their
IsBackground property true (default is false).
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Hi I am working on a winForm application in which I am using DataGridView to display some data from database.
I have to Format the data in the datagridviewcells like shown below i.e few letters made bold, a cell having multi line text etc
==============================================================<br />
Column1 | Column2 | Column 3<br />
==============================================================<br />
454 | Bold 1:abdajkldjalkjd | sdfj<br />
asdhj | Bold 2:abdajkldjalkjd | 32<br />
asd | Bold 3:abdajkldjalkjd | 2342<br />
==============================================================<br />
454 |Bold 1:abdajkldjalkjd | sdfj<br />
asdhj |Bold 2:abdajkldjalkjd | 32<br />
asd |Bold 3:abdajkldjalkjd | 2342<br />
==============================================================
Can any one give me an idea how to do it..
o O º(`'·.,(`'·., ?,.·''),.·'')º O o°
»·'"`»* *? t4ure4n ?* *«·'"`«
°o O º(,.·''(,.·'' ?`'·.,)`'·.,)º O o°
|
|
|
|