|
Is it being displayed by the packages you are trying to run?
only two letters away from being an asset
|
|
|
|
|
Your code can't turn this window off and can't skip it itself. It's a security setting on the users workstations that's causing it to pop up. The reason is that the code is being launched from an untrusted source, like a network share, and the system is telling the user that he's about to launch another process that he might not want launched.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
So i'd need to change the permissions of the batch file on the users pc?, If the batch file was included with an installer, e.g: the installer creates the file on the users PC, then as the user has created that file, wont it be trusted automatticly?
Regards,
Gareth.
|
|
|
|
|
gareth111 wrote: the installer creates the file on the users PC, then as the user has created that file, wont it be trusted automatticly?
There are no permissions to change to get this to work. Windows knows that the file didn't come from a local source, so it won't be truste, by default anyway. You can install it from an MSI, but even then, the MSI won't be trusted if it's comming from a network source.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Anyone know how to, or seen any articles on installing a printer programmatically? It is one of the standard drivers that comes with Windows XP. I would like to do it using C# and hopefully
use in a Deployment project.
Thanks,
Gerald.
Gerald Stanford
|
|
|
|
|
No by directly using the Win32 API, but by using WIndows' PrintUI.DLL. Just google for "printui.dll" and you'll come up with a bunch of information on how to use it from a command line.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi
i have many records in datagridview. i want to print these rows but how to print these rows in vs 2005??
thanks
|
|
|
|
|
The DataGridViewPrinter Class[^]
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
I would need a function to copy unsigned short values from a IntPtr to a ushort[]-array, but the Marshal.Copy-function only support the short[]-array!
At the moment I do it the following way:
<br />
... <br />
<br />
IntPtr pResult;<br />
int len;<br />
<br />
CanIpuExecCmd(mid, hid, did, data, data.Length, out pResult, out len);<br />
<br />
short[] tmp = new short[len];<br />
Marshal.Copy(pResult, tmp, 0, len);<br />
Marshal.FreeHGlobal(pResult);<br />
<br />
ushort[] result = new ushort[tmp.Length];<br />
System.Buffer.BlockCopy(tmp, 0, result, 0, len * 2);<br />
<br />
return result; <br />
Is there no nicer way to do it?
Regards,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
|
|
|
|
|
Hi Guys,
I'm writing a program which involves buffering Image objects into an array. I'd like to be able to display how much RAM is available and then calculate the optimum number of images to buffer.
Can anyone tell me if I can find out a value for the currently available RAM from within C#/.net?
Many thanks,
Simon
|
|
|
|
|
Hi,
I was also trying the same thing but i couldnt find that, apart from that i found the following
myprocess=System.Diagnostics.Process.GetProcesses();
for(int i=0;i<myprocess.length;i++)
{
="" handles+="myprocess[i].HandleCount;
" threads+="myprocess[i].Threads.Count;
" pagedmem+="myprocess[i].PagedMemorySize;
" nonpagedmem+="myprocess[i].NonpagedSystemMemorySize;
" peak+="myprocess[i].PeakPagedMemorySize;
" limit+="myprocess[i].PeakWorkingSet;
" cach+="myprocess[i].VirtualMemorySize;
" }
this="" is="" just="" for="" your="" information....
=""
<marquee="">nishu
|
|
|
|
|
you can find available RAM of local system using
PerformanceCounter ram=new PerformanceCounter("Memory","Available MBytes");
float availableram=ram.NextValue();
Hope this will help you
|
|
|
|
|
Great, thanks for your help guys!
|
|
|
|
|
how do i get the path of an open file in windows using c#.
I want to get the path of the word documents which are currently open.
note that the documents are not opened through any application.
Any ideas..
Luck is Opportunity with hardwork
|
|
|
|
|
hi,
I dont know ecxactly but I think you should look in the direction of "process"
May be you can get some idea from there,I am not sure but you can try that out.
<marquee>nishu
|
|
|
|
|
Hi thanks for the reply...
Ofcourse i have an instance for all the processes which are currently running in my system ,But i have to get the path of that process...
Is it possible...?
Luck is Opportunity with hardwork
|
|
|
|
|
Hi
I got 2 user controls in a page. In 1.ascx, I got a datagrid which contains a button for each value. If I click a button, the textboxes in another user control 2.ascx should be set according to the button value.
Can I do this in just button_click event?
|
|
|
|
|
This is some sort of problem created by myself, and the thing is I am not able to find out why the the event datagridview1_rowvaliditing event is not being fired when I leave my customized datagridview.
Whenever I add a new row in datagridview and click on a button outside the grid the rowvalidating event should fire so that row goes into the binded datatable of the grid. But this event does not fire and my added row does not go into datasourcetable and hence I am not able to save the added row to database.
The workaround is that if I add a new row and move to some other row then this event fires and datatable gets updated.
Ideally, this row should get added as soon as I leave the grid, and rowvaliditing event should be fired, but I do not know what is the reason that thing does not occur.
I know I have made some mistake somewhere but I am not able to figure it out.
Someone please help. Thanks in advance.
Thanks,
RajKat
|
|
|
|
|
This is some sort of problem created by myself, and the thing is I am not able to find out why the color of a datagridviewcell is not changing to the color that I give.
I am using :
datagridview1.Rows(0).Cells(0).Style.BackColor = Color.Orange
But this does not work.
A normal datagridview allows this to work. I know I have made some mistake somewhere but I am not able to figure it out.
Some please help. Thanks in advance.
Thanks,
RajKat
|
|
|
|
|
RajKat wrote: datagridview1.Rows(0).Cells(0).Style.BackColor = Color.Orange
Try brackets rather than parenthesis:
datagridView1.Rows[0].Cells[0].Style.BackColor=Color.Orange;
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
I have an application written in C# with SQL server Dbase . Would like to convert the same application to Web Enabled as ASP.NET without having to Re-write the code again in ASP.NET . Can anyone help in that ?
UnitecSoft
We will Either Find A Way , Or We Will Make One .
|
|
|
|
|
If you designed it properly then all you need to to is slap on a different UI - All your business logic and database interaction should be separate from your UI.
|
|
|
|
|
unitecsoft wrote: I have an application written in C# with SQL server Dbase . Would like to convert the same application to Web Enabled as ASP.NET without having to Re-write the code again in ASP.NET . Can anyone help in that ?
Your question is a little broad and doesn't provide a lot of information about the design of your current app. As Colin says, if your app has been designed well and seperates UI, Data Access and Business logic then it should be a fairly straight forward job to replace the existing UI with a web front end. (Although that depends on the complexity of the UI as the stateless nature of HTTP can make it hard to convert a WinForm to a WebForm directly)
|
|
|
|
|
Basically, there is no tool to convert a Windows Forms app to an ASP.NET app. The ways each work with it's own forms are so different, a direct translation is not possible. You're stuck re-writing your application.
But, as Colin said, if your application was written properly, meaning that you kept your business and data logic in classes seperate from your application code, you've minimized the work you have to do rewriting your UI code. Properly written Business Logic and Data Access layers will be completely independant of the User Interface code. This way, you only need to write a new UI layer if you want to support multiple types of clients, like Windows Forms, ASP.NET, Pocket PC's, mini browsers (cell phones), or Embedded systems.
Google for "3-Tier" and "n-tier" application development and you'll find TONS of resources on how to properly write applications that support this.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
How to convert Int to DateTime and vice versa?
Thanks and Regards
Madhu
|
|
|
|