|
Please don't double post.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
You've stepped through and it loops twice over the one object ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello
I have a question. How to grab data from datagrid (which is from Oracle database) and I want to store this data to MYSQL database. COuld anyone help me with this problem. FYI, I'm developing web application.
Thanks
Nasyiqin
|
|
|
|
|
hi,
i have a windows application and i wish the program to start as a full screen application even above the start menu. if any one knows how to do that please let me know.
Thanks in advance
jamil abou khalil
|
|
|
|
|
You just move your window so the frame is outside the visible area. You can also set your frame type to not have one, if you prefer.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hi,
thanks for you reply but i am sorry, i couldn't understand what u are trying to tell me. if you please elaborate a little.
You just move your window so the frame is outside the visible area.
why should i move the window so that it is not visible. i need it to be full screen.
best regards
Jamil abou khalil
|
|
|
|
|
*sigh* The frame is all around the edges of your window. If the top of the frame is *above* the top of your window, the left frame is past the left edge of your window, etc, then your app will appear full screen, right ?
Christian Graus - C++ MVP
|
|
|
|
|
sorry man i am not understanding what u are trying to tell me.
Let us make it a simple question. Is there any code or instruction that makes the frame appear as a full screen application not a maximized application
thanks
Jamil Abou Khalil
|
|
|
|
|
jamil abou khalil wrote: sorry man i am not understanding what u are trying to tell me
I have no idea how to make it more simple.
jamil abou khalil wrote: Is there any code or instruction that makes the frame appear as a full screen application not a maximized application
Like I said in the first instance, you can set the app to not have a frame. That is a single line in .NET, but in MFC, we used to do what I've been trying to explain to you.
You can set FormBorderStyle to None.
Christian Graus - C++ MVP
|
|
|
|
|
Thnaks man It worked now
Jamil Abou Khalil
|
|
|
|
|
Hi,
set the FormBorderStyle of your Form to None and set WindowState to Maximized. Moreover you could set TopMost to true to ensure no other window gets in front of it (doesn't always work - e.g. the TaskManager is always on top of everything else).
Robert
|
|
|
|
|
hi,
you can use this code:
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
if not this effect ,please remove the first code
|
|
|
|
|
Hello Friends,
I have sharepoint services running on my Windows 2003 R2 Server. From VS2005, I created a sample web part like below (just to see how it looks).
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml.Serialization;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;
using Microsoft.SharePoint.WebPartPages;
using System.Reflection;
[assembly: AssemblyKeyFile("sample.snk")]
namespace WebPartLibrary1
{
///
/// Description for WebPart1.
///
[DefaultProperty("Text"),
ToolboxData("<{0}:WebPart1 runat=server>"),
XmlRoot(Namespace = "WebPartLibrary1")]
public class WebPart1 : Microsoft.SharePoint.WebPartPages.WebPart
{
private const string defaultText = "";
private string text = defaultText;
[Browsable(true),
Category("Miscellaneous"),
DefaultValue(defaultText),
WebPartStorage(Storage.Personal),
FriendlyName("Text"),
Description("Text Property")]
public string Text
{
get
{
return text;
}
set
{
text = value;
}
}
///
/// Constructor for the class.
///
public WebPart1()
{
this.Title = "This is a test web part";
}
protected override void RenderWebPart(HtmlTextWriter output)
{
output.Write(SPEncode.HtmlEncode(Text));
//Create a Label
Label testLabel = new Label();
//Write the Text
testLabel.Text = "Hello World";
//Add the label control to the page
this.Controls.Add(testLabel);
testLabel.RenderControl(output);
}
}
}
and my dwp file look like this
<webpart xmlns="http://schemas.microsoft.com/WebPart/v2">
<title>WebPart1
<description>WebPart1.
<assembly>WebPartLibrary1
<typename>WebPartLibrary1.WebPart1
I made "safe control" entry in the web.config file (c:\inetpub\wwwroot) like below....
<safecontrol assembly="WebPartLibrary1" namespace="WebPartLibrary1" typename="*" safe="True">
Also copied the WebPartLibrary1.dll to the c:\windows\assembly (GAC).
Still when I try to drag the web part in a wep part page... I get error like
below...
"Web Part or Web Form Control on this Web Part Page cannot be displayed or imported because it is not registered on this site as safe."
I have even reinstalled IIS and Sharepoint Servies. My sharepoint runs as (All Unassigned)".
Can any body tell me what could be the reason for error and how to fix it. I am really struck up with this error.
Thanks in Advance.
TMRK
|
|
|
|
|
I'm writing a library that does a lot of signal processing. Given a modern computer like the Pentium 4, would it make sense to use fixed point arithmetic rather than using floating point arithmetic? I'm wondering if I will gain very much.
Also, what are some good techniques for detecting places in code that need optimization? This is an area of programming that I haven't studied to any great extent and need a point in the right direction.
[EDIT]
I'm using C# is the reason I posted this here. Wasn't sure if one of the other message boards was more appropriate.
[/EDIT]
|
|
|
|
|
Fixed point will be more accurate.
I guess you need to work out if any code is a bottleneck, and/or look for places where you could do things better. For example, if you ahve a long loop, and you call a function inside the loop, you should make the code inline. But, you're trading readability for performance, so make sure you need to, first.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: For example, if you ahve a long loop, and you call a function inside the loop, you should make the code inline.
This is good advice, thanks. Currently, I'm representing each component as an enumerator. Each call to MoveNext causes the component to process/synthesize the next sample. Makes for an elegant framework but all of those calls may be a problem. It would be more efficient to process the signal in chunks, say fill up a buffer with a single call. But it's a question of how much more efficient. You've given me something to think about.
|
|
|
|
|
I have a problem,
When i create a GraphicsPath for a rounded rectangle (radius of 10 lets say), i can use it to draw an accurate rounded box.
The problem comes when i try to use the path as a region for a form. The region it produces isnt accurate - rouned edges are mis-shapen. The same goes when i use the same region to fill a rectange.
Is there a way to fix this and produce an accurate region?
Cheers
|
|
|
|
|
Look at the post by Bobbydoo9 right below your post.
|
|
|
|
|
I was wondering if there was an option in Visual Studio 2005 to make the program run, not as a standard square application with close, minimize, and maximize in upper right hand corners. If it isn't possible in VS 2005 to do this then how do programmers create these different programs?
Have a good one! !
|
|
|
|
|
|
Sorry, maybe if I open my eyes I would've found it. Thanks a bunch for lookin it up for a helpless me....
|
|
|
|
|
|
Nope... Thats not required.
Cheers
|
|
|
|
|
Is there any open-source IRC *Server* program out there ??
I've been searching like hell, and all I can find is client programs ...
Anyone ?
|
|
|
|
|