ClickOnce - How to add config file to list of files that get published
This (seemingly) simple item has escaped me after pouring over tons of
posts about ClickOnce. How does one add a config file
(myapp.exe.config) to the list of executables and dlls that get
published with a ClickOnce application? All I want to do has have a
standard config file get dropped down in the folder where the
application gets run from. I don't want to have to edit the manifest
every time I publish. When you go to the publish tab in the project
settings and click on the "Application Files" button, it seems to find
the EXE, and DLLs correctly. How can I make sure that my config file
gets added to that list as well? TIA
Roy Tag: Data Form Wizard Tag: 107075
How to dynamically resize form and add controls
Hi,
*I originally posted this in c# but was advised to repost here. I'd
really appreciate any answers you may have, i'm programming using
Visual Studio C# Express.
Thankyou*
I will outline what i'm trying to do here, and would really like to
here your suggestions of how I can do it please.
I have some code which finds the open internet explorer windows. I
would like to display a form that allows the user to choose one of
these windows. I have generated an arraylist which contains all
internet explorer window objects, and I am able to count how many there
are and retrieve information from each by using properties such as
arraylist.count
My question is how do i build a form that displays the name and url's
of the windows? do i use labels? do I use text boxes? How do i
automatically assign the right number to handle however many internet
explorer windows are open? Sometimes there may be 2 windows open,
sometimes there may be 15... etc...
Just to stress i'm not asking how I actually determine url addresses
etc.. from internet explorer, after much learning i can now do this.
I'm asking about the construction of a (dynamic?) form to display this
information.
The idea is my user will select one of the windows they want to work
with from this form.
*I am a beginner please remember!
TIA
Gary. Tag: Data Form Wizard Tag: 107072
How to print a ListView?
Hi everyone,
this should be a quick question. I am use ListView control to bind
some date,now I need to print the infor in ListView.Howeve,there is not
some method call ListView.Print(), So anyway, if anyone knows of how
to deal with that, I'd love to hear about it.
Thanks!
Kiven Lee Tag: Data Form Wizard Tag: 107066
How to reference a control
Hi,
If the control's name is stored in a string one can iterate through the
controls collection of a form to access the control.
dim s as string="chkIsValid"
dim chk as CheckBox
for each ctl as control in me.controls
if typeof ctl is CheckBox andalso ctl.name.tolower=s.tolower then
chk=ctype(ctl,Checkbox)
exit for
end if
next
Is there a faster (and more elegant) way to do so?
Thanks
Leo Leys Tag: Data Form Wizard Tag: 107061
Bind ApplicationSettings to RadioButton
Hello,
I want to offer a three-choice option in my c# winforms-app. To I would
like to bind this setting to three radiobuttons.
How can I bind a radiobutton to one of the three values this option can
carry?
There is only a "checked"-binding.
I hope someone can help me!
Thank you!
Regards,
uwe Tag: Data Form Wizard Tag: 107057
MI5 Persecution: BBC h2g2 online
BBC h2g2 16/Sept/1999
The BBC's h2g2 website is billed as "Earth Edition of The Hitchhiker's Guide to the Galaxy!". Naturally, one of its pages
is about me, me, me. It starts off with the lines;
Every now and then something comes along which makes you
think "Ah! That's what the Internet is for!" Mike Corley
is one such case.
The page itself can be found at http://www.bbc.co.uk/dna/h2g2/alabaster/A164404
The user comments linked from h2g2 are less than respectful, but given the point of view my website promulgates that is
understandable. It's true that without the communications ability afforded by the internet, which came along at just the
right time, my complaints would be getting nowhere. But that's a two edged sword also; miniature cameras only appeared
around 1990, so the advantage of technology is up to the adopter. Secret service intrigues, and on the other side of the
coin human paranoia, have both been going on for centuries; what changes now is an increased technologisation of both sides.
400
--
Posted via a free Usenet account from http://www.teranews.com Tag: Data Form Wizard Tag: 107051
Control.Remove() increases CPU usage and hangs application
Hey guys,
I have an app where i create a text box dynamically on a control and
user enters something and once looses focus (leave event) i remove it
from the user control.
Once i try to focus another control in the app, Control.Remove() hangs
the app and when i see the stacktrace Control. (app hangs in the
Control.GetNextControl() method.
here is code to create and remove textboxes.
am i missing something? Do i need to use GC.Collect()???
any help would be appreciated.
private void GenerateTextBox(Point location, Size size)
{
if (textArea_ == null)
{
this.SuspendLayout();
/Code for dynamically displaying the textbox for inline editing
textArea_ = new TextBox();
textArea_.Location = location;
textArea_.Size = size;
textArea_.Multiline = true;
textArea_.MaxLength = 200;
textArea_.BorderStyle = BorderStyle.FixedSingle;
textArea_.Leave += new EventHandler(this.textArea_Leave);
textArea_.Font = new System.Drawing.Font("Tahoma", 8.25F,
System.Drawing.FontStyle.Bold,
System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
textArea_.KeyDown += new KeyEventHandler(textArea_KeyDown);
this.Controls.Add(textArea_);
textArea_.Focus();
textArea_.BringToFront();
this.ResumeLayout();
}
}
//Method to remove the dynamic text box from the area
private void RemoveTextBox()
{
if (textArea_ != null)
{
this.SuspendLayout();
if (this.Controls.Contains(textArea_))
{
textArea_.Leave -= new
EventHandler(textArea_Leave);
this.Controls.Remove(textArea_);
textArea_.Dispose();
textArea_ = null;
}
this.ResumeLayout();
} Tag: Data Form Wizard Tag: 107046
DataGrid and Relationships
Hello,
I have a View that has a relationship between two tables.
It works well for what I am doing, but I want to hide the child rows in my
datagrid. I only want the data from table1 to show in the grid without the
"+" sign.
Is there a way to accomplish this?
Thanks,
Chuck Tag: Data Form Wizard Tag: 107045
combobox with checkbox list dropdown
Does anyone know of a third-party control that allow users to choose
multiple items from a combobox drop down through use of checkboxes in the
list? This functionality is provided in microsoft office pivot tables, where
the user can filter for multiple values in a pivot table column or row item.
Thanks! Tag: Data Form Wizard Tag: 107044
PrintPreview margins not displaying
I have a .NET 1.1 windows form ap from which I'm trying to allow the
user to print out the form. I use the bitblt function in gdi32.dll to
capture the image of the form and turn it into a bitmap for printing.
The problem that I'm currently having is that the print preview dialog
on the form does not show the page margins when it displays the
preview. Relevent code is attached.
As well, if someone know how I can properly scale the image to fin on
to the page if it's too big, that would be a great help too.
Thanks,
Evan
Bitmap formImage;
private PrintDocument pd = new PrintDocument ();
private PrintPreviewDialog printPreviewDialog = new
PrintPreviewDialog();
private System.Windows.Forms.PageSetupDialog pageSetupDialog;
printPreviewDialog.Document = this.pd;
private void printMenuItem_Click(object sender, System.EventArgs e) {
this.GetFormImage();
pd.Print();
}
private void pd_PrintPage (object sender,
System.Drawing.Printing.PrintPageEventArgs e) {
e.Graphics.DrawImage (this.formImage, 0, 0);
}
private void GetFormImage() {
Graphics mygraphics = this.CreateGraphics();
this.formImage = new Bitmap (this.Size.Width, this.Size.Height,
mygraphics);
Graphics memoryGraphics = Graphics.FromImage(this.formImage);
int bordersize = (this.Width - this.ClientRectangle.Width) / 2;
int titlebarHeight = (this.Height - this.ClientRectangle.Height) -
bordersize;
IntPtr sourceHandle = mygraphics.GetHdc();
IntPtr destinationHandle = memoryGraphics.GetHdc();
BitBlt(destinationHandle, pd.DefaultPageSettings.Bounds.X,
pd.DefaultPageSettings.Bounds.Y,
this.Width, this.Height, sourceHandle, 0 - bordersize, 0 -
titlebarHeight, 13369376);
mygraphics.ReleaseHdc(sourceHandle);
memoryGraphics.ReleaseHdc(destinationHandle);
}
[DllImport("gdi32.dll")]
static extern bool BitBlt(IntPtr hdc, int nXDest, int nYDest, int
nWidth,
int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, uint dwRop);
private void printPreviewMenuItem_Click(object sender,
System.EventArgs e) {
this.GetFormImage();
printPreviewDialog.ShowDialog();
}
private void pageSetupMenuItem_Click(object sender, System.EventArgs
e) {
this.GetFormImage();
this.pageSetupDialog.ShowDialog();
} Tag: Data Form Wizard Tag: 107042
How to find which column is sorted in DataGrid control
I have in VB.NET 2005 a DataGrid control placed within a Windows form and the
property AllowSorting = True in order to allow users to further sort by any
column they want. The datagrid is based on a TableSet (not on a view).
How can I find during run-time at a certain moment if the DataGrid was
re-sorted by user by a certain column (and which is this column and if it is
sorted ascending or descending) or if datagrid was not re-sorted at all?
Thanks, Tag: Data Form Wizard Tag: 107039
MI5 Persecution: cost of the operation
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-= MI5: cost of the operation -=
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Here's what a couple of other people on Usenet (uk.misc) had to say
regarding the cost of running such an operation...
PO: >Have some sense, grow up and smell reality. What you are talking about
PO: >would take loads of planning, tens of thousands of pounds and lots of
PO: >people involved in the planning, execution and maintenance of it. You
PO: >must have a very high opinion of yourself to think you are worth it.
PM: >But why? And why you? Do you realize how much it would cost to keep
PM: >one person under continuous surveillance for five years? Think about
PM: >all the man/hours. Say they _just_ allocated a two man team and a
PM: >supervisor. OK., Supervisor's salary, say, #30,000 a year. Two men,
PM: >#20,000 a year each. But they'd need to work in shifts -- so it would
PM: >be six men at #20,000 (which with on-costs would work out at more like
PM: >#30,000 to the employer.)
PM: >
PM: >So, we're talking #30,000 x 6. #180,000. plus say, #40,000 for the
PM: >supervisor. #220,000. Then you've got the hardware involved. And
PM: >any transcription that needs doing. You don't think the 'Big Boss'
PM: >would listen to hours and hours of tapes, do you.
PM: >
PM: >So, all in all, you couldn't actually do the job for much less than
PM: >a quarter million a year. Over five years. What are you doing that makes
PM: >it worth the while of the state to spend over one and a quarter million
PM: >on you?
Those are pretty much the sort of calculations that went through my head
once I stopped to consider what it must be costing them to run this
operation. The partial answer is, there have been periods when the
intensity has been greater, and times when little has happened. In fact,
for much of 1993 and the first half of 1994, very little happened. Although
I don't think that was for reasons of money - if they can tap into the
taxpayer they're not going to be short of resources, are they?
The more complete answer is in the enormity of what they're doing. Relative
to the cost to British pride of seeing their country humiliated for the
persecution of their own citizens, isn't is worth the cost of four or five
people to try to bring things to a close in the manner they would wish? To
the government a million or two is quite honestly nothing - if they can
convince themselves of the necessity of what they're doing, resources will
not be the limiting factor.
400
--
Posted via a free Usenet account from http://www.teranews.com Tag: Data Form Wizard Tag: 107031
Msg: "Not a Microsoft .NET module"
Hi
I am trying to add a DLL which is developed in VS 2005 to my project (VS
2003).
I get following error message.
"FileName.dll not a Microsoft .NET module"
Do i need to convert this DLL to Framework 1.1 compatible to add it in my
project?
If yes, is there a tool to do this?
Kindly reply.
Regards,
Baskar C.G Tag: Data Form Wizard Tag: 107019
How to add two buttons with textbox in a single cell of
Hi,
I want to show one text box and two buttons in a
cell of a column in a datagridview.
Any Clues?
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com Tag: Data Form Wizard Tag: 107017
are wombats good?
I'm not really sure whether Wombats are any good.
The picture on Wikipedia looks like a horrid little Pig.
Quite Obscene.
Just not English.
400
--
Posted via a free Usenet account from http://www.teranews.com Tag: Data Form Wizard Tag: 107016
Initializing a RichTextBox
Hi;
What's the best way to initialize a RichTextBox.Rtf value. I'd prefer to do
it from a resource so the text is in the exe file.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm Tag: Data Form Wizard Tag: 107014
Making Control Topmost
I know that Windows Forms provide a TopMost property to ensure it is on top.
How can I force a Control to be TopMost? I have a usercontrol that will be
consumed by several forms and I need it to remain the topmost control when it
appears on a form even though other controls may be added to the form during
design time. How can I bring a control to the front, or keep it in front? Tag: Data Form Wizard Tag: 107010
Moving a form and a panel in parallel should not be as difficult ?!?!?!?
Hi!
I=B4m developing a screen-capture application.
My Idea is to cover the whole screen with a semi-transparent
clickt-hrough layer, solely the Area that will be captured should
appear without this layer.
What I did:
I use two forms.
The first form works as the background-layer. It has no border and
covers the whole screen. Opacity is set and the ex.Style ist
WS_EX_TRANSPARENT to make it click-through. On this Form I have a panel
wich backcolor is set to the forms transparency-key, hence we can look
through the panels area.
Second form is not click-through, because i need controls on it. There
is also an transparent panel on it, which refers to the area to be
captured. When moving and resizing this form I map position and size
of both forms transparent panels.
The way it works is exactly what I had in mind, but there is one
problem: When moving the front-form I update the location of the
transparent panel on the back-form. This update takes to much time, i.
e=2E the second panel moves two slow.
Does anyone can give me an hint how I can move my front-form and the
transparent-panel on the back-form in exactly the same time. I read
about the DeferWindowPos Win32 Methods, but I didn=B4t get it work.
Since I think nobody understood what I=B4m talking about I=B4ll provide
some code:
----------------------------------------------BACK-FORM--------------------=
------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace transp
{
public class Back : Form
{
private System.ComponentModel.IContainer components =3D null;
private Panel transparentArea;
public const int WS_EX_TRANSPARENT =3D 32;
protected override void Dispose(bool disposing)
{
if (disposing && (components !=3D null))
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.transparentArea =3D new System.Windows.Forms.Panel();
this.SuspendLayout();
//
// transparentArea
//
this.transparentArea.BackColor =3D
System.Drawing.Color.Fuchsia;
this.transparentArea.Location =3D new
System.Drawing.Point(40, 73);
this.transparentArea.Name =3D "transparentArea";
this.transparentArea.Size =3D new System.Drawing.Size(200,
100);
this.transparentArea.TabIndex =3D 0;
//
// Back
//
this.AutoScaleDimensions =3D new System.Drawing.SizeF(6F,
13F);
this.AutoScaleMode =3D
System.Windows.Forms.AutoScaleMode.Font;
this.BackColor =3D System.Drawing.Color.LightSlateGray;
this.ClientSize =3D new System.Drawing.Size(292, 266);
this.Controls.Add(this.transparentArea);
this.FormBorderStyle =3D
System.Windows.Forms.FormBorderStyle.None;
this.Name =3D "Back";
this.Opacity =3D 0.8;
this.Text =3D "Form1";
this.TopMost =3D true;
this.TransparencyKey =3D System.Drawing.Color.Fuchsia;
this.ResumeLayout(false);
}
public Back()
{
InitializeComponent();
this.Bounds =3D SystemInformation.VirtualScreen;
}
public Rectangle TransparentAreaBounds
{
get { return this.transparentArea.Bounds; }
set { this.transparentArea.Bounds =3D value; }
}
protected override CreateParams CreateParams
{
get
{
//make it click-through
CreateParams cp =3D base.CreateParams;
cp.ExStyle |=3D WS_EX_TRANSPARENT;
return cp;
}
}
}
}
---------------------------------------------------------------------------=
-----------------------------------------------
----------------------------------------------FRONT-FORM-------------------=
------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace transp
{
public class Front : Form
{
private System.ComponentModel.IContainer components =3D null;
private Back backGroundForm =3D null;
protected override void Dispose(bool disposing)
{
if (disposing && (components !=3D null))
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
this.SuspendLayout();
this.AutoScaleDimensions =3D new System.Drawing.SizeF(6F,
13F);
this.AutoScaleMode =3D
System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize =3D new System.Drawing.Size(292, 266);
this.FormBorderStyle =3D
System.Windows.Forms.FormBorderStyle.SizableToolWindow;
this.Name =3D "Front";
this.Text =3D "Front";
this.ResumeLayout(false);
}
public Front()
{
InitializeComponent();
this.TopMost =3D true;
this.BackColor =3D Color.Fuchsia;
this.TransparencyKey =3D Color.Fuchsia;
this.Move +=3D new EventHandler(UpdateBackGround);
this.Resize +=3D new EventHandler(UpdateBackGround);
backGroundForm =3D new Back();
this.Show();
backGroundForm.Show();
backGroundForm.TransparentAreaBounds =3D this.Bounds;
}
void UpdateBackGround(object sender, EventArgs e)
{
backGroundForm.TransparentAreaBounds =3D this.Bounds;
}
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Front());
}
}
}
---------------------------------------------------------------------------=
-----------------------------------------------
I would appreciate any hints. I=B4m struggling for days now !!!!!
Thanks! Tag: Data Form Wizard Tag: 107008
screen saver
I would like to create a simple standalone vb app that will end, and
preferably restart the windows screen saver. I fould code that says it
starts the screen saver but how about terminating the currently running
instance? Tag: Data Form Wizard Tag: 107006
Default values when adding new datarow
Hi.
I have wired up a dataGridView, a bindingSource and a bindingNavigator on a
WindowsForm. The DataSource for the bindingSource is a DataSet containing a
table, say Orders.
When the addNewItem button on the navigator is pushed, I want to provide
some default values for columns in the new row in the grid: e.g.
CustomerNumber and OrderNumber (incremented by one). What is the usual way
of doing this? A code sample would be appreciated.
Gudni Tag: Data Form Wizard Tag: 107005
Events fired when Form.ShowDialog is called
Hello everybody,
The MSDN says about ShowDialog that
"When a form is displayed as a modal dialog box, clicking the Close button
(the button with an X at the upper-right corner of the form) causes the form
to be hidden and the DialogResult property to be set to DialogResult.Cancel.
Unlike modeless forms, the Close method is not called by the .NET Framework
when the user clicks the close form button of a dialog box or sets the value
of the DialogResult property. Instead the form is hidden and can be shown
again without creating a new instance of the dialog box. Because a form
displayed as a dialog box is not closed, you must call the Dispose method of
the form when the form is no longer needed by your application."
The way I understand this is that even if I re-instantiate the class that
implements my form, the framework will reuse some previously created
structures and that's how I would explain why the Load event is not fired for
subsequent calls to ShowDialog.
So here is my question: What is the pattern I need to use to display one
form over and over and make sure that all internal controls are initialized
to proper values every time the form is shown? What is the event that's fired
every time ShowDialog is called, if there is such an event? If not, how else
should I approach this?
TIA,
Eddie Tag: Data Form Wizard Tag: 107004
XML in DataGridView Q?
Hi all,
I have a DataGridView that displays an XML file in it... the table has
these column names: Name, Value, Data. After I've populated it I need
to compare (via a method call) the data in the Name cell with the
string value in the XML comment. So basically I'm comparing the Name
cells value with the comment value in the XML file.
The XML file contains the useual <name>, <value> & <comment> tags.
How would I do that? Also I want to color the cells Name & Value if
they do not match?
private void SeeForMatch()
{
XmlDocument doc = GetXmlDocument(); // loads XML file
DataTable dt = datagridView1.DataSource as DataTable;
foreach (DataRow rows in dt.Rows) // loops through the
datagridview1 or should I use:
// foreach
(DataGridViewRow rows in dt.Rows) 'cos I need the cell coloring
{
string name = (string)rows["name"];
foreach (XmlNode node in doc.SelectNodes("//data")) // loops
through the XML file
{
if (node.Attributes["comment"].Value.Equals(name)) // !!!
// should be if ( the string value in the cell not equal to
the <comment> value in the xml file)
// { color both cells & check the rest of the name column
with the XML <comments> }
I know if I wanted to color the cells I would use:
rows["name"].Style.BackColor = System.Drawing.Color.Blue; //assuming
rows was a DataGridView but it's DataRow type!!
Thanks for your help ppl. Tag: Data Form Wizard Tag: 107000
C# Windows Applications
Hi All,
I read article
(http://msdn.microsoft.com/msdnmag/issues/05/08/AutomaticProxyDetection/default.aspx). I need yours help. Please advise me
My Requirement is given below.
This is C# windows .net application(application as i need *.exe file
rather than install file ) which has 4 textboxes (tbxURL for URL in URL
Frame, tbxAddress for address in Proxy server frame, tbxPort for port in
proxy server frame, tbxProxyScript for proxy script in proxy script frame)
and a test button. The requirement is given below
STEP BY STEP GUIDE
1. Input the URL you want to test
2. Choose Proxy script/Proxy server with Address and Port Information/No proxy
3. Enter url to proxy script or info for proxy server in respective text box.
4. Press test-button
e.g.
A) Proxy Script (Textbox):
http://www-proxy.ericsson.se:3132/accelerated_pac_base.pac
B) URL (Textbox): any URL which starts from https://
C) Proxy Server (2 text box one for Address and one for Port):e.g.
10.187.1.20 and 8080
The below code is working fine for url (only URL, No Proxy Server i.e.
Address and Port, no Proxy Script), URL with Proxy Server (Address, Port) as
given in coding but not for URL AND Proxy Script, That code needs to be
changed.
so my question is how to do coding for calling URL when you want to access
that URL(mentioned in the textbox on the window form) with proxy
script.(which is filled in the textbox present on the window form. Please
advice (for yours reference, I am giving you the code which I put, this code
is filling my 2 requirements (URL alone), URL with address and port) out of
total3 (URL alone, URL with address and port, URL with proxy script only)
Ã?-----------------------------------------------------------------------------My
Code is given
below-------------------------------------------------------------------------------------------------------------------------------Ã
private void Calc_Time_For_URL()
{
if(tbxURL.Text.StartsWith("https://"))
{
//Time of Request
DateTime dt1 = DateTime.Now;
try
{
System.Net.HttpWebRequest myReq =
(HttpWebRequest)WebRequest.Create(tbxURL.Text.ToString());
//Proxy Server(Address and Port)
if ((tbxAddress.Text.Length > 0) &
(tbxPort.Text.Length >0))
{
myReq.Proxy = new
WebProxy(tbxAddress.Text,Convert.ToInt16(tbxPort.Text));
}
//Proxy Script
if (tbxProxyScript.Text.Length > 0)
{
Ã?--------------THIS CODE IS WRONG AND NOT
WORKING AND NEEDS TO BE CHANGED
// Create a new Uri object.
Uri newUri=new Uri(tbxProxyScript.Text);
// Associate the newUri object to
'myProxy' object so that new myProxy settings can be set.
myReq.Proxy = new WebProxy(newUri);
-------------------------------------------------Ã
}
//GetResponse for this request.
HttpWebResponse response =
(HttpWebResponse)myReq.GetResponse();
//Time of Response
DateTime dt2 = DateTime.Now;
lblTimeTaken.Text =
Convert.ToString(dt2.Subtract(dt1));
//}
}
catch(System.Exception ex)
{
//Time of Response
DateTime dt3 = DateTime.Now;
lblTimeTaken.Text =
Convert.ToString(dt3.Subtract(dt1));
string message = "Make Sure URL is enterted
with http://www or https://www as prefix as per your
need!!!\nError returned is :\n " + ex.Message;
string caption = "Error!!!";
DialogResult result;
MessageBoxButtons buttons =
MessageBoxButtons.OK;
result =
MessageBox.Show(message,caption,buttons);
}
My Doubt is should we have to call any API..?Actually there is one exe file
named â??proxycfg.exe" inside C:\windows\system32
Thanks,
Deepak
+919886735837
kr_deepak123@hotmail.com
kr_deepak123@yahoo.co.in
kr_deepak123@skype.com Tag: Data Form Wizard Tag: 106995
GUI Designer Tool
Is there a software with which you can design and click together a XAML GUI
and instantly
become a feedback how the GUI looks?
Thx in advance
A.Gallus Tag: Data Form Wizard Tag: 106994
Save / Restore : size and position of the form
Hello,
How can I save and restore the position and the size dive by a user and
restore them next time I start my application ?
Thanks, Tag: Data Form Wizard Tag: 106986
Move two Forms simultaneously
HI!
My first post, so Hello there!
I=B4m trying to develop an apllication with docked forms, like in
Winamp. If a child forms is docked to the parent form it should move
and resize like the parent form does.
I=B4ll give you an simple example of how I tried to archive this:
Form parent =3D new Form();
parent.TopMost =3D true;
Form child =3D new Fom();
parent.Move +=3D new EventHandler(parent_move);
void parent_move(object sender, EventArgs e)
{
child.Bounds =3D parent .Bounds;
}
This example is not very usefull, because the parent form will
completly cover the child, but it shows my problem: The child form
moves slowlyer. Moving the parent form will cause the child form to
move, but with a delay of time. I want them to move as if they where
ONE form!!!
I was seraching for days now, tried serveral Win32 Api calls regarding
moving but I didn=B4t get it!
Can anyone help me? Tag: Data Form Wizard Tag: 106985
Getting clean layout in forms
Hi;
Is there a url somewhere that explains the best way to use the layout
controls to provide the best layout. I want out windows to still look good
when we add Japanese & German resources - which tend to make the text a lot
shorter / longer.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm Tag: Data Form Wizard Tag: 106983
Videos
Hi,
i noticed, that there are some really good videos about ASP.NET on
http://asp.net/learn/videos/default.aspx?tabid=63.
Do you know some location, where i can find similar free videos on
windows forms or application programming with .NET?
Greetings
A.Gallus Tag: Data Form Wizard Tag: 106982
plse provide me links for windows form event details
Hi Grp,
I m newbie. I am looking for basics of Windows Forms. Like ASP.Net page
lifecycle, please give me the links which explains windows form event cycle.
Thanks,
DB Tag: Data Form Wizard Tag: 106981
Saving info in Registry
Hi,
Under Vista you can't save application settings to HKLM, can anyone point me
in the direction of the new guidlines on where we should store application
data, which is machine wide.
Thanks
Tim Tag: Data Form Wizard Tag: 106977
Form control re-build when entering the MDI container
We have a huge activex control embedded in a Form window. When the Form
has its MDIParent set to a mdi container, the window handle of the Form
is replaced by a new one, and our control has to be InPlaceActivate
twice plus one InPlaceDeactivate( The window handles of the standard
controls within are also replaced ), This causes side effects to our
activex control. The activation involves lengthy initializations such
as downloading data from internet and heavy rendering work, so it is
too expensive to do InPlaceActivate frequently. And our control has
some operations depending on the parent window. Is there any workaround
to avoid frequent inplace activation and window re-building, for
example, creating the mdi child form directly from the MDI container? Tag: Data Form Wizard Tag: 106976
DataGridView RowValidation Event
I have a master/detail form that uses a DataGridView to show child
records. I am using the RowValidating event to validate correctly
entered data. As part of the validation process, I set the Cancel
property of the event to true when bad data is present. This works
fine as long as the master binding source remains on the current
record.
If the active master row changes, while a cell in the data grid is in
edit mode, the form freezes. It does not redraw and stops responding
to all events. The grid will still show the pencil in the row header.
This only occurs if a the DataGridView looses focus while a cell is in
edit mode. If no cells were currently being edited when the grid
looses focus everything is fine. Tag: Data Form Wizard Tag: 106974
Figure out how much text will fit into the form title
I'm assigning a description to my form title, such as:
strDesc = "This is a test if the description will fit in"
frmTest.Text = "(" & strDesc & ")"
If strDesc doesn't fit in the title, I don't see the closing paranthesis:
("This is a test if the description will fi..."
I would like to be able to determine if strDesc will fit into the space
provided, and if it won't fit, I would like display only as much as would fit:
("This is a test if the description will f...)"
How can I do this? Thank you! Tag: Data Form Wizard Tag: 106969
DataGridView performance
Hi there,
Has anyone had any serious performance problems with this class. A couple of
hundred rows of data with 4 columns (everything loaded on-the-fly with no DB
involved, all simple strings, 90% under 10 characters, the rest as high as
500-600 characters, wrapping turned on) literally takes almost 3 minutes to
load on my 2.4 MHz machine (1 GB RAM with plenty to spare). Wrapping may be
the bottleneck (performance improves when I turn it off) but other than
using virtual mode, can anyone suggest a way to speed things up (or a
reliable 3rd-party control which is really something I wanted to avoid).
Thanks. Tag: Data Form Wizard Tag: 106963
HTML POST
I have an HTML Form that uses GET and is processed by an ASP.NET 1.1 web
application.
Can you recommend a simple example of an HTML Form that uses POST and is
processed by an ASP.NET web application (either 1.1 or 2.0)?
What was the source of your information?
Thank you.
--
-- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd. Tag: Data Form Wizard Tag: 106961
Get Form-Objekt inside VS2005 AddIn
How can I get the Form Obect inside the VS AddIn ?
Public Sub Exec(ByVal commandName As String, ByVal executeOption As
vsCommandExecOption, ByRef varIn As Object, ByRef varOut As Object, ByRef
handled As Boolean) Implements IDTCommandTarget.Exec
handled = False
If executeOption = vsCommandExecOption.vsCommandExecOptionDoDefault Then
If commandName = "MyAddin1.Connect.MyAddin1" Then
handled = True
Dim myForm as Form = ????
Exit Sub
End If
End If Tag: Data Form Wizard Tag: 106960
Radio button databinfding...
Hi,
I have got three radio buttons
o Yes (Db Value= 1)
o No (Db Value= 2)
o Maybe (Db Value= 3)
The data is stored on DB on one field as tinyint. I would like to bind
the data row to windows form. how can I bind that data to the radios? I
think It must not be so diffucult :). But I am better on web forms and
it is much more easy to binding on web pages. Is there something that I
do not aware of?
I do not want to use drop down... :'(
Thanks... Tag: Data Form Wizard Tag: 106958
drag and drop issue...
If I use software like OpenOffice and try to drag text I could notice that
1. when I drag inside the document I'm moving the text
2. when I drag outside the document I'm copying the text
Yet it all looks like one smooth operation. With correct cursor feedback
(the little + marker next to the icon).
My problem is, once I call DoDragDrop() it's blocking, I have no other
opportunities to change the AllowedEffect to only Copy if I drag over, say,
an other control
And QueryContinueDrag:
1. don't allow me to change the efect
2. don't inform me about the current drop target
How could I do that?
(i.e. how could I modify the allowed efffect depending on the target (i.e.
wether it's me or not)) Tag: Data Form Wizard Tag: 106955
Tooltip for a Listview - No Delay settings?
I have crafted a routine that allows me to have my tooltip reflect
which Item in my ListView I am hovering over, but I can't implement any
of the delay functions. Has anyone been able to address this? I'm
pretty sure I'm just missing some simple paradigm.
Code:
Elsewhere
{
ToolTip tip = new ToolTip();
}
private void DisabledUserList_MouseMove(object sender, MouseEventArgs
e)
{
Point p = Cursor.Position;
p = DisabledUserList.PointToClient(p);
int CurrentIndex = DisabledUserList.IndexFromPoint(p);
if (CurrentIndex != LastIndex && CurrentIndex > 0)
{
LastIndex = CurrentIndex;
//System.Threading.Thread.Sleep(1000);
tip.ReshowDelay = 5000; // DOES NOTHING
tip.InitialDelay = 2000; //DOES NOTHING
tip.IsBalloon = true;
DataRowView drv =
(DataRowView)(DisabledUserList.Items[CurrentIndex]);
tip.SetToolTip(DisabledUserList,
drv["Path"].ToString());
}
else
{
if (CurrentIndex < 0) tip.SetToolTip(DisabledUserList,
"");
}
}
Thanks for taking a look and helping!
Brian Hampson
System Administrator - North America
ALS Laboratory Group Tag: Data Form Wizard Tag: 106954
Clipboard Problems with HTML
I'm trying to intercept the clipboard so that I can fix Word's disasterous
HTML that comes through before pasting it into a text box. I just pull the
fragment information from the result that comes back when you ask for the
Text that's of type HTML.
Everything works just great, except when there are accents:
- è - è - ê - ë - à - â - ô - ö - î - ' - ? - ! - ;
If you paste that into word and then paste it into a text box and intercept
the clipboard I get all kinds of weird characters none of which are those
above. If I leave it alone of course it works just fine. It looks like the
Clipboard in .NET is not handling unicode right or something. I'm at a loss.
Anyone have any ideas on how I can get the clipboard of HTML code correctly?
Thanks!
James Hancock Tag: Data Form Wizard Tag: 106945
tooltip disappears after click on button
Hello, I have a problem using tooltips on buttons...
Before the first click on the button the tooltip displays correctly,
but once the button has been clicked, the tooltip isn't shown any
more...
Is this a bug? Or normal behavior ?
Regards,
Kevin Tag: Data Form Wizard Tag: 106931
C# windows application
Hi All,
I developed a C# window application (not Web Application as I
need exe file) needs to handle the Proxy Script with URL
Form: 2 text Boxes (one for filling URL, one for filling Proxy
Script string)
One Button: To calculate the time differences between request and
response (i.e. when URL is requested by user
with proxy script
textbox filled)
One Label: To show the calculated time difference.
My Code is given below
private void Calc_Time_For_URL()
{
try
{ //Time of Request
DateTime dt4 = DateTime.Now;
System.Net.HttpWebRequest myReq = (HttpWebRequest)
WebRequest.Create(tbxURL.Text.ToString());
//Proxy Script
if (tbxProxyScript.Text.Length > 0)
{
//I NEED CODE FOR THIS SECTION MEANS HOW TO HANDLE PROXY
SCRIPT WITH URL
}
//GetResponse for this request.
HttpWebResponse response = (HttpWebResponse)myReq.GetResponse();
//Time of Response
DateTime dt5 = DateTime.Now;
lblTimeTaken.Text = Convert.ToString(dt5.Subtract(dt4));
}
catch(System.Exception ex)
{
string message = "Please Enter Url with http://www or https://www as
prefix
as per your need\nError returned is :\n " +
ex.Message;
string caption = "Error!!!";
DialogResult result;
MessageBoxButtons buttons = MessageBoxButtons.OK;
result = MessageBox.Show(message,caption,buttons);
}
}
Does any body have idea, Please mail me ASAP if possible, and this is very
urgent issue.
Thanks,
Deepak
kr_deepak123@skype.com
kr_deepak123@hotmail.com
kr_deepak123@yahoo.co.in
+919886735837 Tag: Data Form Wizard Tag: 106930
using delegates and updating windows forms
Hi all:
I have been playing around trying to get a progress bar to work. So far, I
have the progress bar updating visibly, but the rest of the dialog now looks
crappy. The rest of the dialog window badly needs a repaint, but it doesn't
get one until the routine finishes that the progress-bar is attached to.
I think part of the problem is that I don't understand the syntax for using
delegates and threads completely. Can any one point me to a web-article on
this topic, or perhaps tell me what I am doing wrong? I thought I had worked
the progress-bar more or less according to the VS2005 docs.
Example code follows
========================
' blah blah.... initial code
Delegate Sub UIDelegate()
Sub updateUI()
Me.ProgressBar1.Increment(1)
End Sub
Private Sub CreateBigCatalog() ' my time consuming routine
' Setup progress bar
Dim newDelegate As New UIDelegate(AddressOf updateUI)
Me.ProgressBar1.Value = 0
Me.ProgressBar1.Maximum = 1000
For Each title As DataRow In MyTitleTable.Rows
ProgressBar1.Invoke(newDelegate)
' ..... blah blah more time consuming code ....
next title
end sub
-----
What should I have done differently?
Thanks in advance and have a great day!
Bill Angus, MA
http://www.psychtest.com Tag: Data Form Wizard Tag: 106925
AddFontResource - how to update RTB?
I've found the AddFontResource method - - however, any controls, like the
RichTextBox, that are already loaded, don't recognize the new font, once
it's 'added'
How can I 'refresh' the controls, so they can recognize the new Font that
has been added? Tag: Data Form Wizard Tag: 106923
Method Conversion from VB6 to VB.Net 2005
In vb6, I had a program that had the following code:
StrPtr
LenB
Picture1.Print
Picture1.CurrentX (& Y)
They don't apparently transfer over in vb.net 2005 - - -
I hate to admit it, but I found this code somewhere on line and I have never
used these properties/methods again for anything else and don't know what to
look for in place of them...
Can someone help me find the answers please? Tag: Data Form Wizard Tag: 106919
MouseLeave fired on childs controls, This does not have thus to be.
Hi;
A UserControl named ContainerInfo has children controls;
ContainerInfo also has the MouseLeave event.
But one goes off when the cursor of the mouse is in a children control .
This does not have thus to be, by a contracted being in ContainerInfo
mouse has not left this.
What I must do?
Regards
Alvaro. Tag: Data Form Wizard Tag: 106917
Multi-window application example
Hi,
I am porting an application from Windows Mobile to the desktop. This is my
first .NET desktop forms application (my experience is in ASP.NET). I am
looking for a sample application that employs a solid programming model for
managing a multi-window application. This application has a lot of
dynamiccally built forms and opens and closes forms as necessary and can
have multiple forms open at once. Its very simple on Windows Mobile because
all forms are always maximized and you can layer forms on top of each other
with no problem.
Thanks for any assistance.
-Dave Tag: Data Form Wizard Tag: 106910
Layered architecture
Hi.
It is often maintained, that a layered architecture is something one should
consider in any nontrivial application (see e.g. Data Binding with Windows
Forms by Brian Noyces).
I have a VS2005 solution with 3 projects in it:
1. Adveita.UI - a WinForms executable for user interaction
2. Adveita.BLL - a library project for buisiness logic
3. Adveita.DAL - also a library project, for data access
In order to achieve a full decoupling between the UI and DAL layers, I find
myself writing wrapper classes in the BLL layer to present tables, columns
etc. to the UI layer. Also, I am writing a lot of code to bind controls like
text boxes to data and the like. I think, that the designer should be doing
this for me in most cases and I that I am perhaps doing something basically
wrong here. On the other hand, examples in books and downloadable samples
are rather simplistic and hardly tackle questions like these.
Can anyone comment on this, point out to me samples or articles addressing
these questions.
Regards,
Gudni Tag: Data Form Wizard Tag: 106908
What has taken the place of the Data Form wizard in VS2005?