|
make a string array of 3 dimension, then set the values in all 3 dimension, e.g. myString[XX] = ??; where XX is dimension 0 based index
do the same with integers
and please do your homework yourself, google is your friend
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
|
|
|
|
|
Hey guys I am hoping you can help with this.
I am writting a windows service that monitors servers and reports back to an asp page which collects the data and displays it in a grid which notifies us if a server is up or down. Recently we started writting an asp page that holds certain configuration data, one being the web url(which is used for check in). And my question for you guys is how do I tell my service to check that asp page every so often to see if the web url has changed, and if it has changed pull the new url and use that for the check in. I hope that made sense.
I look forward to hearing what you guys have to say.
And thanks in adavance to everyone that helps
Travis
|
|
|
|
|
tcombs07 wrote: And my question for you guys is how do I tell my service to check that asp page every so often to see if the web url has changed,
You shall use WebRequest[^] and WebResponse[^] classes. Using these, you can send request to the remote URI and get the status. So if you are getting a 404 message, you need to pull new URL and resend the request to there.
|
|
|
|
|
Hi all!
I have an issue regarding the property grid control. When property values are changed I create an undo/redo action using the "PropertyValueChanged" event handler. This works great when only one object is selected.
When multiple objects are selected the event is still only triggered once, and the 'PropertyValueChangedEventArgs' argument only provides the old value for one of the selected objects.
Does anybody know how I can access the old value for each of the selected objects within this event handler? Or perhaps there is an event along the lines of "BeforePropertyValueChanged".
Thanks!
Lea Hayes
|
|
|
|
|
Hi All,
I have a layer in my app that needs to get a handle on my main window. Its a WPF app so I can use something like:
WindowInteropHelper wih = new WindowInteropHelper(Application.Current.MainWindow);
The problem is that the layer that needs this handle is referenced by my presentation layer. How do I go about exposing this value from the presentation layer to the other assembly? I have looked at InternalsVisibleTo but that seems to be a bit all encompassing and more geared towards unit testing.
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
ahhh ... seems I'm being daft ... I was missing
using System.Windows
schoolboy error ...
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
Hi, as simple as it sounds i'm having difficulties to achieve this.
I have tried several ways but none of them works. This a part of my
code:
decimal amount = reader.GetSqlMoney(4).ToDecimal();
subtotal += amount ;
What happens is that the value returned every time from my
first line of code is zero.
Also when i tried for testing purposes to give that value
to a control's text property it works fine.
Thanks
|
|
|
|
|
I would do it like this:
decimal amount = (decimal)rdr["MoneyColumnName"]; Just cast to decimal and forget about money in the C# side of things. That's the way I have always done it and I have had no issues.
After all, in SQL Server money is actually a decimal with a specific precision.
|
|
|
|
|
i'm still getting zero as a result. do you think anything
else could be wrong that i should double-check?
|
|
|
|
|
Well, the obvious things. Is your query returning the value of a money column? If you execute your query in SQL Management Studio, do you get the correct value?
Could you show more code (creating the command, the parameters, the query or stored procedure, and so on)?
|
|
|
|
|
Do you close your Database Connection prior reading the DataReader?
Did you check the HasRows property for your DataReader?
Did you check while (reader.Read()) before casting the values?
example:
conn.Open();
SqlDataReader reader = command.ExecuteReader();
if (reader.HasRows)
{
while (reader.Read())
{
// your castings here
}
}
reader.Close();
conn.Close();
|
|
|
|
|
Hi All,
I'm just doing some work in DirectX and have a referencing question. Using this method on a device needs a handle to the main apps window the problem with that was my directX layer was referenced by the presentation layer so to actually set this to my apps mainwindow class i've had to reference the presentation layer from the audiolayer ...
Does it actually make sense to reference this way around or is there a better solution to this issue?
This is a WPF window and unlike WinFOrms (as far as I can tell) this isn't showing me a Handle property to specify, any advice on that would be great.
Cheers,
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
Have been doing a bit more digging at it seems that my fix is the way to go. Since WPF windows are essentially DirectX setting the SetCooperativeLevel to System.IntPtr.Zero is the way to go ...
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
"select name from table_a where birthday= "+ a.toshortdatestring();
hey guys,
when executing the code above i get a message like "data types are not the same". i think the reason is that access doesn't accept "12.10.2007" as a date. in db birthday is a column and its data type is date(shortdate).
I am trying to do it in c#(i mean executing the query above) and the result of the query will be kept in datagridview object.
how can i solve the problem ? any help is appreciated.
thanks
|
|
|
|
|
Use paremeterized queries. You'll avoid this kind of problems, but also you'll avoid a big security risk (SQL injection, see here[^])
DateTime birthday = new DateTime(1981, 8, 16);
string sql = "select name from table_a where birthday = ?";
OleDbCommand cmd = new OleDbCommand(sql, conn);
cmd.Parameters.AddWithValue("p1", birthday);
I hope this helps!
|
|
|
|
|
|
Hello,
i would share my application on the network(it use sqlserver2005 with oleDb), in the server, it works normally, and when I put a shortcut and I share there are an exception:
Failed to request permission of type 'Dat oleDb.OleDbërmission System, System.Data, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089'.
Please help me to share my application.
Thank you very much
|
|
|
|
|
Let's see if I understood correctly: You have your .EXE which works correctly on the computer it is, but if you run it from the network (eg. \\computer\share\myexe.exe ) you get that exception?
.NET has some security restrictions in which an executable run from the network doesn't get full trust permissions. What you need to do is:
1. Copy the .EXE to each client machine so it's run locally
2. Share the database on the server. OleDB can access databases on a network location
Google for ClickOnce, it might be of help to you.
|
|
|
|
|
how i can Share the database on the server. OleDB can access databases on a network location??
with Sqlserver2005 i add a connexion with name of user and password, but my application cant acces to database on server, pleas help me, thank you verry mutch
|
|
|
|
|
Sorry, I misread. I thought you were using Access because I read OleDb and answered another question about Access. My fault here.
Forget about that databse sharing stuff. SQL Server can be accessed the same way from the server or from any network computer (just be sure to use the real server name and not (local) in your connection string, and to enable TCP/IP for SQL Server, which by default comes disabled). The same connection string will work from everywhere.
For the permission thing, you need to copy your .EXE to each computer, instead of running it directly from the network location.
|
|
|
|
|
i'm wondering if anyone out there knows how to "enable" a form to dock inside of another form (like the tool box, solution explorer, etc. in vs.net) in c#.
source code would be most helpful and i don't want to have to instal anything to do this.
|
|
|
|
|
Try Google for docking controls?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hai codies..Greetings of the day
My Requirement is as follows..
I need to put multiple dockable windows in the same location.i.e. one window down the other ..without using the Third party tool..
I need to develop using c# ...Can any one help me out... I need sample code (if possible)...
Once again Precisely my requirement..
if i double click on the panel .It should be moved to left side of the parent window.
If i double click on another panel , am able to display only by the side of the previous docked panel.
Bur it should be moved to the same location of the previous window i.e it should be displayed down the previous window(column).
Please Help me out ...
thanks in advance .. Early response will be appreciated..As the target time for the completion is very Near....
Thanks again.
regards.
Subhashshastry@gmail.com
|
|
|
|
|
Did you try searching the site before asking? If you had, you would have found this article[^] that seems to do exactly what you want.
|
|
|
|
|
Hi Luis,
Thanks for the Patience in reading the requirement ..
It seems that my requirement is almost done.. I will let you know once it gets completed..
Thanks once again..
regards,
SUBBU
|
|
|
|