|
HI
if got the solution please post it as i also tried but because of security issue i haven't any way to do that ..............
i heard about Axtive X control can only do that ?
Finally i have changed my solution and got the result in different way
<l>Thanks and Regards
Sandeep
|
|
|
|
|
peshkunta wrote: I would like to be able to specifically change the ActiveX setting Enable/Disable, and the JavaScript one.
You and every virus writer on the planet. This would represent a major security hole, and is not allowed from an embedded control.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Wow...that's such a simple thing and noone here know how to do it.
All the security settings are in the registry, I don't see why it would be so hard for someone who knows. I think those webBrowser objects are useless if you can't change the settings of your own browswer object, from your own app. Come on guys that's ridiculous. Can a sound programmer please answer my question.
|
|
|
|
|
peshkunta wrote: Wow...that's such a simple thing and noone here know how to do it.
I think there are many people here who know how to do it.
peshkunta wrote: All the security settings are in the registry, I don't see why it would be so hard for someone who knows.
Yes, that is easy, but access is restricted from the sandbox of an ActiveX control. For reasons that have been clearly explained to you.
peshkunta wrote: I think those webBrowser objects are useless if you can't change the settings of your own browswer object, from your own app. Come on guys that's ridiculous.
No it isn't - And you know it!
peshkunta wrote: Can a sound programmer please answer my question.
A sound programmer would refuse to answer such a question.
|
|
|
|
|
Hi. I am a beginner. I wrote a program in C# bout it doesn’t work in the other computer. What I should do? Help me.
|
|
|
|
|
Hi. Install .NET Framework on the other computer.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Make sure that "other" computer has the NET Framework installed. The new Windows Vista will already have it pre-installed so people won't need to install the NET Framework like they have to usually with older Windows versions.
|
|
|
|
|
yesterday, when I test a part of my program on my boss's computer, I have a problem similar to you. Thus, we must do two things
- Install dotnet framework 2.0, include reference of Crsytal Report as needed
- Determine whether authentication of database is right.
|
|
|
|
|
Hi all,
Greetings. I've generated dynamic link button in GridView Column. When i clicks on the link button,there is no click event takes place. instead the link button disappears. Can any one of you Give me the soultion for this issue.
Thanks in Advance
Babu
|
|
|
|
|
Where have you written the logic for linkbutton click event??
Gautham
|
|
|
|
|
I need to open an Excel file that has been stored in the Access Database using the insert Object functionality of MS Access manually.
What i am aware of is that i cant just read the field containing the Excel File into a Byte Array and pass it to the Excel object in C#,as the file is wrapped in the OLE Wrapper used by Access while inserting the file in database.
I have tried locating the Header of Excel file from the byte array and read the file from there on but it is not working.
while (true)
{
if (0xE11AB1A1E011CFD0 == BitConverter.ToUInt64(byStream, i))
break;
i++;
}
output.Write(byStream, i, byStream.Length - i-1);
byStream is a byte array into which i have read the Excel file from Database.
I am locating the Excel file header in the byte stream and am writing the byte array to a file from that location.But on opening the written file it dosent work.
Similar approach had worked in case of Images but now in this case.
Can some one please tell me as to how i can open the Excel File.
|
|
|
|
|
I have a simple dialog box application that contains a listBox and a "start" button.
When the application is started, it performs several basic functions. Right after the function is completed, a command to update the listbox (for example)
-check if file exit
ListBox1.Item.Add("checking for file");
-create a directory
ListBox1.Item.Add("creating a direcory");
-copy a file
ListBox1.Item.Add("copy file");
........
The problem is that it performs all of the steps then at the end updates the listbox, all at once.
I am trying to do somethinng like the "Windows Updates"
any suggestions are appreciated
pc
|
|
|
|
|
Not sure exaclty if this is where you are trying to go, but there should be a Refresh() or Update() function that udates the list as it progresses. If I understand correctly the list doesn't appear to update until the very end, correct? If that's the case, then it seems strange to me it usually should update redraw automatically when you update it withough the Refresh() or Update() functions. If you can, post a part of your code so we can see where exactly you're going wrong.
|
|
|
|
|
Here is a snip of the code.
I keep running basic stuff like this
///////////////////////////////////////////////////////////////
string source="c:\\documents and settings\\all users\\Application Data\\Microsoft\\Dr Watson";
string destination="c:\\temp\\info\\";
//check if directory exist
if(!Directory.Exists("c:\\documents and settings\\all users\\Application Data\\Microsoft\\Dr Watson"))
{
//do tnothing
}
else
{
DirectoryInfo di = new DirectoryInfo(source);
FileInfo[] files = di.GetFiles();
foreach (FileInfo f in files)
{
string sourceFile = f.FullName;
string destFile = Path.Combine(destination, f.Name);
File.Copy(sourceFile, destFile);
}
}
//update the listBox
listBox1.Items.Add(">Getting DR. Watsons logs\t\tDone");
//*******************************************************************************************
string arg1="C:\\Program Files\\Common Files\\Microsoft Shared\\MSInfo\\MSInfo32.exe";
string arg2="/nfo c:\\temp\\info\\SysReport.nfo";
Process nfo = Process.Start(arg1,arg2);
nfo.WaitForExit();
//update the listBox
listBox1.Items.Add(">Getting system information\t\tDone");
////////////////////////////////////////////////////////////////////////////////////////
the process perfroms all of teh functions but the listBox1 gets updated at the end
thanX
|
|
|
|
|
Sometime when I use left/right/up/down key in Data Grid, the left/right key will affect the ComboBox field, cause ComboBox value changed , how could I solve this , thanks in advance .
|
|
|
|
|
Override the combo box and write a class which ignores teh keypress.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I've got a easier way from my friend to do this ! And thanks for your kindness reply !
In dataGrid1_CurrentCellChanged() Event , add statement "ComboBox.Enable=false" in beginning to avoid the interaction , and add statement "ComboBox.Enable=true" in ending to restore its attribute.
|
|
|
|
|
I have several "evaluation" functions. I first created a delegate for each and put them in an ArrayList. I traversed the list, invoking each function and stopping when a positive result was returned. I then found the "multicast" feature of delegates and simply added each delegate via myfunc += nextfunc.
I'm frustrated with this features because it appears there's no way to stop midstream. I've seen lots of talk about enumerating the collection but why do that?
Does anyone know how to invoke a (multicasted) delegate and then, when in the midst of one of the functions, stop and return a result?
Thanks in advance
|
|
|
|
|
I understand the multicast feature as a way to get all "listeners" being called,
without guaranteeing a specific order, and without expecting a return value (how
could you return one value from multiple methods ?).
So if your evaluation functions need to be called in a specific order until some
condition is met, I dont expect multicast to be the answer. I suggest you stick to an
ArrayList.
Luc Pattyn
|
|
|
|
|
I'd like to do something like this:
delegate void Evaluator();
some_func()
{
Evaluator Evaluate = new Evaluator();
Evaluate = new Evaluator(eval_1);
Evaluate += new Evaluator(eval_2);
Evaluate();
}
Evaluator eval_1()
{
// found something
if ( found_something )
{
Evaluate.EndInvoke();
}
}
Evaluator eval_2()
{
}
|
|
|
|
|
I forgot to mention, I've got it all working... I just let all of the delegates run and each function only modifies a ref var if the evaluation is meaningful. It's just frustrating that there's no way to stop the firing of delegates when they're multicast. It would be nice if I could do:
Evaluate.BeginInvoke();
and then in each evaluator function when it's time to stop in any particular function simply call
Evaluate.EndInvoke();
I've ready elsewhere that this causes an exception. Perhaps the best way out of this is just to:
try
{
Evaluate();
}
catch()
{
}
and then simply throw an exception of my own in each evaluator function when it's time to stop.
lol
|
|
|
|
|
Yes I understood from the beginning that such was your intention, but you are
assuming that all delegates are executed in a specific order, and AFAIK there
is no documentation that promises that.
For me the observation that something works is not good enough, if it implicitly
relies on undocumented behavior.
Of course, EndInvoke is intended to be used by the caller to obtain asynchronous
results, rather than for the callee(s) to terminate the sequence of calls.
Luc Pattyn
|
|
|
|
|
I'm writing a process that splits a multi-page tiff image into a bunch of single page tiffs. I'm using the MODI framework for this. I can not figure out how to create a new tif image. the MODI.Document.Create requires a filename of a file that exists.
THANKS!!!!
|
|
|
|
|
I am not familiar with MODI.
From the MODI documentation on Document.Create[^]
I understand it intends to create a document (not a TIFF file) and
it reads an existing TIFF file to use it inside the new document.
I'm not sure I understand how that fits your plans...
Anyway, the following C# code snippet would create a TIFF file with a dummy image:
int width=1;
int height=1;
Bitmap bm=new Bitmap(width, height);
bm.Save(fileSpec, ImageFormat.Tiff);
Does this help ?
Luc Pattyn
|
|
|
|
|
Hello everyone,
i'm trying to develop application that detect the caller id using tapi 3.1
i found alot of samples on codeproject and so many differant sites but they are all didnot work
and i have a softwear called audio caller id and it made using tapi and it's working fine and detected the caller id so could anyone help me urgently please ?
|
|
|
|