|
Hi friends,
Could anybody help me in finding fault with my web parts which r not moving?Previously I could move them,but now they cannot be moved!Other things r working well like renaming web parts ,closing,minimizing web parts etc...I checked if there is any problem in the less space of web parts,but there isn't any!Kindly help me asap,friends!
modified on Monday, December 8, 2008 4:31 AM
|
|
|
|
|
There are 5 Display Modes in WebParts.
DesignDisplayMode
BrowseDisplayMode
EditDisplayMode
CatalogeDisplayMode
ConnectDisplayMode
If you are in BrowseDisplayMode the you cannot move the webparts.
To move the parts you have to set it to either DesignDisplayMode or EditDisplayMode .
or If you never want the BrowseDisplayMode then add this code to your Page_Load() where wpManager is the name of your Web Parts Manager (WebPartManager1)
if(!Page.IsPostBack)
wpManager.DisplayMode = WebPartManager.EditDisplayMode;
if (!wpManager.DisplayMode.AllowPageDesign)
wpManager.DisplayMode = WebPartManager.EditDisplayMode;
|
|
|
|
|
Alreday I have done those things..I alreday have mentioned that I can do other things with web parts except moving now!So can i get help?
|
|
|
|
|
If you are using the ajax update panel, then you should put the webpartmanager inside the update panel. otherwise it will not allow you move webparts.
Also check that javascript is enabled in your web browser (dont use firefox).
Or just create a test project with two web part zone and test. if it is working fine then post some code, that you feel causing problem, otherwise something wrong with the browser.
|
|
|
|
|
Hi Rutvik,
I got it!
U r simply Great!
|
|
|
|
|
I have a datagridview that contains a LinkColumn. The link is set/edited in a popup window and the cell's value is updated programatically. The problem is that if the user is setting the value in the dgv's bottom row (the new row), a new row doesn't automatically appear below it like when the user types in a TextBoxColumn.
How can I force a new row to appear after the LinkValue has been set programatically?
My code this week has no errors. But it's Monday morning and I haven't got out of bed.
|
|
|
|
|
What happens if you put some dgv.Rows.Add here?
|
|
|
|
|
I can't because the dgv is databound. I would just like to know what the dgv is doing to add the new row when a user types text into a TextBoxColumn.
My code this week has no errors. But it's Monday morning and I haven't got out of bed.
|
|
|
|
|
Hi,
i heard about Process Explorer v11.3.
Is there any chance a hidden program loads without my knowledge?
i dont care about the efects of a particular software, virus or trojan, i which to know how to know all the programs that are loading at the current time. I dont know if there is a software like the above or taskmanager.
How can i create a software like this?
(code, links anything)
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
|
Are you trying to write something to monitor your system - like process explorer. Or are you trying to write something that runs hidden eg virus etc?
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You've been asking this for days. Please give it up.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Most likely there are applications loading without your knowledge.
Process explorer is a damned handy tool to view all running processes on your system. I don't see how that pertains to your question, you want to mimic PE or do you want to make your own software that will be hidden?
|
|
|
|
|
Hi All,
can someone plz let me know how can I put an .ico on windows form in c# (before the Form's "Text" property). i opened the .ico in windwos form Icon property, but it didn't appear on the form when i run it.
thanks heaps.
|
|
|
|
|
Is the ShowIcon property set to true?
Revolutionary: Disk drives go round and round.
|
|
|
|
|
Hi,
Form icons are set trough the Icon property; they only show for some FormBorderStyle values (e.g. Sizable, but not FixedDialog). Also ControlBox and ShowIcon must be true.
|
|
|
|
|
|
You're welcome.
|
|
|
|
|
Hello,
I'm writing a program that needs to know when a user do things to windows of another process (activate, drag/drop, whatever). I think I'd need to read the WndProc function of those windows, but how do I achieve that?
Also, how to notify my program in case some specific messages happens? For instance, if WM_ACTIVATE is sent to the window of another program, how can it triggers some function in my program?
Any lead is appreciated :p
Regards,
Tony
|
|
|
|
|
Tony_P,
this can be accomplished by doing the following:
- get the HWND of the application's window you want to hook to
- use GetWindowLong to get the windows WndProc and store it
- create a WndProc method in your app
- use SetWindowLong to inject your Wndproc into the other window
- after doing what you want in *your* WndProc, use CallWindowProc to pass control to the windows original WndProc (you stored it previously)
Please bear in mind that this is not possible in .NET without using DllImport to coredll.dll in order to have access to certain Win32 functions like SetWindowLong, GetWindowLong, GetWindow, CallWindowProc, etc.
Hope this helps.
Marcelo
|
|
|
|
|
I see. Don't worry I've already worked with DLLImports of the win32 api.
Thank you!
|
|
|
|
|
So I'm close to wrapping up a project, and a bug came up that only occurred to me now because I just started testing on Vista.
My application has a class autostart which writes a key to, as you probably guessed, start my application on start as requested.
Here is my class
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;
using System.Windows.Forms;
namespace ClientName.Sources
{
class Autostart
{
public string errorMsg;
public string ErrorMsg
{
get { return errorMsg; }
set { errorMsg = value; }
}
public string value;
public string Value
{
get { return value; }
set { this.value = value; }
}
const string filename = "MyCSharpApplication";
RegistryKey start;
public void WriteAutoStart()
{
try
{
string RUN_LOCATION = @"SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN";
start = Registry.LocalMachine.CreateSubKey(RUN_LOCATION, Microsoft.Win32.RegistryKeyPermissionCheck.ReadWriteSubTree);
bool ifExist = ifExists();
while (ifExist == false)
{
start.SetValue(filename, Application.ExecutablePath.ToString());
start.Close();
ifExist = true;
}
}
catch (Exception ee)
{
ErrorMsg = ee.Message;
}
}
public bool ifExists()
{
if (start.GetValue(filename) == null)
return false;
else return true;
}
}
}
And In my main forms on load I have AutoStart Start = new AutoStart();
start.WriteAutoStart()
This works fine on XP, it check's if it is there, if not it will write the key. On vista I get a nice little error that says Attempted to perform an unauthorized operation, even though the user double clicked my application icon.
Some research showed me right clicking on the application and clicking "run as administrator" will do the trick, but this is annoying to have a user do this each time.
So is there a way with code to bypass this? I suggested to just have a proper install file take care of this but the client doesn't want an install file. So that leaves me a bit in the dark.
Suggestions?
|
|
|
|
|
Vista sucks. It's not a bug, it's deliberate. The main answer is, you need to be testing stuff on Vista early, b/c Vista breaks a lot of stuff that used to work just fine.
It is possible to create a manifest file which causes your app to run as admin every time. I've not done it, but I remember reading about it when I had my own Vista hell.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Do you remember where you read that, anything on CP I might have missed?
|
|
|
|
|
well the quick solution was to use currentuser instead of localmachine, if you wanted to know
|
|
|
|