|
Hi,
I have self signed certificate and I am running my java web service on tomcat on https. I can access the wsdl with the browser. I need C# client to access this service. I already have a C# client that uses this service via http.
So I generated the stub with wsdl c# utility. What do I do next so I can use my java web service in c# client via https.
Thanks.
|
|
|
|
|
Hi Everyone,
I am working on a C# windows application in DotNet 2005. I want to show some address form DB on Map, and plot the route also. I checked the Virtual Earth. If I am using the Virtual Earth, I have to make and HTML page and show in the Web Browser control. But by this I wont be able to communicate with it from my Windows Application.
As I am very new to this thing... Can anyone who has worked on this type of things, please tell me what is good to use in my situation Virtual Earth or MS Mappoint ?
Thanking in advance.
Priya
Priya
|
|
|
|
|
How to create a DSN programmatically in C#? I need to create a DSN for Oracle.
|
|
|
|
|
For Oracle, I use the classes in Oracle.DataAccess.Client
I start with an XML file with a list of databases:
<ORACLEHR Type="ORACLE" Server="servername" Port="8080" Username="HR" Password="hr" />
and pass the information to something like:
string.Format
(
"Data Source={0}:{1};User Id={2};Password={3};"
,
Server
,
Port
,
Username
,
UserPassword
)
to produce the connection string.
|
|
|
|
|
|
Just wondering if anyone has tried this. Firefox add-ins are done with C++ and their Gecko API, but me being a lazy .NET programmer and not wanting to get all hardcore again, I was wondering if anyone's tried doing a .NET COM wrapper for a Firefox add-in.
I've made add-ins for another native application this way, but I had help with the COM side of it(by the developer who wrote it in VB6), and so I'm not sure what the procedure would be.
Any ideas?
|
|
|
|
|
I haven't done anything with it, but I've heard a couple of people (can't remember who) say they did it and found it to be a nightmarish process.
|
|
|
|
|
Hi. I am having problems with configuring my crystal report. When I attached a dataset to my application, and dragged the table from my newly created database to the dataset, and added a .rpt file which is a crystal report; on the ADO.NET node (which is in the Crystal Report Wizard), I was able to see the dataset I just added plus the table I dragged into the dataset.
However, when I attached my old database, which was created months ago, I cannot seem to view the table I dragged into my dataset. It's always empty. That's why I cannot create the fields needed on my added crystal report. Why's this? And does anyone know how I can deal with this?
|
|
|
|
|
hi,
does your dataset in CR matchs 100%(variables type) with the store_procedure output(for exemple) from the database?
do you get that kind of error only with images or with everthing?!
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
I'm not sure. But I'm only having problems with my old database. When I created a sample database and attached it on my CR, it recognizes the tables attached to the dataset. However, with my old database with procedures, the CR wizard cannot recognize them at all. I have no images in my database. Just pure text and integers.
|
|
|
|
|
Hi guys,
This might be a broad question for help but I request any suggestions. I have an application in which upon login I hide it with the use of a notify icon. As transactions happen, my hidden app calls another form which works fine for the most part but sometimes the form that I call, upon closing it shuts down my hidden application as well. Is there a way for me to troubleshoot this or avoid this issue.
Please advice.
Thanks in advance
Sameer
|
|
|
|
|
Can you show me code which close form
|
|
|
|
|
the form which you want to close. the deactivated() event of that form include code this.close();
|
|
|
|
|
I don't understand. What do you mean by deactivated event. Instead of using this.close() do you think I should use Form.ActiveForm.Close();
Sameer
|
|
|
|
|
it's a huge piece of code so I will try and explain it. The form that I am trying to close that is closing my application is:
1. visible=false
2. the part where I call this.close(), I am sending a print job upon which I call this.close().
So, when I call the close, my form is still invisible.
Sameer
Sameer
|
|
|
|
|
How you create this form?
|
|
|
|
|
|
Please,Show me code show/hide form.
Maybe
this.close replace by
visible=false
|
|
|
|
|
here is some code
here is my hide application code:
public void HideApp()
{
//this.WindowState = FormWindowState.Minimized;
Hide();
}
This is when I open the new form which upon closing is shutting down the whole application.
this.timer1.Enabled=false;
try
{
Payment frm = new Payment(m_pDBCnn, m_pDBUserId, m_pDBPassword, EmpId, TermNum, SiteId, TrnNum, LogId, SystemConfig);
if (frm.ShowDialog(this) == DialogResult.Cancel)
{
Status = frm.Status;
if (Status == 1)
{
this.timer1.Enabled = true;
this.PopulateInvoices();
}
}
}
catch (Exception ex)
{
MessageBox.Show("Error in payment, contact Administrator\n" + ex.Message, "SelecSoftware POS™", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
Sameer
|
|
|
|
|
The general pattern for this is to have the main form - the one that is hiding in the system tray - own a reference to the other form.
Then when that child form needs to close, either call this.Close() from inside the child form, or have it call an event. The parent form(the one that's hiding) will subscribe to that event, and call Dispose() on it's reference to the child form. That should kill the child form while leaving the parent form running in the system tray.
Just don't call Application.Exit() or it will kill all your forms.
|
|
|
|
|
Do I do this by using delegates?
Sameer
|
|
|
|
|
If you mean the second method with the events, then yes and no. Yes, events use delegates behind the scenes, but no you don't have to actually declare any delegates yourself.
Just declare an event on the child form using the basic EventHandler class, and then inside the parent form you create an instance of the child form, and subscribe to the event with the += syntax. The parent form then provides an event handler(just like button1_Click) and inside that method you can call Dispose() on the child form. Or set it to null, it's basically the same thing.
on the child form:
public event EventHandler CloseMe;
on the parent form:
ChildForm myChildForm = new ChildForm();<br />
myChildForm.CloseMe += new EventHandler(CloseMethod);<br />
and make sure the child form calls that event when it wants to be shut down.
Of course depending on what you're doing, it would probably be easier to just call this.Close() inside the child form, but then the parent form wouldn't know about it.
I haven't used these inline code blocks before, so hopefully that formats ok.
|
|
|
|
|
I am using this.close() in the child form and I believe that is what is shutting down my application. What I have noticed is it shutsdown around the time I send a print job. I have this.close() right after I send the print job.
I am using the same namespace in my child and parent form even though they are a part of a different project, would that cause the issue?
Sameer
|
|
|
|
|
That i'm not sure about. Maybe try handling the Closing event on the parent form, and then put in a breakpoint and look at the call stack. it'd be interesting to see what methods were called right before the main form closes.
|
|
|
|
|
Is there a simple way to do a ASCII to HEX conversion for Intel HEX files? I know how to convert a "3" to 0x33, I need to convert a "3" to "0x03" and a "F" to 0x0F. I am converting an Intel HEX file to binary and they do an ASCII representation of the file.
I need to make a string like "3F" equal to 0x35, two characters into one byte. I have used the following code but it only works with numeric characters, it throws an exception when an alpha character passes into it because of the Byte.Parse method. I have checked Convert class methods but none of them stuck out as a solution.
byte result = 0;
char hi = '3';
char lo = 'F';
byte bHi = Byte.Parse(hi.ToString());
byte bLo = Byte.Parse(lo.ToString());
result = (byte)(bHi * 16);
result = (byte)(bHi + bLo);
Any help is appreciated, Thanks!
modified on Friday, December 5, 2008 11:15 AM
|
|
|
|