|
A FAX number would be normal telephone number, right ? If yes, you can use TAPI[^] to dial to that.
|
|
|
|
|
How Shall we correct and find the error serial port (com name) at in send SMS program in C#?
gm
modified on Monday, March 10, 2008 6:49 AM
|
|
|
|
|
I'd try sticky-back plastic and some pva glue.
|
|
|
|
|
I am working on VS2005,having a DataGridView Control bound to a data source. Out of 13 coulums in the grid, 3 columns are DataGridViewComboBoxColumn and two Text Columns have WrapMode=True. I found that add/update etc. work fine, but since the wrpped text was not properly visible, I set the AutoSizeRowsMode = DisplayedCells, and I started getting following error
DataGrid Cell value is not valid
The error repeats for all the ComboBox type Cells and contents are not displayed. Once I restore the AutoSizeRowsMode=none the error disappears?
Any help
Ashok
|
|
|
|
|
this is because you set it to DisplayedCell, if your value is null then this comes, try others
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Thanks XMen, I do not have any null cell but the error takes place. In fact in the database no field is allowed to be null.
Can you help?
|
|
|
|
|
change the autosize property to ColumnHeader , if it wont work, try others
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
** i have asked this question before also ..this one is modified thats why i have asked it again **
Hi
This is my treeview structure
..Node 0
:...Node 1
:...Node 2
* Node 0 is parent of Node 1
* Node 1 is parent of Node 2
Now when i am selecting Node 2 most of the times the focus is shifted to its parent node i.e Node 1 ..the same thing is happening with the Node 1 focus is coming into Node 0..
Is that i am missing something any Settings or the problem is within my system.
** please show the name of the node in a message box ..** this will clear my point
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
Hello,
I am not quite sure about this behavior. This should not happen. It might be some part of the coding
that is leading to the change in focus.
You can try this code and check.
private void Form1_Load(object sender, EventArgs e)<br />
{<br />
this.treeView1.Nodes.Add("Node0", "Node0");<br />
this.treeView1.Nodes[0].Nodes.Add("Node1", "Node1");<br />
this.treeView1.Nodes[0].Nodes[0].Nodes.Add("Node2", "Node2");<br />
<br />
}<br />
<br />
private void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)<br />
{<br />
MessageBox.Show(e.Node.Name);<br />
}
I hope this will help.
Regards,
Allen
Allen Smith
Software Engineer
ComponentOne LLC
www.componentone.com
|
|
|
|
|
thank you...my mistake was
MessageBox.Show(treeView1.SelectedNode.Name);
This was creating Problem...
*** Why EXPERTS behave like a fool ***
|
|
|
|
|
Hi,
When i export the CR Xi report to PDf in programmatically, it give parameter missing error,
Pls help me if you know the solution
thanks in advance
"FAKEER"
|
|
|
|
|
Here[^] - google for the company the produces the API you're using, and ask them. This is not a C# question, it's a question about a library you're using.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Interesting article you've written there. I can imagine the frustration you must have felt when you decided to write it.
I think it's sad that the situation warrants an article like this.
Cheers,
Vikram.
Zeppelin's law: In any Soapbox discussion involving Stan Shannon, the probability of the term "leftist" or "Marxist" appearing approaches 1 monotonically.
Harris' addendum: I think you meant "monotonously".
Martin's second addendum: Jeffersonian... I think that should at least get a mention.
|
|
|
|
|
I agree. But, I didn't mean it as a cheap shot, the situation DOES warrant it, and I hope it helps.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I wrote a piece of code to monitor keyword activities (just for fun and testing this api func) I want to know what is wrong? sometime I get this error:
{"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."}
Stack trace:
" at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove)\r\n at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n at System.Windows.Forms.Application.Run()\r\n at hook.Program.Main() in C:\\Documents and Settings\\Nazila\\My Documents\\Visual Studio 2005\\Projects\\hook\\hook\\Program.cs:line 19"
my code is :
public class KeyPosition<br />
{<br />
static public Int16 WM_KEYDOWN = 0x0100;<br />
static public Int16 WM_KEYUP = 0x0101;<br />
static public Int16 WM_SYSKEYDOWN = 0x0104;<br />
static public Int16 WM_SYSKEYUP = 0x0105;<br />
}<br />
<br />
delegate int HookProc(int code, IntPtr wParam, ref keyboardHookStruct lParam);<br />
<br />
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]<br />
static extern IntPtr SetWindowsHookEx(HookType hook, HookProc callback, IntPtr hMod, uint dwThreadId);<br />
<br />
[DllImport("user32.dll", CharSet = CharSet.Auto,CallingConvention = CallingConvention.StdCall)]<br />
public static extern bool UnhookWindowsHookEx(int idHook);<br />
<br />
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]<br />
static extern int CallNextHookEx(IntPtr hhk, int nCode, IntPtr wParam, ref keyboardHookStruct lParam);<br />
<br />
[DllImport("kernel32.dll")]<br />
static extern IntPtr LoadLibrary(string lpFileName);<br />
<br />
public enum HookType : int<br />
{<br />
WH_JOURNALRECORD = 0,<br />
WH_JOURNALPLAYBACK = 1,<br />
WH_KEYBOARD = 2,<br />
WH_GETMESSAGE = 3,<br />
WH_CALLWNDPROC = 4,<br />
WH_CBT = 5,<br />
WH_SYSMSGFILTER = 6,<br />
WH_MOUSE = 7,<br />
WH_HARDWARE = 8,<br />
WH_DEBUG = 9,<br />
WH_SHELL = 10,<br />
WH_FOREGROUNDIDLE = 11,<br />
WH_CALLWNDPROCRET = 12,<br />
WH_KEYBOARD_LL = 13,<br />
WH_MOUSE_LL = 14<br />
}<br />
<br />
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto,Pack=1)]<br />
public struct keyboardHookStruct<br />
{<br />
public int vkCode;<br />
public int scanCode;<br />
public int flags;<br />
public int time;<br />
public int dwExtraInfo;<br />
}<br />
<br />
static IntPtr hooked = IntPtr.Zero;<br />
private void Form1_Load(object sender, EventArgs e)<br />
{<br />
this.Hide();<br />
IntPtr hInstance = LoadLibrary("User32");<br />
hooked = SetWindowsHookEx(HookType.WH_KEYBOARD_LL,Form1.Hook, hInstance, 0);<br />
<br />
}<br />
static string hookedstr;<br />
static string hookedDownStr;<br />
<br />
public static int Hook(int code, IntPtr wParam, ref keyboardHookStruct lParam)<br />
{<br />
<br />
if (code < 0)<br />
{<br />
return CallNextHookEx(hooked, code, wParam, ref lParam);<br />
}<br />
if ((int)wParam == KeyPosition.WM_KEYDOWN)<br />
{<br />
hookedstr += "[D]";<br />
hookedDownStr += ((Keys)lParam.vkCode).ToString() + " ";<br />
}<br />
hookedstr += ((Keys)lParam.vkCode).ToString() + " ";<br />
return CallNextHookEx(hooked, code, wParam, ref lParam);<br />
}<br />
<br />
return 0;<br />
}
|
|
|
|
|
I have a datagridview to display one datasource. I catch record to modify and then display on screen
|
|
|
|
|
So
do u want to bind to gridview?
set the datsource and datamember to gridview.
that's all
thanks
|
|
|
|
|
Please read this[^].
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
In my application I am able to load plugins, i.e. use reflection look in an assembly for classes implementing a given interface and instantiate them.
I would like these plugins to run with restricted right.
Like they are not able to access the file system, etc....
How could I do that?
Also, from some prelimiary reading it seems I will have to run thess plugin in different AppDomain, but these plugin need to create some WPF.Controls I'm adding to my main form's visual tree hierachy.
Is it possible to do that? I mean add in the UITree a WPF.Control which is from a different AppDomain?
(I foresee a dispatcher problem)
Any tip? (or maybe I don't need to run my plugin in a different AppDomain after all?)
|
|
|
|
|
I have used crystal reports in C# .net in my application
when I run my application on my client PC where Visual Studio 2005 IDE is not installed, the forms having crystal report do not display.
The .net framework 2.0 has already been installed on the coimputers but I was wondering if there is any other also required to display crystal reports.
Sadaf
|
|
|
|
|
Ok can can
Please check ur client pc for MS report viewer is installed?
thanks
|
|
|
|
|
How come this doesn't work when you click the button?
foreach (Control txt in this.Controls)
{
if (txt.GetType() == typeof(System.Windows.Forms.TextBox))
{
txt.Text = "";
}
}
I had another one that using a for statement instead of foreach and it won't work either.. here it is:
for (int i = 0; i < this.Controls.Count; i++)
{
if (this.Controls[i] is TextBox)
{
this.Controls[i].Text = "";
}
}
|
|
|
|
|
Try casting the control to a textbox then reference its properties.
Just because we can; does not mean we should.
|
|
|
|
|
Uhm what do you mean by that?
|
|
|
|
|
Here's an example. You need to "cast" it to the type of control you expect it to be and not the control object it self. Simply comparing its types wont give you access to the, in this case a TextBox, properties like .Text and so forth.
foreach (Control txt in this.Controls)
{
if (txt.GetType() == typeof(System.Windows.Forms.TextBox))
{
TextBox txtbx = (TextBox)txt;
txtbx.Text = "";
}
}
Just because we can; does not mean we should.
|
|
|
|
|