|
I asked the user to set internet explorer as his default navigator instead of firefox and he was finally able to run it correctly.
There is something that I just don't understand though... I have tried reproducing the problem by installing firefox and setting it as the default browser and this doesn't happen to me. I don't have FFClickOnce installed there... So why does the error not occur?
Also, I have many users that use firefox and don't have the problem..
1. Why do some users with firefox encounter the problem and others don't???
2. Is there a complete recommended solution that is user-friendly?
3. Does upgrading to Visual Studio 2008 solve the problem? If it does do I have to upgrade to the .net framework 3.5 or can I use .net framework 2.0 with VS2008 to solve the problem?
|
|
|
|
|
1. Dunno. Different config maybe? Do you get many users with FF problems? Try to get sys info off of as many of them as you can and see if they all have a common factor, like maybe there is a clash with a plugin they are all using.
2. Dunno. Not until you figure out exactly what is causing the problem.
3. Very unlikely. VS 2008 / .net 3.5 still use the same CLR & clickonce framework. .net 3.0 & 3.5 is basically just a stack of extra libraries on top of .net 2.0. and vs2008 is just an updated GUI and new c# compiler. There is no change to the runtimes.
Simon
|
|
|
|
|
Ok i have a DataTable containing a number of rows. I have two DataViews from this dataTable, one shows all the rows with a few hidden columns including a descriptionField, sorted by a date field. The second shows any rows that have a descriptionFeild that contains data only.
The reason behind this is i'm producing a printable form that shows additional information if there is any on a seperate page to the rest of the data. Is there any easy way that i can get the index from one view to feedback into the dataset so it can be displayed by the second view.
e.g.
data set:
date code time description
21/11/08 DOC 00:12 document detailing house sale
22/11/08 LTO 00:06
22/11/08 LTI 00:06 responce to house sale document recieved
data view 1:
date code time
21/11/08 DOC 00:12
22/11/08 LTO 00:06
22/11/08 LTI 00:06
data view 2:
description
document detailing house sale
responce to house sale document recieved
what i need is data view 2 to either have a column with the index from its row in data view 1, or any other way of getting that index.
Hope i have explained this well enough, googling for other people with the same problem showed lots of badly written and confusing examples of the same problem and no useful answers.
|
|
|
|
|
|
Problem:
The question may be of basic nature but since I am new to MOSS, I am not able to acheive my objective.
I have a site in which I want to schedule an event using an Infopath(Office 2007) form. I am able to publish the form into my form library by checking the option 'To netwrok location'. My requirement is to create an entry in a Custom list when I submit this form. I have tried a number of options found in the Internet but am unable to do so.
Can someone please help me out in doing this?
|
|
|
|
|
Did I post it in the wrong forum?
|
|
|
|
|
Hi everyone,
I need help on two issue I faced during the making of my console program in .net(Any either C sharp or VB.NET).
(1)1st is that the console program I made doesn't have the basic contex menu like the cmd has one and pops up when we right click on anywhere on the black area.I want the same or something similar to that one.How should I proceed?
(2)2nd is when we launch a cmd program from cmd itself the program runs in the same window as of the cmd's own.Like if we run ping.exe then the cmd doesnt open a new window for it .Instead of that it simply runs the program in the same window.In my program I want to launch other console application(made by myself) but not in other window but the same of mine.How to do that?
Any help in C# or VB will be helpful.
Thanks in advance...
Dan
|
|
|
|
|
Dan Suthar wrote: console program I made doesn't have the basic contex menu
Console application takes input from the command line and while running it may receive input from Console class and produce output. However, console application does not have graphical user interface elements (neither does cmd, the menu comes from the window where cmd runs)
Dan Suthar wrote: In my program I want to launch other console application(made by myself) but not in other window but the same of mine
Didn't quite understand this. You can use Process class to start another process. If needed you can communicate with that process from your program even if the process doesn't have UI of any kind
|
|
|
|
|
Let me explain my problem.I have made one exe of console programs namely a.exe.Now when I run the a.exe by double clicking on it ,it opens a usual console window and runs further in it.Now the window that just opened doesn't have the contex menu.You may have seen the one in the orignal cmd.exe.I am NOT refering to that when we right click on titlebar but the one when we click on the black area in cmd.
Mika Wendelius wrote: neither does cmd, the menu comes from the window where cmd runs
So is there a way to bring that in mine a.exe program so that when I right click ,it popus up.The menu generally useful because it contains comands like paste and find etc.
And,
Mika Wendelius wrote: You can use Process class to start another process
So thanks for solving my second problem.
Thanks,
Dan
|
|
|
|
|
The only console windows that get the context menu you're talking about are the ones launched by CMD. This is a window that CMD wraps and adds the context menu and various other little tidbits.
Any process that is launched by doubling-clicking on it is not run under CMD, so you don't get the context menu or anything else you would normally find.
A console window has NOTHING to do with a "DOS" prompt. It's just a text window, kind of like a terminal emulator.
|
|
|
|
|
Ok, Now I am getting the matter.So only the cmd itself has the context menu !
Thankyou very much for sharing your knowledge
|
|
|
|
|
Thanks for replying to this. Didn't have the opportunity earlier. This was exactly the thing what I was trying to explain.
|
|
|
|
|
I m trying to open a zip file selected by user and extracting it....
It runs fine for the first time but when i again clicks on the open file button and selects a zip file. It throws an exception:
The process cannot access the file "file.png" because it is being used by another process
Note: file.png being one of the files extracted from the .zip file.
I think the FileStream object is not releasing the file after opening it. I tried using f.Destroy() and f.close() but they didnt work. Also the code runs for the first time successfully and it creates an error when another .zip file is opened (using the openfiledialog box) after opening the first file successfully.
String filename = openFileDialog1.FileName;
ZipInputStream zis = null;
FileStream f = new FileStream(filename, FileMode.Open);
zis = new ZipInputStream(f );
ZipEntry ze=null;
while ((ze = zis.GetNextEntry()) != null)
{
FileStream fs = null;
fs =System.IO.File.Create("d:\\puzzlesolver\\pieces\\"+ze.Name);
int size = 2048;
byte[] data = new byte[2048];
while (true)
{
size = zis.Read(data, 0, data.Length);
if (size > 0)
{
fs.Write(data, 0, size);
}
else
{
break;
}
}
fs.Close();
}
f.Close();
f.Dispose();
zis.Close();
zis.Dispose();
|
|
|
|
|
Hi,
this is the most likely explanation:
if you want write or delete access (anything other than read access) to a file
that just got created (by yourself or someone else, does not matter),
chances are you will find the file is being accessed by some other process,
and your access is not granted.
The other process very likely is some server code that is there to assist you
somehow. Candidates are:
- anti-virus software (Norton, McAfee, whatever)
- indexing software (Google Desktop, MS Office, whatever)
The common thing is these packages are looking all the time for new files, so
they can inspect them.
Microsoft is aware of the consequences; Windows Explorer will try rename and
delete attempts up to five times (with one-second interval), and only reports
failure if the action continues to fail for that time.
The solution:
1. either use a different file name
2. or remove all background reader candidates (bad idea)
3. or implement the retry loop as Explorer has it (use a Windows.Forms.Timer
for this)
BTW: if all you need is Read, make sure to allow others to read as well, i.e.
use File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read)
If you are convinced something else is going on, add try-catch (you should have done that straight away, every time and as soon as you do some I/O), display the entire exception text and the file name, note down the line numbers, tell your IDE to show line numbers, and publish all the details here.
locate the offending line.
|
|
|
|
|
Thank you so much... Your help made it work... i used
FileStream fs;
fs =System.IO.File.Create("d:\\puzzlesolver\\pieces\\"+ze.Name,2048,FileOptions.Asynchronous);
and write the stream on to this file....
|
|
|
|
|
Hello,
Im trying really hard to understand pointers, the good thing is that i understood the basics of pointers, the problem is that there is this question that confused me alot!
Here is the question:
Write and test a function that uses pointers to search for the address of an integer in a given array. If the integer is found, the function returns its address within the array; otherwise it returns NULL.
function to be used: int* search(int* p[], int n)
I tried to solve it but it keeps getting me confused more and more.
Am using Microsoft Visual Basic C++ (.NET).
Am really grateful for any kind of help possible.
Thank You.
|
|
|
|
|
Sorry, we don't do homework for you here.
Boo10 wrote: Am using Microsoft Visual Basic C++ (.NET)
I think this is your problem. What the hell is "visual basic c++ .net"? I think you may be slightly confused about what language you're using. (Check with your lecturer that you are using the same language as them. You will struggle to do this in the wrong language. As far as I'm aware, visual basic doesn't support pointers)
Break it down into steps. If you understand pointer basics like you say, each step should be fairly straight forward to write.
You need to write a function that take a pointer to an array of integers and an integer to search for. You need to loop through the array and check if any of the values it contains matches the integer you are searching for. When you find a match, you need to get a pointer to that value and return the pointer. If you don't find a match and get to the end of the array, you just return a null pointer.
Simon
|
|
|
|
|
Simon Stevens wrote: What the hell is "visual basic c++ .net"?
Nice catch. I wonder what the hell that was
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Boo10 wrote: Am using Microsoft Visual Basic C++ (.NET)
No such thing as Visual Basic C++. There is either Visual Basic or C++, make up your mind.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Attend an upcoming MSDN Developer Conference [^]and you will receive a Windows 7 Beta 1 DVD either at the event or mailed to you (depending on Windows 7 Beta release date).
Register today [^]and you’ll get the best of the PDC in your own backyard and hear all of the exciting announcements around the Azure Services Platform and Windows 7. The day-long conference is held in Houston TX, Orlando FL, Atlanta GA, Chicago IL, Minneapolis MN, Washington DC, New York NY, Boston MA, Detroit MI, Dallas TX, and San Francisco CA between December 9 and February 19.
- Experience Windows Azure. Create applications that seamlessly bridge the gaps between PC, Web, and phone
- Be among the first to see Windows 7. See the latest advances in Multi-Touch Application Development.
- Take your .NET skills to the next level. See sessions on WPF 4.0, Silverlight 2, The Future of C# and VB, ASP.NET 4.0, Live Mesh and more
Check out the sessions here[^]. Cost is $99.
|
|
|
|
|
Hi,
I wrote an application that able to connect another bluetooth device in .Net Framework 2.0 using bluetooth API, now I want to do this with .Net Compact Framework on my mobile device. That's the problem, When I'm Calling Bluetooth API like WSAStartup or using SizeOf method of Marshal class, it gives me NotSupportedException exception.
Please tell me how can i solve this problem.
Thank you.
DMASTER
|
|
|
|
|
You're going to have to rewrite the code to do whatever it is you want a different way, since, well, what you're doing now is NotSupported on .NET CF.
BTW: You might want to post future queries to this problem in the Mobile Development Forum.
|
|
|
|
|
Thanks for your reply dear Dave.
But I hadn't rewrite my previous code in .net compact framework, I know all methods and parameters that should be set on .net compact framework. Ok, Lets suppose that you are right, so what about SizeOf Method . If you refer to msdn, you can see that, it's marked as supported on .net CF.
Thank you.
|
|
|
|
|
You never showed the code and line where the exception occured, so it's impossible to say anything else.
|
|
|
|
|
I am creating n pictureboxes and then setting a different image on each one of them in a loop. The user clicks on open n opens a .zip file (containing images only). I am unzipping the .zip contents in a folder and am able to extract the images from there.For the first time the pictureboxes rightly shows the images. But when again user click on the open button and select a .zip file to be opened. The new images doesnt appear completely.
Problem could be: previous images are not getting removed so are not allowing the new images to appear.
Language: c#
code:
pb = new PictureBox[r*c];
Point point = new Point(100, 100);
for (i = 0; i < r * c; i++)
{
pb[i] = new PictureBox();
{
pb[i].Dispose();
}
pb[i].Image = null;
}
int w = 800 / r;
int k = 0;
int h = 700 / c;
int a = w, b = h;
for (i1 = 0; i1 < r; i1++)
{
b = 15;
for (i2 = 0; i2 < c; i2++)
{
pb[k] = new PictureBox();
pb[k].Image = null;
pb[k].Size = new Size(w, h);
this.Controls.Add(pb[k]);
if (i1 == 0 )
{
pb[k].Location = new Point(10, b);
}
else
{
pb[k].Location = new Point(a, b);
}
b = b + h;
Bitmap img=new Bitmap("d:\\puzzlesolver\\pieces\\piece"+i2.ToString()+i1.ToString()+".png");
Bitmap img1 = new Bitmap(img);
pb[k].Image = img1;
pb[k].SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
pb[k++].Update();
this.Update();
}
a = a + w;
}
this.Update();
I have tried a lot of things please tell me how to remove the existing picture boxes which are dynamically allocated and then add them again. I hope m clear!!
|
|
|
|