|
Okay, if figured out how to run a url directly from C# but i opens up my default web-browser. I want to run the url without the having the user see the url. i'm using the "Process.Start(URL)" to run the url.
Is there a way to not open any windows (like the web-browser) and still run the url?
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Take a look at the HttpWebRequest class.
"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." - Rick Cook www.troschuetz.de
|
|
|
|
|
Thank you, I came across an article that gave the following code
HttpWebRequest Request;
StreamReader ResponseReader;
Request = ((HttpWebRequest)(WebRequest.Create(URL)));
ResponseReader = new StreamReader(Request.GetResponse().GetResponseStream());
when i run the code it says: "the underlining connection was closed. The remote name could not be resolved"
What does that mean?
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Hi,
I want to add checkbox in datagrid.I know we can use
DataGridColumnStyle boolCol = new DataGridBoolColumn();
but problem is this one taking only bool value. but my column value is string.
i have to make checkbox check or uncheck depending upon the status.
status is one of the field in my table and it's containg I or A.
any solution for this.plz help me.
thanks
|
|
|
|
|
I think it's saver to change the select Query and translate the I or A values into true or false. You might want to checkup on the CASE OF syntax for SQL 2000/2005.
WM.
What about weapons of mass-construction?
|
|
|
|
|
I have a dataGridView and just three rows.
I wrote dataGrid_RowEnter and dataGrid_RowLeave event. Basically i am changing the color to red of the row in the Row_Enter event and in the RowLeave and changing the color back to no color. I have also button in the same form. I have not written any thing on the button. but even if i click the button RowLeave event is firing and changing back my color. Is there a way around it. Is this the
normal behavior.
Thanks
kal
|
|
|
|
|
If your button is not within the row then yes it is normal behavior, you have left the row to click on the button hence the RowLeave event being fired.
only two letters away from being an asset
|
|
|
|
|
int[] W=new int[10];
int[][] wind=new int[2][];
Color c1 = h.GetPixel(1,1);
W[0]=c1.ToArgb();
wind[0][0]=W[0];
this code give me run time error at wind[0][0]=W[0]; I do not know why,is there any error,can some one guide me,
|
|
|
|
|
Hello,
Yes you have a null ref. exception here.
wind[0] and wind[1] are not initialized
//Constructor code
for(int x=0;x<wind.Length;x++)
{
wind[x] = new int[10]; //for example
}
Hope that helps!
All the best,
Martin
|
|
|
|
|
You forgot to allocate the size of the second dimension of variable wind.
You need to do something like this:
int[][] wind = new int[2][];<br />
wind[0] = new int[3];<br />
wind[1] = new int[5];
Set the size of the first dimension to 2 (you've done that). Then you need to set the sizes of the second dimension for each of the elements (!) in the first dimension.
By the way, if you want the sizes of the second dimension to be the same, you might consider using a two-dimensional array like this:
int[,] wind = new int[2, 3];
|
|
|
|
|
Hello,
jjansen wrote: By the way, if you want the sizes of the second dimension to be the same, you might consider using a two-dimensional array like this:
int[,] wind = new int[2, 3];
Thank you for the information about the 2D-array. (never used it before)
How do I get access to a spezial array?
(int[] intarray = wind[0]) //doesn't work
Thanks for your time
Martin
|
|
|
|
|
Hello,
I am trying to implement drag within my shell namespace extension. I noticed that in MFC you are able to set up a message area to attach to the events such as OnBeginDrag.
My question is; How do I attach to those events using c#?
Thank you,
Rick
Rick
|
|
|
|
|
iwant to know what the unit which we messauer with on this document and what to do to convert it to centemeter
as example
Graphics grahpics = e.Graphics;
Brush brush = new SolidBrush(Color.Black);
Pen pen = new Pen(brush);
Font font = new Font("Arabic Transparent",22);
grahpics.DrawString("Omar",font,brush,50,50);
this 50 is the cordinate what by which unit its and how if i want to as example if i want to begain with cordiate 2 cintimeter how can i can comvert it
|
|
|
|
|
Hello
AFAIK the units used in printing are "tenthes of inch". ie. 1Unit = 0.1Inch
You can write your own transforming method, knowing that each inch = 25.5 mm
=> each unit = 0.255 mm
=> each mm = 3.92 unit
so if you got your dimensions in mm, just multiply them by this factor (3.92), and they will be in "hundredths of an inch" just like the .Net printing methods and objects want.
Example:
2cm = 20mm => 20 X 3.92 = 78 Unit
Regards
|
|
|
|
|
|
How to flip mesh object in DirectX horizontally or vertically?
Sarajevo, Bosnia
|
|
|
|
|
How about rotating the world?
Device.Transform.World = Matrix.RotationX(radian);
/\ |_ E X E GG
|
|
|
|
|
This is not an option. I want to flip a specific mesh, not the whole world, as there are many meshes in the world that should retain its positions.
Sarajevo, Bosnia
|
|
|
|
|
i downloaded a web application and when i run the project this msg popped up to me.
Error while trying to run project: Unable to start debugging on the web server.the project is not configured to be debugged.
thanks in advance.
haitham
|
|
|
|
|
What's so hard to understand? You're being told that the project configuration is not set to debug (but to release), so it cannot be debugged.
Simple as that.
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
at first thanks for ur attention to reply me.
for sure if it was set to release it wouldn`t be a problem.
but the problem is thant it sets to depug and i asked the help here if any one faced a problem like this and solved it , to tell me what was the problem
haitham
|
|
|
|
|
Ok, if you _have_ set the project to debug (your initial post didn't say so!), did you re-build the solution and make sure that the files in your virtual directory were updated?
Does debugging of other projects work? Debugging other web applications? Debugging WinForms applications?
With so little information nobody can tell you the exact reason for your problem.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
sorry for the missing data
this project is a web site project and it was developed by some people, these developers were working with "microsoft visual safecode 6" . this project was working correctly at their machines but when i copied the code to my machine to work in this project the problems started to appear
at first an error message appeared tell me that this code is under source control
when i try to depug the code it poped up the previously illustrated message
this is a brief description for the problem
thanks for ur help
haitham
|
|
|
|
|
Hi,
I would like to "remove" a label if it is empty and move all subsequent labels up to replace its position.
I thought the following would work:
if (labelAddress2_22.Text == "")<br />
{<br />
labelSuburb22.Location.Y = 150;<br />
labelPostCode22.Location.Y = 150;<br />
labelState22.Location.Y = 175;<br />
labelCountry22.Location.Y = 200;<br />
}
but I get a compilation error that the label component is not a variable. I understand this and have looked up the MS help on it but the MS suggestion seems a complicated route to take (or so it seems to me ).
Is there an easier way?
Glen Harvy
|
|
|
|
|